mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #117] Cant install #111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FC5570 on GitHub (Aug 18, 2020).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/117
While trying to install pyinstaller im getting this error
File "setup.py", line 63
file=sys.stderr)
^
SyntaxError: invalid syntax
Can somebody help me please?
@brentvollebregt commented on GitHub (Aug 18, 2020):
Can you please provide the full error and traceback - I can't tell what this file is.
Also what command are you executing?
@FC5570 commented on GitHub (Aug 19, 2020):
okay, I have pasted the whole error on a txt file for your convenience, I am trying to install auto-py-to-exe with the following command:
pip install auto-py-to-exe
My python version: 2.7.18
My pip version: 20.2.2
error.txt
@brentvollebregt commented on GitHub (Aug 19, 2020):
Looks like this is an issue with setuptools not auto-py-to-exe - I was having a similar issue a couple of days ago with newer versions of setuptools in Python 2.7.
From issues I read online, you need setuptools<45 but I didn't get around to following that through completely.
Could you validate that setuptools is working as expected by installing some other libraries that use setuptools. Techincally this error is occurring when setting up pyinstaller.
@FC5570 commented on GitHub (Aug 20, 2020):
Hey sorry for not replying. I really don't understand what you mean by setuptools as I'm totally new to Python. But after checking the version of my setup tools, I came to know the version of my setup tools is 41.2.0, I think I need to upgrade right?
@brentvollebregt commented on GitHub (Aug 21, 2020):
PyInstaller no longer supports Python 2.7 so no longer does this tool. You will need to uninstall PyInstaller 4 and install PyInstaller 3.6.
@FC5570 commented on GitHub (Aug 22, 2020):
okay? So how do I install a specific version of Pyinstaller?
@brentvollebregt commented on GitHub (Aug 22, 2020):
I have added steps to the README: Python 2.7 Support.
Uninstall PyInstaller using
python -m pip uninstall pyinstallerand then install PyInstaller 3.8 usingpython -m pip install pyinstaller==3.6.@FC5570 commented on GitHub (Aug 22, 2020):
I'm getting this error while trying to convert the py file to exe:
An error occurred while packaging
Traceback (most recent call last):
File "C:\Users\upadh\Desktop\Python\lib\site-packages\auto_py_to_exe-2.7.8-py2.7.egg\auto_py_to_exe\packaging.py", line 131, in package
run_pyinstaller()
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller_main_.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller_main_.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\building\build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\building\build_main.py", line 681, in build
exec(code, spec_namespace)
File "c:\users\upadh\appdata\local\temp\tmpkoypsd\test.spec", line 17, in
noarchive=False)
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\building\build_main.py", line 244, in init
self.postinit()
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\building\datastruct.py", line 160, in postinit
self.assemble()
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\building\build_main.py", line 416, in assemble
priority_scripts.append(self.graph.run_script(script))
File "C:\Users\upadh\Desktop\Python\lib\site-packages\PyInstaller\depend\analysis.py", line 254, in run_script
raise SystemExit(1)
SystemExit: 1
What do I do?
@brentvollebregt commented on GitHub (Aug 22, 2020):
Is there more to this error? Looking at the PyInstaller 3.8 source, there are some messages that are printed. Could you have a look in the console that is running this application for more detail?
Also, what is the command in the "Current Command" field?
@FC5570 commented on GitHub (Sep 6, 2020):
Hey, sorry for not responding for such a long time. I tried many ways of fixing it but it didn't work, however I got my friend to do it and the app works fine. Thanks a lot for your help. Have a great time.