[GH-ISSUE #117] Cant install #111

Closed
opened 2026-02-26 12:20:31 +03:00 by kerem · 10 comments
Owner

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?

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?
kerem closed this issue 2026-02-26 12:20:31 +03:00
Author
Owner

@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?

<!-- gh-comment-id:675654438 --> @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?
Author
Owner

@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

<!-- gh-comment-id:675880141 --> @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](https://github.com/brentvollebregt/auto-py-to-exe/files/5094415/error.txt)
Author
Owner

@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.

<!-- gh-comment-id:675936768 --> @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.
Author
Owner

@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?

<!-- gh-comment-id:677527706 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:678047607 --> @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.
Author
Owner

@FC5570 commented on GitHub (Aug 22, 2020):

okay? So how do I install a specific version of Pyinstaller?

<!-- gh-comment-id:678629000 --> @FC5570 commented on GitHub (Aug 22, 2020): okay? So how do I install a specific version of Pyinstaller?
Author
Owner

@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 pyinstaller and then install PyInstaller 3.8 using python -m pip install pyinstaller==3.6.

<!-- gh-comment-id:678629144 --> @brentvollebregt commented on GitHub (Aug 22, 2020): I have added steps to the README: [Python 2.7 Support](https://github.com/brentvollebregt/auto-py-to-exe#python-27-support). Uninstall PyInstaller using `python -m pip uninstall pyinstaller` and then install PyInstaller 3.8 using `python -m pip install pyinstaller==3.6`.
Author
Owner

@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?

<!-- gh-comment-id:678657170 --> @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 <module> 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?
Author
Owner

@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?

<!-- gh-comment-id:678698373 --> @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?
Author
Owner

@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.

<!-- gh-comment-id:687700594 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#111
No description provided.