error python setup.py egg_info when trying to install shapely - python

This happens when I try to install Shapely from pip.
ERROR: Command errored out with exit status 1:
command: 'c:\program files (x86)\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\adami\\AppData\\Local\\Temp\\pip-install-hws7cr7o\\Shapely\\setup.py'"'"'; __file__='"'"'C:\\Users\\adami\\AppData\\Local\\Temp\\pip-install-hws7cr7o\\Shapely\\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 'C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\pip-egg-info'
cwd: C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\setup.py", line 80, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "C:\Users\adami\AppData\Local\Temp\pip-install-hws7cr7o\Shapely\shapely\_buildcfg.py", line 200, in <module>
lgeos = CDLL("geos_c.dll")
File "c:\program files (x86)\python37-32\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Related

When i try to download bpy shows me error

I'm trying to install pip install bpy in pop os linux but every time shows me this error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dxhgwkzy/bpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dxhgwkzy/bpy/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-pip-egg-info-gazr01pj
cwd: /tmp/pip-install-dxhgwkzy/bpy/
Complete output (16 lines):
Traceback (most recent call last):
File "/usr/lib/python3.8/tokenize.py", line 342, in find_cookie
codec = lookup(encoding)
LookupError: unknown encoding: future_fstrings
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.8/tokenize.py", line 394, in open
encoding, lines = detect_encoding(buffer.readline)
File "/usr/lib/python3.8/tokenize.py", line 381, in detect_encoding
encoding = find_cookie(second)
File "/usr/lib/python3.8/tokenize.py", line 350, in find_cookie
raise SyntaxError(msg)
SyntaxError: unknown encoding for '/tmp/pip-install-dxhgwkzy/bpy/setup.py': future_fstrings
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
so i need to know whats wrong
thank you

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Can anyone asssist

Can somebody help me to resolve the following error, please?
The Error message:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3zeNQM/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3zeNQM/mysqlclient/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-pip-egg-info-41RbUT
cwd: /tmp/pip-install-3zeNQM/mysqlclient/
Complete output (10 lines):
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-3zeNQM/mysqlclient/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 44, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 26, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Try going through answers on this page
It looks like something's wrong with your sql installation or declaration.

what is the difference between pyobjc and pyodbc?

ERROR: Command errored out with exit status 1:
command: 'c:\users\yogesh\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\yogesh\\AppData\\Local\\Temp\\pip-install-i1udmkgw\\pyobjc-framework-SyncServices\\setup.py'"'"'; __file__='"'"'C:\\Users\\yogesh\\AppData\\Local\\Temp\\pip-install-i1udmkgw\\pyobjc-framework-SyncServices\\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 'C:\Users\yogesh\AppData\Local\Temp\pip-pip-egg-info-8e_8sxie'
cwd: C:\Users\yogesh\AppData\Local\Temp\pip-install-i1udmkgw\pyobjc-framework-SyncServices\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\yogesh\AppData\Local\Temp\pip-install-i1udmkgw\pyobjc-framework-SyncServices\setup.py", line 26, in <module>
Extension(
File "C:\Users\yogesh\AppData\Local\Temp\pip-install-i1udmkgw\pyobjc-framework-SyncServices\pyobjc_setup.py", line 390, in Extension
os_level = get_os_level()
File "C:\Users\yogesh\AppData\Local\Temp\pip-install-i1udmkgw\pyobjc-framework-SyncServices\pyobjc_setup.py", line 200, in get_os_level
with open("/System/Library/CoreServices/SystemVersion.plist", "rb") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/System/Library/CoreServices/SystemVersion.plist'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
PyObjC is a bridge between Python and Objective-C.
pyodbc is an open source Python module that makes accessing ODBC databases simple.

ERROR: Command errored out with exit status 1: python setup.py egg_info

I am trying to install the google-api-python-client and I keep getting this error:
ERROR: Command errored out with exit status 1: python setup.py egg_info
More specifically it happens when it is collecting 'googleapis-common-protos<2.0dev,>=1.6.0'. Any tips on how to solve this and has this happened to someone else? I have the latest version of python and pip
Here is the full command output:
ERROR: Command errored out with exit status 1:
command: 'c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\setup.py'"'"'; __file__='"'"'C:\\Users\\ASTHO_~1\\AppData\\Local\\Temp\\pip-install-x0cydaaa\\googleapis-common-protos\\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 'C:\Users\ASTHO_~1\AppData\Local\Temp\pip-pip-egg-info-c2ymsdk9'
cwd: C:\Users\ASTHO_~1\AppData\Local\Temp\pip-install-x0cydaaa\googleapis-common-protos\
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\dist.py", line 16, in <module>
import pkg_resources
File "c:\users\astho_wgi3ujz\appdata\local\programs\python\python37-32\lib\site-packages\pkg_resources.py", line 1479, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

trying to install docplex on python Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output

Collecting docplex
Using cached https://files.pythonhosted.org/packages/1c/06/de7833f2e70d51286611a2676f130f0978d2c16f65047cb965d0af579d08/docplex-2.12.182.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\radoslaw\appdata\local\programs\python\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Radoslaw\\AppData\\Local\\Temp\\pip-install-b1xxmtgb\\docplex\\setup.py'"'"'; __file__='"'"'C:\\Users\\Radoslaw\\AppData\\Local\\Temp\\pip-install-b1xxmtgb\\docplex\\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 'C:\Users\Radoslaw\AppData\Local\Temp\pip-install-b1xxmtgb\docplex\pip-egg-info'
cwd: C:\Users\Radoslaw\AppData\Local\Temp\pip-install-b1xxmtgb\docplex\
Complete output (11 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\radoslaw\appdata\local\programs\python\python36\lib\site-packages\setuptools\__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "c:\users\radoslaw\appdata\local\programs\python\python36\lib\site-packages\setuptools\extension.py", line 7, in <module>
from setuptools.dist import _get_unpatched
File "c:\users\radoslaw\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py", line 17, in <module>
import pkg_resources
File "c:\users\radoslaw\appdata\local\programs\python\python36\lib\site-packages\pkg_resources.py", line 1519, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Please help me, it's so important for me

Categories