Related
I try to install PyQt in my Mac by pip or brew to install, it all failed with sipbuild.pyproject.PyProjectOptionException error. Need help can someone solve this?
jett#jmac ~ % pip install pyqt5
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt5
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmpgdmdc09l
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_7923519b6ae5437192ce4b58d6719383
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 484, in setup
self.apply_user_defaults(tool)
File "project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 230, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-4yn2ftzm/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/8e/a4/d5e4bf99dd50134c88b95e926d7b81aad2473b47fde5e3e4eac2c69a8942/PyQt5-5.15.4.tar.gz#sha256=2a69597e0dd11caabe75fae133feca66387819fc9bc050f547e5551bce97e5be (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmpgdmdc09l Check the logs for full command output.
Using cached PyQt5-5.15.3.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp2b3zk776
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_44052bd6cdc34aa2be5b23f36dca88df
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 484, in setup
self.apply_user_defaults(tool)
File "project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 230, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-cx5p34wp/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/6e/86/d715e71771cece0e060f2ebab20f3ded067b08a0927dfb3143530cae8098/PyQt5-5.15.3.tar.gz#sha256=965ba50e7029b37f218a54ace24e87c77db3e5a9f0b83baeb21fb57b4154b838 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.6). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp2b3zk776 Check the logs for full command output.
Using cached PyQt5-5.15.2.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp_r170a4s
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_7cbcbc9529f7468180a67bbd9372be5b
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 484, in setup
self.apply_user_defaults(tool)
File "project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 230, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-hihu6t3f/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/PyQt5-5.15.2.tar.gz#sha256=372b08dc9321d1201e4690182697c5e7ffb2e0770e6b4a45519025134b12e4fc (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp_r170a4s Check the logs for full command output.
Using cached PyQt5-5.15.1.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmprj4uldbh
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_b03b2a05214c4d1ebc157f6b7a32e368
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 484, in setup
self.apply_user_defaults(tool)
File "project.py", line 64, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 230, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-np1hm2fb/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/1d/31/896dc3dfb6c81c70164019a6cbba6ab037e3af7653d9ca60ccc874ee4c27/PyQt5-5.15.1.tar.gz#sha256=d9a76b850246d08da9863189ecb98f6c2aa9b4d97a3e85e29330a264aed0f9a1 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmprj4uldbh Check the logs for full command output.
Using cached PyQt5-5.15.0.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp3ql7xuy2
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_688200d6210b451b8a4ab6479b451a89
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 484, in setup
self.apply_user_defaults(tool)
File "project.py", line 62, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 230, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-o6cj0zt7/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/8c/90/82c62bbbadcca98e8c6fa84f1a638de1ed1c89e85368241e9cc43fcbc320/PyQt5-5.15.0.tar.gz#sha256=c6f75488ffd5365a65893bc64ea82a6957db126fbfe33654bcd43ae1c30c52f9 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp3ql7xuy2 Check the logs for full command output.
Using cached PyQt5-5.14.2.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp9oeqr7vm
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_f8c59757cc3e421eb7323c1e0166ff3d
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 479, in setup
self.apply_user_defaults(tool)
File "project.py", line 62, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 225, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-6w6xra03/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/4d/81/b9a66a28fb9a7bbeb60e266f06ebc4703e7e42b99e3609bf1b58ddd232b9/PyQt5-5.14.2.tar.gz#sha256=bd230c6fd699eabf1ceb51e13a8b79b74c00a80272c622427b80141a22269eb0 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmp9oeqr7vm Check the logs for full command output.
Using cached PyQt5-5.14.1.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmpgyk62cud
cwd: /private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-install-bv0c7yxz/pyqt5_561782674bb34431a57220b8c2e76631
Complete output (31 lines):
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/sipbuild/api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 479, in setup
self.apply_user_defaults(tool)
File "project.py", line 62, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/sipbuild/project.py", line 225, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/pip-build-env-bdif8fjh/overlay/lib/python3.8/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz#sha256=2f230f2dbd767099de7a0cb915abdf0cbc3256a0b5bb910eb09b99117db7a65b (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.5). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Library/Python/3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/kk/ck6hb36n5z1373zlhm46l3m80000gn/T/tmpgyk62cud Check the logs for full command output.
Using cached PyQt5-5.14.0.tar.gz (3.2 MB)
ERROR: pyqt5 from https://files.pythonhosted.org/packages/7c/5b/e760ec4f868cb77cee45b4554bf15d3fe6972176e89c4e3faac941213694/PyQt5-5.14.0.tar.gz#sha256=0145a6b7de15756366decb736c349a0cb510d706c83fda5b8cd9e0557bc1da72 has a pyproject.toml file that does not comply with PEP 518: 'build-system.requires' contains an invalid requirement: 'sip >=5.0.1 <6'
jett#jmac ~ %
Are you using an M1 Mac? If so, this worked for me: How can i run pyqt5 on my mac with M1chip
In case that page gets removed and someone needs this:
Right click the Terminal application in Finder, click duplicate.
Rename one of them so you know which is which.
Right click the renamed one, and click "Get Info". Check the option "Open using Rosetta"
Open the Rosetta version, create a virtual Python environment. /usr/bin/python3 -m venv env
Activate the environment. source env/bin/activate
Upgrade pip pip install --upgrade pip
Install PyQt5 pip install PyQt5
This worked for me on an M1 Air running Big Sur, I can't say if it helps on Intel Macs.
answer from Mike Simone worked for me except for step 7, which failed using pyqt5, but was successful using pyqt6.
pyqt6 installed for ARM, as seen from the output below.
In code simply change your imports to PyQt6. There are some minor code differences.
(venv) username#MacPunch pushbutton % pip install PyQt6
Collecting PyQt6
Downloading PyQt6-6.4.0-cp37-abi3-macosx_10_14_universal2.whl (11.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 3.2 MB/s eta 0:00:00
Collecting PyQt6-Qt6>=6.4.0
Downloading PyQt6_Qt6-6.4.1-py3-none-macosx_11_0_arm64.whl (38.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.0/38.0 MB 2.5 MB/s eta 0:00:00
Collecting PyQt6-sip<14,>=13.4
Downloading PyQt6_sip-13.4.0.tar.gz (111 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.2/111.2 kB 2.2 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: PyQt6-sip
Building wheel for PyQt6-sip (pyproject.toml) ... done
Created wheel for PyQt6-sip: filename=PyQt6_sip-13.4.0-cp38-cp38-macosx_10_14_arm64.whl size=132021 sha256=871d16c4c852b49b9d4859ece2d516a4e650fe10a0024f9bf7105773b5ad0be9
Stored in directory: /Users/username/Library/Caches/pip/wheels/98/43/59/58c7e4bf0439947e465446a8948e84910729052c76131272e8
Successfully built PyQt6-sip
Installing collected packages: PyQt6-Qt6, PyQt6-sip, PyQt6
Successfully installed PyQt6-6.4.0 PyQt6-Qt6-6.4.1 PyQt6-sip-13.4.0
(venv) username#MacPunch pushbutton %
The chosen answer has pretty much says it all, and it solved mine too. Just a side note, the virtual environment must be created from the system python located /usr/bin/python3, other pythons won't work.
When I do !pip install xlwings -vvv in Colab, I get the following. How to fix it?
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/commands/install.py", line 382, in run
resolver.resolve(requirement_set)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 201, in resolve
self._resolve_one(requirement_set, req)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 365, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/legacy_resolve.py", line 313, in _get_abstract_dist_for
req, self.session, self.finder, self.require_hashes
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py", line 224, in prepare_linked_requirement
req, self.req_tracker, finder, self.build_isolation,
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py", line 49, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/distributions/source/legacy.py", line 39, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/req/req_install.py", line 563, in prepare_metadata
self.metadata_directory = metadata_generator(self)
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/generate_metadata.py", line 124, in _generate_metadata_legacy
command_desc='python setup.py egg_info',
File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
From its documentation
xlwings requires an installation of Excel and therefore only works on Windows and macOS.
So, you cannot use xlwings with Google Colab.
I'm trying to install spaCy in a conda environment (Anaconda 2019.03 - latest release) on Windows 10 using the command "conda install -c conda-forge spacy" recommended on the spaCy website. However I'm receiving OS Error 22 / WinError 87(the parameter is incorrect) when conda tries to install dependencies.
I've also tried installing spaCy using pip, but I run into similar difficulties. I get the same WinError 87 error - "the parameter is incorrect".
The full output from the conda attempt is:
(fever) C:\Users\Shmuli>conda install -v -c conda-forge spacy
.....
===> LINKING PACKAGE: conda-forge::attrs-19.1.0-py_0 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
source=C:\Users\Shmuli\Anaconda3\pkgs\attrs-19.1.0-py_0
===> REVERSING PACKAGE LINK: conda-forge::attrs-19.1.0-py_0 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
failed
An error occurred while installing package 'conda-forge::attrs-19.1.0-py_0'.
OSError(22, 'The parameter is incorrect', None, 87, None)
Attempting to roll back.
Rolling back transaction: ...working... ===> REVERSING PACKAGE LINK: conda-forge::asn1crypto-0.24.0-py37_1003 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE LINK: conda-forge::liblapack-3.8.0-10_mkl <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE LINK: conda-forge::libcblas-3.8.0-10_mkl <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE LINK: conda-forge::openssl-1.1.1b-hfa6e2cd_2 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE LINK: conda-forge::libblas-3.8.0-10_mkl <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE LINK: defaults::mkl-2019.3-203 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\mkl_vml_avx2.dll
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\mkl_rt.dll
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\mkl_intel_thread.dll
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\mkl_core.dll
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\mkl_avx2.dll
===> REVERSING PACKAGE LINK: defaults::intel-openmp-2019.3-203 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
rm_rf failed for C:\Users\Shmuli\Anaconda3\envs\fever\Library\bin\libiomp5md.dll
===> REVERSING PACKAGE LINK: conda-forge::ca-certificates-2019.3.9-hecc5488_0 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE UNLINK: defaults::ca-certificates-2019.1.23-0 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE UNLINK: defaults::openssl-1.1.1b-he774522_1 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
===> REVERSING PACKAGE UNLINK: defaults::certifi-2019.3.9-py37_0 <===
prefix=C:\Users\Shmuli\Anaconda3\envs\fever
done
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 622, in _execute_actions
action.execute()
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 558, in execute
self.target_prefix, self.transaction_context['target_python_version'])
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\gateways\disk\create.py", line 380, in compile_multiple_pyc
stdout, stderr, rc = any_subprocess(command, prefix)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\gateways\subprocess.py", line 45, in any_subprocess
stdout=PIPE, stderr=PIPE, env=env)
File "C:\Users\Shmuli\Anaconda3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\Shmuli\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
OSError: [WinError 87] The parameter is incorrect
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 553, in _execute
cls._execute_actions(pkg_idx_tracked, axngroup)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 638, in _execute_actions
reverse_excs,
conda.CondaMultiError: [WinError 87] The parameter is incorrect
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\exceptions.py", line 1003, in __call__
return func(*args, **kwargs)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 20, in execute
install(args, parser, 'install')
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\install.py", line 275, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\install.py", line 304, in handle_txn
unlink_link_transaction.execute()
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 241, in execute
self._execute(tuple(concat(interleave(itervalues(self.prefix_action_groups)))))
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 587, in _execute
rollback_excs,
conda.CondaMultiError: [WinError 87] The parameter is incorrect
I tried just installing attrs using conda and received this error message:
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 622, in _execute_actions
action.execute()
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\path_actions.py", line 558, in execute
self.target_prefix, self.transaction_context['target_python_version'])
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\gateways\disk\create.py", line 380, in compile_multiple_pyc
stdout, stderr, rc = any_subprocess(command, prefix)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\gateways\subprocess.py", line 45, in any_subprocess
stdout=PIPE, stderr=PIPE, env=env)
File "C:\Users\Shmuli\Anaconda3\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Users\Shmuli\Anaconda3\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
OSError: [WinError 87] The parameter is incorrect
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 553, in _execute
cls._execute_actions(pkg_idx_tracked, axngroup)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 638, in _execute_actions
reverse_excs,
conda.CondaMultiError: [WinError 87] The parameter is incorrect
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\exceptions.py", line 1003, in __call__
return func(*args, **kwargs)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\main_install.py", line 20, in execute
install(args, parser, 'install')
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\install.py", line 275, in install
handle_txn(unlink_link_transaction, prefix, args, newenv)
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\cli\install.py", line 304, in handle_txn
unlink_link_transaction.execute()
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 241, in execute
self._execute(tuple(concat(interleave(itervalues(self.prefix_action_groups)))))
File "C:\Users\Shmuli\Anaconda3\lib\site-packages\conda\core\link.py", line 587, in _execute
rollback_excs,
conda.CondaMultiError: [WinError 87] The parameter is incorrect
I'm not sure why exactly the WinError 87 was thrown, but I managed to solve the issue by shutting off auto containment in Comodo. Instructions for how to do so can be found here: https://steamcommunity.com/discussions/forum/1/617328967248066054/
I was trying to update anaconda with dthis command:
conda update --all
But the update failed, an error occurred:
[WinError 87] Incorrect parameter update conda
I tried to uninstall and install again but the error still occurs, so in my case the problem was Comodo antivirus, I had to turn off auto containment in Comodo.
I am using django 1.11 on fedora25. I am using virtual environment and while trying to install misaka:
pip install misaka
I got the following error:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fkyx6m64/misaka/
Here is the traceback:
Collecting django-misaka
Downloading django-misaka-0.2.1.tar.gz
Collecting houdini.py (from django-misaka)
Downloading houdini.py-0.1.0.tar.gz
Collecting misaka (from django-misaka)
Downloading misaka-2.1.0.tar.gz (127kB)
100% |████████████████████████████████| 133kB 317kB/s
Complete output from command python setup.py egg_info:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
(If they are about -mno-fused-madd and you are on OS/X 10.8,
see http://stackoverflow.com/questions/22313407/ .)
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 135, in <module>
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 70, in ask_supports_thread
'Topic :: Text Processing :: Markup',
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 52, in no_working_compiler_found
packages=['misaka'],
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1099, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 249, in run_setup
raise
File "/usr/lib64/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib64/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 168, in save_modules
saved_exc.resume()
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 143, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python3.5/site-packages/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 156, in save_modules
yield saved
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 246, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 276, in run
return func()
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 245, in runner
_execfile(setup_script, ns)
File "/usr/lib/python3.5/site-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 135, in <module>
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 70, in ask_supports_thread
'Topic :: Text Processing :: Markup',
File "/tmp/easy_install-j_v6nkgj/cffi-1.10.0/setup.py", line 52, in no_working_compiler_found
packages=['misaka'],
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-fkyx6m64/misaka/setup.py", line 76, in <module>
cffi_modules=['build_ffi.py:ffi'],
File "/usr/lib64/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python3.5/site-packages/setuptools/dist.py", line 348, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python3.5/site-packages/setuptools/dist.py", line 394, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1098, in best_match
return self.obtain(req, installer)
File "/usr/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1110, in obtain
return installer(requirement)
File "/usr/lib/python3.5/site-packages/setuptools/dist.py", line 461, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 663, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 693, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 874, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1113, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1101, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fkyx6m64/misaka/
I got a similar issue while using virtual environment. Explicitly mention pip2, this might work
pip2 install misaka
and while executing also mention python2
python2 example.py
I am solved it by take this way:
install conda with prombt of conda install : conda install libpython m2w64-toolchain -c msys2
upgrade your pip by : python -m pip install --upgrade pip
instal misaka : pip install misaka
I'm trying to install twython, but keep getting errors.
First attempt:
pi#raspberrypi ~/twython $ sudo pip-3.2 install twython
Running setup.py egg_info for package requests
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pi/twython/build/requests/setup.py", line 52, in <module>
exec(f.read(), about)
File "<string>", line 14
__cake__ = u'\u2728 \U0001f370 \u2728'
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/pi/twython/build/requests/setup.py", line 52, in <module>
exec(f.read(), about)
File "<string>", line 14
__cake__ = u'\u2728 \U0001f370 \u2728'
^
SyntaxError: invalid syntax
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/twython/build/requests
Next I searched on the last line of the error and followed some suggestions that said to make sure setuptools and ez_install were installed and up to date, but that didn't help.
Then I followed the backup instructions on ReadtheDocs that said to try to install it this way:
git clone git://github.com/ryanmcgrath/twython.git
cd twython
sudo python3 setup.py install
but it failed again:
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 640, in install_item
self.process_distribution(spec, dist, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 692, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 576, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 822, in best_match
return self.obtain(req, installer) # try and download/install
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 834, in obtain
return installer(requirement)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 31, in run_setup
lambda: exec(compile(open(
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 73, in run
return func()
File "/usr/lib/python3/dist-packages/setuptools/sandbox.py", line 34, in <lambda>
{'__file__':setup_script, '__name__':'__main__'})
File "setup.py", line 52, in <module>
Error in atexit._run_exitfuncs:
TypeError: 'NoneType' object is not callable
It turns out that Twython cannot work with Python v3.2 because it depends on the requests module which apparently is not supported in Python 3.2.
One of the developers of Twython just explained this to me on Twitter.