When i try to download bpy shows me error - python

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

Related

import win32crypt: ImportError: DLL load failed: The specified module could not be found

when I run my python script, I get this error:
import win32crypt:
ImportError: DLL load failed: The specified module could not be found.
I'm on Windows 10 and I am using Python 2.7 because the project I am trying to run was made in python 2.7
I tried running the script and got this error.
I tried all the solutions in this thread too: Can't import win32crypt python module
except pip install pypiwin32: which returns this error:
Using cached pypiwin32-223.tar.gz (622 bytes)
ERROR: Command errored out with exit status 1:
command: 'C:\Python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\setup.py'"'"'; __file__='"'"'c:\\users\\matma\\appdata\\local\\temp\\pip-install-f4ecmx\\pypiwin32\\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\matma\appdata\local\temp\pip-pip-egg-info-tsajuh'
cwd: c:\users\matma\appdata\local\temp\pip-install-f4ecmx\pypiwin32\
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27\lib\site-packages\setuptools\__init__.py", line 21, in <module>
import setuptools.version
File "C:\Python27\lib\site-packages\setuptools\version.py", line 1, in <module>
import pkg_resources
File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1380
raise SyntaxError(e) from e
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

why I am getting this error while installing : pip install pyobjc-framework-Quartz

why Iam getting this error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\kodal\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\kodal\\AppData\\Local\\Temp\\pip-install-odzer82v\\pyobjc-framework-Quartz\\setup.py'"'"'; __file__='"'"'C:\\Users\\kodal\\AppData\\Local\\Temp\\pip-install-odzer82v\\pyobjc-framework-Quartz\\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\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\pip-egg-info'
cwd: C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\setup.py", line 67, in <module>
py_limited_api=True,
File "C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\pyobjc_setup.py", line 420, in Extension
if "clang" in get_config_var("CC"):
TypeError: argument of type 'NoneType' is not iterable
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'll take a guess here, but your traceback shows that you're on Windows, but pyobjc-framework-Quartz is a macOS framework. That same command worked fine on my macOS machine.

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.

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

error python setup.py egg_info when trying to install shapely

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.

Categories