Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: subprocess-exited-with-error. python setup.py egg_info did not run successfully. exit code: 1 #42

Open
aditya16902 opened this issue May 4, 2023 · 1 comment

Comments

@aditya16902
Copy link

Command:
!pip install atspy

Error:( Used jupyter notebook here)
Collecting atspy
Downloading atspy-0.2.8.tar.gz (18 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting cachetools==4.0.0
Downloading cachetools-4.0.0-py3-none-any.whl (10 kB)
Collecting Cython==0.29.14
Downloading Cython-0.29.14.tar.gz (2.1 MB)
---------------------------------------- 2.1/2.1 MB 1.3 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[56 lines of output]
Unable to find pgen, not compiling formal grammar.
running egg_info
creating C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info
writing C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info\PKG-INFO
writing dependency_links to C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info\dependency_links.txt
writing entry points to C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info\entry_points.txt
writing top-level names to C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info\top_level.txt
writing manifest file 'C:\Users\adity\AppData\Local\Temp\pip-pip-egg-info-yink53ug\Cython.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\adity\AppData\Local\Temp\pip-install-zvglvu4\cython_3e15b45db0884410955e460d7df25681\setup.py", line 228, in
setup(
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_init
.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\dist.py", line 968, in run_commands
self.run_command(cmd)
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py", line 1217, in run_command
super().run_command(command)
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\dist.py", line 987, in run_command
cmd_obj.run()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\egg_info.py", line 308, in run
self.find_sources()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\egg_info.py", line 316, in find_sources
mm.run()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\egg_info.py", line 560, in run
self.add_defaults()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\egg_info.py", line 597, in add_defaults
sdist.add_defaults(self)
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\sdist.py", line 106, in add_defaults
super().add_defaults()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\command\sdist.py", line 252, in add_defaults
self._add_defaults_ext()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\command\sdist.py", line 336, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\cmd.py", line 306, in get_finalized_command
cmd_obj.ensure_finalized()
File "C:\Users\adity\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools_distutils\cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "C:\Users\adity\AppData\Local\Temp\pip-install-_zvglvu4\cython_3e15b45db0884410955e460d7df25681\Cython\Distutils\build_ext.py", line 20, in finalize_options
self.distribution.ext_modules[:] = cythonize(
^^^^^^^^^^
File "C:\Users\adity\AppData\Local\Temp\pip-install-_zvglvu4\cython_3e15b45db0884410955e460d7df25681\Cython\Build\Dependencies.py", line 959, in cythonize
module_list, module_metadata = create_extension_list(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\adity\AppData\Local\Temp\pip-install-_zvglvu4\cython_3e15b45db0884410955e460d7df25681\Cython\Build\Dependencies.py", line 752, in create_extension_list
elif isinstance(patterns, basestring) or not isinstance(patterns, collections.Iterable):
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Iterable'
[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.

[notice] A new release of pip is available: 23.0 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

@adamnbehr
Copy link

Im also having this issue when trying to install. any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants