I am trying to install an app requirements on my local machine. However, I am stuck on the following error that seems to be related to cython. This occurs when I run the following code on Windows 10:
pip install -r requirements.txt
which results in the following error. Can someone please let me know what is the cause of this error?
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Eli\AppData\Local\Programs\Python\Python310\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\setup.py'"'"'; file='"'"'C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66'
cwd: C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4
Complete output (43 lines):
Unable to find pgen, not compiling formal grammar.
running egg_info
creating C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info
writing C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info\PKG-INFO
writing dependency_links to C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info\dependency_links.txt
writing entry points to C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info\entry_points.txt
writing top-level names to C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info\top_level.txt
writing manifest file 'C:\Users\Eli\AppData\Local\Temp\pip-pip-egg-info-oo__ie66\Cython.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\setup.py", line 228, in
setup(
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 299, in run
self.find_sources()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 306, in find_sources
mm.run()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 541, in run
self.add_defaults()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\egg_info.py", line 578, in add_defaults
sdist.add_defaults(self)
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\command\sdist.py", line 228, in add_defaults
self._add_defaults_ext()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\command\sdist.py", line 311, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 299, in get_finalized_command
cmd_obj.ensure_finalized()
File "C:\Users\Eli\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\Cython\Distutils\build_ext.py", line 20, in finalize_options
self.distribution.ext_modules[:] = cythonize(
File "C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\Cython\Build\Dependencies.py", line 959, in cythonize
module_list, module_metadata = create_extension_list(
File "C:\Users\Eli\AppData\Local\Temp\pip-install-95mpxv94\cython_6c43cf9f18634be392cac50ea5fe94e4\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'
WARNING: Discarding https://files.pythonhosted.org/packages/9c/9b/706dac7338c2860cd063a28cdbf5e9670995eaea408abbf2e88ba070d90d/Cython-0.29.14.tar.gz#sha256=e4d6bb8703d0319eb04b7319b12ea41580df44fd84d83ccda13ea463c6801414 (from https://pypi.org/simple/cython/) (requires-python:>=2.6, !=3.0., !=3.1., !=3.2.*). Command errored out with exit status 1: python se
The issue was that cython==0.29.14 version is NOT YET COMPATIBLE WITH PYTHON 10. I ran the requirements.txt with Python version 8.8 and the issue was resolved. Thanks for your help. This issue is now closed
Related
I followed the instructions on how to install JamSpell spell checking library.
I installed swig by running brew install swig (v. 4.0.2), but I cannot manage to install the library with pip install jamspell on macOS Big Sur, Python3 (not even with sudo).
Error log:
WARNING: The directory '/Users/ljudmilapetkovic/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
Collecting jamspell
Downloading jamspell-0.0.12.tar.gz (174 kB)
|████████████████████████████████| 174 kB 4.1 MB/s
Building wheels for collected packages: jamspell
Building wheel for jamspell (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/tmp/pip-wheel-bw5_k9h5
cwd: /private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/
Complete output (41 lines):
running bdist_wheel
running build
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 37, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
----------------------------------------
ERROR: Failed building wheel for jamspell
Running setup.py clean for jamspell
Failed to build jamspell
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
Installing collected packages: jamspell
Running setup.py install for jamspell ... error
ERROR: Command errored out with exit status 1:
command: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-lu0nx9hk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ljudmilapetkovic/opt/anaconda3/include/python3.8/jamspell
cwd: /private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/
Complete output (34 lines):
running install
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 43, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ljudmilapetkovic/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-_wxwt5tq/jamspell_2c920e7dbac74937875274f33ed536c4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-lu0nx9hk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ljudmilapetkovic/opt/anaconda3/include/python3.8/jamspell Check the logs for full command output.
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
WARNING: Ignoring invalid distribution -cwidth (/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages)
python setup.py install does not help either:
running install
running build_ext
building '_jamspell' extension
Traceback (most recent call last):
File "setup.py", line 55, in <module>
setup(
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 43, in run
self.run_command('build_ext')
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 506, in build_extension
sources = self.swig_sources(sources, ext)
File "/Users/ljudmilapetkovic/opt/anaconda3/lib/python3.8/distutils/command/build_ext.py", line 597, in swig_sources
swig = self.swig or self.find_swig()
File "setup.py", line 50, in find_swig
assert subprocess.check_output([swigBinary, "-version"]).find(b'SWIG Version 3') != -1
AssertionError
What is going on here?
Having encountered this same exact problem with your same desktop specs, this thread should fix your problem. It took a long while for me to find this buried discussion, but since your post came up at the very top of my original search results, I'm hoping that keeping this up can guide other people to a solution much more quickly.
I'm linking it here but also including the solution that worked for me:
Manually download swig3 via sourceforge
Extract the zipped download folder
Run the following via terminal:
Downloads/swig-3.0.12/configure && make && make install
Running this command will display a very long output and take ~1 minute
Run pip install jamspell
Terminal may appear to "hesitate" for a second longer than it would with the normal installation process before building wheels for the package:
It'll tell you the package has been installed, but you will not see the usual:
Downloading jamspell-0.0.12.tar.gz (174 kB) |████████████████████████████████| 174 kB 4.1 MB/s
An alternative is, if you just run the package via Co-Lab, it'll work. The only downside I suppose is that you'll have to reinstall the package every time you reconnect.
When trying to install pycares on my mac (Big Sur 11.3.1) with pip3 install -r pycares I get the following error:
Collecting pycares
Using cached pycares-4.0.0.tar.gz (819 kB)
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python#3.9/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/setup.py'"'"'; __file__='"'"'/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-pip-egg-info-1ig5h0aa
cwd: /private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/
Complete output (29 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/setup.py", line 16, in <module>
setup(name = 'pycares',
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/Cellar/python#3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/dist.py", line 455, in __init__
_Distribution.__init__(self, {
File "/opt/homebrew/Cellar/python#3.9/3.9.6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 292, in __init__
self.finalize_options()
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/dist.py", line 801, in finalize_options
ep(self)
File "/opt/homebrew/lib/python3.9/site-packages/setuptools/dist.py", line 808, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/cffi/setuptools_ext.py", line 219, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "src/_cffi_src/build_cares.py", line 603, in <module>
ffi = cffi.FFI()
File "/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/cffi/api.py", line 48, in __init__
import _cffi_backend as backend
ImportError: dlopen(/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/_cffi_backend.cpython-39-darwin.so, 2): no suitable image found. Did find:
/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture
/private/var/folders/jv/yxdbb6tn6n5gc9w719g8rt48000170/T/pip-install-59emzx2m/pycares_c75c0122a38f404d9813047a7451425b/.eggs/cffi-1.14.6-py3.9-macosx-11-arm64.egg/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/25/5a/ed8cc3340b7e83a5e572b5d27387a968a7e52b1e3c269442076ca902b7ba/pycares-4.0.0.tar.gz#sha256=d0154fc5753b088758fbec9bc137e1b24bb84fc0c6a09725c8bac25a342311cd (from https://pypi.org/simple/pycares/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I installed python with brew (Python 3.9.6), removed the packages and tried to reinstall them, still the same error.
There are some solutions available for the problem mach-o, but wrong architecture, but I couldn't find one for this specific problem.
Collecting dlib
Using cached dlib-19.19.0.tar.gz (3.2 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\HP\AppData\Local\Temp\pip-wheel-sam_vsqz'
cwd: C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'dlib__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 261, in
'Topic :: Software Development',
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\envs\env_dlib\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
CMake must be installed to build the following extensions: dlib
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\HP\AppData\Local\Temp\pip-record-77ybyx6j\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda\envs\env_dlib\Include\dlib'
cwd: C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\
Complete output (55 lines):
running install
running build
running build_py
package init file 'dlib__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 411, in check_output
**kwargs).stdout
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "D:\anaconda\envs\env_dlib\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 261, in <module>
'Topic :: Software Development',
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools\__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "D:\anaconda\envs\env_dlib\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "D:\anaconda\envs\env_dlib\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\anaconda\envs\env_dlib\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "D:\anaconda\envs\env_dlib\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\anaconda\envs\env_dlib\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py", line 125, in get_cmake_version
"\n*******************************************************************\n")
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: dlib
*******************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\anaconda\envs\env_dlib\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"'; file='"'"'C:\Users\HP\AppData\Local\Temp\pip-install-hlayhizn\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\HP\AppData\Local\Temp\pip-record-77ybyx6j\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\anaconda\envs\env_dlib\Include\dlib' Check the logs for full command output.
Run the following command in Anaconda Prompt.
easy_install dlib
Trying to spin up a simple LAMP service with AWS and Certbot SSL. Followed all the directions but my when I run the certbot-auto I'm given the following error:
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Problem in Augeas installation',)
My attempts to install python-augeas via:
pip3 install python-augeas
result:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-27aroyjq/python-augeas/setup.py'"'"'; __file__='"'"'/tmp/pip-install-27aroyjq/python-augeas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-27aroyjq/python-augeas/pip-egg-info
cwd: /tmp/pip-install-27aroyjq/python-augeas/
Complete output (31 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-27aroyjq/python-augeas/setup.py", line 43, in <module>
test_suite="test.test_augeas",
File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 448, in __init__
k: v for k, v in attrs.items()
File "/usr/lib64/python3.6/distutils/dist.py", line 281, in __init__
self.finalize_options()
File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 740, in finalize_options
ep.load()(self)
File "/home/ec2-user/.local/lib/python3.6/site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords
ep.load()(self, ep.name, value)
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 217, in cffi_modules
add_cffi_module(dist, cffi_module)
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 49, in add_cffi_module
execfile(build_file_name, mod_vars)
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/setuptools_ext.py", line 25, in execfile
exec(code, glob, glob)
File "augeas/ffi.py", line 47, in <module>
lib = ffi.dlopen("augeas")
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 832, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "/tmp/pip-install-27aroyjq/python-augeas/.eggs/cffi-1.14.0-py3.6-linux-x86_64.egg/cffi/api.py", line 827, in _load_backend_lib
raise OSError(msg)
OSError: ctypes.util.find_library() did not manage to locate a library called 'augeas'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Anyone have any ideas?
$ yum install augeas
$ python3 -m pip install certbot
This fixed the problem on a AWS Linux 2 instance.
If you use a load balancer then you can use the AWS ACM service.
If not, I found Certbot works really well.
Thanks tink for pointing me the right direction.
Currently trying to install some web framework but it fails with following error. It also shows the same error when I try to install other packages as well. I can't figure out where it stems from. Any ideas would help a lot.
PS D:\Python_Programming_Zed_Show\Exersize_46\Python27_Projects\Exersize_48\Exersize_48> python -m pip install lpthw.web
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/late
st/development/release-process/#python-2-support
Collecting lpthw.web
Using cached https://files.pythonhosted.org/packages/52/0d/a200087bb551895143fedfb5f7df416ccb7ecb46428e04dd011a7ea19689/lpthw.web-1.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'D:\Python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'d:\\users\\arhitect\\appdata\\local\\temp\\pip-install-gj9eke\\lpthw.web\\setup.py'"'"'; __file__='"'"'d:\\users\\arhitect\\appdata\\local\\temp\\pip-install-gj9eke\\lpthw.web\\setup.py'"'"';f=getattr(tok
enize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\
Complete output (28 lines):
running egg_info
creating pip-egg-info\lpthw.web.egg-info
writing pip-egg-info\lpthw.web.egg-info\PKG-INFO
writing top-level names to pip-egg-info\lpthw.web.egg-info\top_level.txt
writing dependency_links to pip-egg-info\lpthw.web.egg-info\dependency_links.txt
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "d:\users\arhitect\appdata\local\temp\pip-install-gj9eke\lpthw.web\setup.py", line 17, in <module>
platforms=["any"],
File "D:\Python27\lib\distutils\core.py", line 151, in setup
dist.run_commands()
File "D:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "D:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\setuptools\command\egg_info.py", line 177, in run
writer = ep.load(installer=installer)
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2241, in load
if require: self.require(env, installer)
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2254, in require
working_set.resolve(self.dist.requires(self.extras),env,installer)))
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2471, in requires
dm = self._dep_map
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2682, in _dep_map
self.__dep_map = self._compute_dependencies()
File "d:\users\arhitect\downloads\distribute-0.7.3\distribute-0.7.3\pkg_resources.py", line 2699, in _compute_dependencies
from _markerlib import compile as compile_marker
ImportError: No module named _markerlib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
PS D:\Python_Programming_Zed_Show\Exersize_46\Python27_Projects\Exersize_48\Exersize_48>
The problematic import comes from distribute-0.7.3 which is outdated package and should not be used. Remove the directory d:\users\arhitect\downloads\distribute-0.7.3.