Git Product home page Git Product logo

Comments (5)

TomSchimansky avatar TomSchimansky commented on May 22, 2024

Can you show your process of compiling to an .exe program. I never tried to package something with customtkinter, but the error means that the external files (not the .py files) of the library were not copied to the new standalone app.

from customtkinter.

gravityyusuf avatar gravityyusuf commented on May 22, 2024

https://www.geeksforgeeks.org/convert-python-script-to-exe-file/amp/
I used this method this is the generalized method,
I also tried to convert your examples which you gave in the github same error happened for that too.

from customtkinter.

TomSchimansky avatar TomSchimansky commented on May 22, 2024

I looked at this guide: https://dev.to/eshleron/how-to-convert-py-to-exe-step-by-step-guide-3cfi
And it states that the one-file-option, what you did above, is only suitable for programs without media files. But customtkinter needs media files. The library does not only contain .py files, but also .json and .otf font files. So I think you need to use the other option which is described in the guide, which creates a folder in addition to the .exe file.

from customtkinter.

gravityyusuf avatar gravityyusuf commented on May 22, 2024

Thanks it worked :) amazing I think so you should add this in the documentation or is this common thing idk but I added the directory of customtkinter in the py to exe converter and it worked !

from customtkinter.

TomSchimansky avatar TomSchimansky commented on May 22, 2024

Yeah I got it to work too, with this method. I don't know if this will work for everyone, or if its a good idea to add a library this way, but it works for now. I will add this in the documentation!

from customtkinter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.