cdrx / docker-pyinstaller

PyInstaller for Linux and Windows inside Docker
MIT License
616 stars 238 forks source link

How to change Python version? #106

Open Arriv9l opened 3 years ago

Arriv9l commented 3 years ago

In the beginning, there was a error: Unable to find "C:\users\root\nltk_data" when adding binary and data files. Then, I downgrade pyinstaller by adding pyinstaller==3.3 to requirements.txt according to the instructions on this link —— Unable to find "/usr/share/nltk_data" when adding binary and data files. · Issue #2159 · nltk/nltk. BTW, there was a typo in README.md, pyinstaller=3.1.1 should be pyinstaller==3.1.1. But then there was another error: RecursionError: maximum recursion depth exceeded while calling a Python object According to RecursionError: maximum recursion depth exceeded - python 3.6 issue · Issue #2919 · pyinstaller/pyinstaller, I need to downgrade Python version to 3.5.3 So, How to change Python version?

TheTechRobo commented 3 years ago

What docker image are you running? win32 or win64? Please be more clear.

Arriv9l commented 3 years ago

First of all, Thanks for your attention. I’m sorry that I didn’t follow the guidelines—How To Ask Questions The Smart Way. Let’s see if I can do better this time. I run Docker on ubuntu-latest on GitHub Actions. The image I use is cdrx/pyinstaller-windows:latest. Here is my yaml file. Here is the info:

PyInstaller: 3.3 Python: 3.7.5 Platform: Windows-7-6.1.7601-SP1

I’ve never dealt with Docker before, so I am not sure it is win32 or win64. This one is the first error I met: https://github.com/Arriv9l/InfoSpider/runs/1910229901?check_suite_focus=true And this one is the second error I met: https://github.com/Arriv9l/InfoSpider/runs/1910341118?check_suite_focus=true English is not my native language; please excuse typing errors.

TheTechRobo commented 3 years ago

It's ok - typing errors are fine! :)

hmmm... I'll take a look to see whether its win32 or 64. Thanks for the extra details

TheTechRobo commented 3 years ago

Please remind me tomorrow or ill forget :)

Arriv9l commented 3 years ago

Hi, @TheTechRobo. If you’re free sometime, could you help to check whether it‘s win32 or win64? Sorry for the late remind.

davidhuser commented 3 years ago

perhaps this issue is related? https://github.com/cdrx/docker-pyinstaller/issues/105

TheTechRobo commented 3 years ago

Tbh I can't tell.

May you tell where you got the github action?