mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #295] Error while installing auto-py-to-exe #258
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 @VinaySavla on GitHub (Aug 5, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/295
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\vinay\AppData\Local\Temp\pip-install-38_pf_2g\eel_6f37b3bdacc4416b97f5ce2f5d88e824\setup.py", line 7, in
setup(
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 108, in setup
setup_distribution = dist = klass(attrs)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 453, in init
Distribution.init(
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 292, in init
self.finalize_options()
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 830, in finalize_options
for ep in sorted(loaded, key=by_order):
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 829, in
loaded = map(lambda e: e.load(), filtered)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init.py", line 2450, in load
return self.resolve()
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init.py", line 2456, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\build_app.py", line 37, in
from py2app.create_appbundle import create_appbundle
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\create_appbundle.py", line 9, in
from py2app.util import make_exec, makedirs, mergecopy, mergetree, skipscm
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\util.py", line 5, in
import fcntl
ModuleNotFoundError: No module named 'fcntl'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@VinaySavla commented on GitHub (Aug 5, 2022):
i am using windows 10
python 3.10.0
@brentvollebregt commented on GitHub (Aug 5, 2022):
Can you please fill out the issue template. I don't see any reproduction steps here.
@VinaySavla commented on GitHub (Aug 6, 2022):
When I tried installing auto-py-to-exe it showed me the error that is in my first comment.
Steps to reproduce the behavior:
Expected behavior
It should have been installed
Screenshots
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\vinay\AppData\Local\Temp\pip-install-38_pf_2g\eel_6f37b3bdacc4416b97f5ce2f5d88e824\setup.py", line 7, in
setup(
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 108, in setup
setup_distribution = dist = klass(attrs)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 453, in init
Distribution.init(
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 292, in init
self.finalize_options()
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 830, in finalize_options
for ep in sorted(loaded, key=by_order):
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py", line 829, in
loaded = map(lambda e: e.load(), filtered)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init.py", line 2450, in load
return self.resolve()
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources_init.py", line 2456, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\build_app.py", line 37, in
from py2app.create_appbundle import create_appbundle
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\create_appbundle.py", line 9, in
from py2app.util import make_exec, makedirs, mergecopy, mergetree, skipscm
File "C:\Users\vinay\AppData\Local\Programs\Python\Python310\lib\site-packages\py2app\util.py", line 5, in
import fcntl
ModuleNotFoundError: No module named 'fcntl'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Your Environment:
@brentvollebregt commented on GitHub (Aug 6, 2022):
I just executed
pip install auto-py-to-exein a terminal and it was fine:Can you please run the command you are proposing to reproduce the issue in a virtual Python environment? If we can get a reproducible case, I will have to close this sorry. Giving more information about your environment setup would help.
@VinaySavla commented on GitHub (Aug 6, 2022):
I am getting this issue in windows 10 machine as I mentioned in the start of the comment
@VinaySavla commented on GitHub (Aug 6, 2022):
I am getting this issue in windows 10 machine as I mentioned in the start of the comment
@brentvollebregt commented on GitHub (Aug 6, 2022):
I am also on Windows 10 - that is not the issue.
Can you please try to install the library in a virtual environment.
@VinaySavla commented on GitHub (Aug 6, 2022):
Ok great, I'll try that. Thank you
@marsonbili-eng commented on GitHub (Jul 21, 2023):
{ModuleNotFoundError: No module named 'fcntl' }
The problem is not related to "auto-py-to-exe". (in this case, you will .py => exe?, maybe)
Maybe you have installed "py2app" on your Windows 10().
but https://pypi.org/project/py2app/ is only for Mac OS X.
so you need..
Uninstall py2app: pip uninstall -y py2app
or remove the directory C:\Users\beek6\PycharmProjects\Projects\venv\Lib\site-packages\py2app