pyinstaller

pyinstaller Recursion error: maximum recursion depth exceeded

蹲街弑〆低调 提交于 2021-02-08 15:01:29
问题 I am trying to convert a .py to .exe using pyinstaller. When I type pyinstaller my_code.py everything seems to be working and after a couple of minutes the process stops and I get the recursion error. I have tried to create a my_code.spec file in the same folder, edit it and change the number of recursions but when I run pyinstaller apparently a new .spec is created since I can't find the sys.setrecursionlimit() command that I had previously added to the my_code.spec file. I am running all

Pyinstaller not able to locate static files

孤者浪人 提交于 2021-02-08 11:38:53
问题 I have created djnago project followong is directory structure of project mysite --settings.py -- urls.py --wsgi.py polls(app) --static --polls --images --templates --polls index.html results.html admin.py apps.py models.py urls.py views.py I have created installer using pyinstaller that exe runs fine able to load templates But for static files(css and js),exe giving me error C:\Users\sanjad\Desktop\testdemo\myinstaller>dist\manage\manage.exe runserver Performing system checks... System check

Pyinstaller not able to locate static files

若如初见. 提交于 2021-02-08 11:38:44
问题 I have created djnago project followong is directory structure of project mysite --settings.py -- urls.py --wsgi.py polls(app) --static --polls --images --templates --polls index.html results.html admin.py apps.py models.py urls.py views.py I have created installer using pyinstaller that exe runs fine able to load templates But for static files(css and js),exe giving me error C:\Users\sanjad\Desktop\testdemo\myinstaller>dist\manage\manage.exe runserver Performing system checks... System check

Pyinstaller not able to locate static files

佐手、 提交于 2021-02-08 11:37:58
问题 I have created djnago project followong is directory structure of project mysite --settings.py -- urls.py --wsgi.py polls(app) --static --polls --images --templates --polls index.html results.html admin.py apps.py models.py urls.py views.py I have created installer using pyinstaller that exe runs fine able to load templates But for static files(css and js),exe giving me error C:\Users\sanjad\Desktop\testdemo\myinstaller>dist\manage\manage.exe runserver Performing system checks... System check

Pyinstaller - Error Message: name Actor is not defined

大憨熊 提交于 2021-02-08 11:25:31
问题 I created a small game with Pygame and MU IDE. Then I wanted to convert the .py file to a .exe file with pyinstaller. It was no problem to create the exe file. But if I want to execute the created exe file I get the following error message: 'name Actor is not defined'. With MU IDE I can execute the corresponding .py file without any problems. How can I fix the problem? The full error message is: Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent

FileNotFoundError [Errno 2] when running pyinstaller executable?

◇◆丶佛笑我妖孽 提交于 2021-02-08 10:35:10
问题 I am trying to make my python file as an executable using Pyinstaller. After the process of conversion has finished, in my dist folder, when I click on "myApplication.exe" I get the following error: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\Desktop\\Application\\dist\\myApplication\\smart_open\\VERSION' [17416] Failed to execute script myApplication I've already searched for answers to this but none of them have the specific error as mine which is the folder

How to deploy a PyCharm project with Kivy and mapview?

半城伤御伤魂 提交于 2021-02-08 10:25:12
问题 I want to deploy a Python Project with Kivy and a MapView. I develop with PyCharm and when I run my project with it, everything works well. I also tried to compile and run my project with the python IDLE, it also works good ! I followed the instructions of PyInstaller (https://www.pyinstaller.org/#pyinstaller-quickstart) and the folders were created. The problem is that my .exe file doesn't works... A cmd window is opened but it's immediately closed.. If you need more explanation, just let me

Using pyinstaller with two python environments

二次信任 提交于 2021-02-08 08:21:03
问题 I'm using pyinstaller to pack one .py file into .exe. I have two Python3 environment on my WIN10 64-bit computer. One is from Anaconda and the other is Python3-32bit which is installed separately. This .py file is produced by Anaconda Python environment. After I installed pyinstaller, I set the environment variable PATH like this:` PATH=PATH;C:\Anaconda3\Scripts;C:\Python35-32\Scripts; However, when I enter pyinstaller file.py it throws me lots of warnings: It seems that pyinstaller searches

Using pyinstaller with two python environments

拥有回忆 提交于 2021-02-08 08:19:18
问题 I'm using pyinstaller to pack one .py file into .exe. I have two Python3 environment on my WIN10 64-bit computer. One is from Anaconda and the other is Python3-32bit which is installed separately. This .py file is produced by Anaconda Python environment. After I installed pyinstaller, I set the environment variable PATH like this:` PATH=PATH;C:\Anaconda3\Scripts;C:\Python35-32\Scripts; However, when I enter pyinstaller file.py it throws me lots of warnings: It seems that pyinstaller searches

pyinstaller: adding dynamically loaded modules

微笑、不失礼 提交于 2021-02-07 21:13:42
问题 I'm trying to use Pyinstaller to bundle a server written in Python3. Part of the server code was written in a way that some modules are dynamically loaded like this: mod_files = [f for f in os.listdir(path)]: for f in mod_files: mod = importlib.import_module(mod_name) How do I handle these files with Pyinstaller? 回答1: Pyinstaller (currently v 3.4) can't detect imports like importlib.import_module() . The issue and solutions are detailed in Pyinstaller's documentation, which I pasted below as