when I pip install PyIxchariot, there are some errors as below:
Traceback (most recent call last):
File "<string>", line1, in<module>
File "C:\Python36-32\lib\codecs.py", line 321 in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' code can't decode byte 0xd0 in position 81: invaild continuation byte
python setup.py egg_info failed
I don't know how to fix it...
And this is my first time for python pip install issue
Related
I am getting an error when i try to GET some data with my flask app:
Traceback (most recent call last):
File "~/server/env/lib/python3.9/site-packages/sqlalchemy/util/_collections.py", line 1008, in __call__
return self.registry[key]
KeyError: 6166425600
this traceback ends with :
File "~/server/env/lib/python3.9/site-packages/sqlalchemy/dialects/mysql/mysqldb.py", line 163, in dbapi
return __import__("MySQLdb")
ModuleNotFoundError: No module named 'MySQLdb'
When i try to pip install mysqlclient ( the recommended fix ), i get :
Collecting mysqlclient
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
/bin/sh: mysql_config: command not found
/bin/sh: mariadb_config: command not found
/bin/sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/j5/b194wjbn32sbqct7crpvcp2w0000gn/T/pip-install-ijejonzz/mysqlclient_841539cf1eed4511a135f8e95cb2be75/setup.py", line 15, in <module>
metadata, options = get_config()
File "/private/var/folders/j5/b194wjbn32sbqct7crpvcp2w0000gn/T/pip-install-ijejonzz/mysqlclient_841539cf1eed4511a135f8e95cb2be75/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/private/var/folders/j5/b194wjbn32sbqct7crpvcp2w0000gn/T/pip-install-ijejonzz/mysqlclient_841539cf1eed4511a135f8e95cb2be75/setup_posix.py", line 31, in mysql_config
raise OSError("{} not found".format(_mysql_config_path))
OSError: mysql_config not found
mysql_config --version
mariadb_config --version
mysql_config --libs
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
not sure what else to do, outside of the pip install.
Do you have MySQL installed on your machine? Pip is only going to install the python connector, and it is failing because it cannot find MySQL or MariaDB installed locally.
I was trying to install python 3.7 virtualenv packages in my new mac system with runs mac os 10.14.3. But system installation failed due to environment error
Packages:
lxml==3.8.0
Pillow==4.1.1
Fiona==1.7.10.post1
pandas==0.20.2
I Have attached the full crash report in https://pastebin.com/tzMwwHjB
Failed building wheel for Fiona
Failed building wheel for lxml
Failed building wheel for pandas
Failed building wheel for Pillow
Error checking for conflicts.
Traceback (most recent call last):
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2897, in _dep_map
return self.__dep_map
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2691, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2888, in _parsed_pkg_info
return self._pkg_info
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2691, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 503, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_internal/operations/check.py", line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2635, in requires
dm = self._dep_map
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2899, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2908, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2890, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1410, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File "/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1522, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/Fiona-1.8.4.dist-info/METADATA'
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/Users/titus/.virtualenvs/julo-ana/lib/python3.7/site-packages/Fiona-1.8.4.dist-info/RECORD'
Can any one know solution for this. Im trying to fix this for last two days still facing it.
Use the supported version of Python
Try the following:
pip3 install --user package-name (for Python3)
pip install --user package-name (for Python2)
Note: Replace package-name with pandas, lxml, etc
I am creating a development environment with Python to work with cassandra, but I am not able to install Cassandra Driver when I try to install it with the command in Windows 8.1 Power Shell. "\ PIP INSTALL CASSANDRA-DRIVER" and I have the following message error:
Running setup.py install for cassandra-driver ... error
Exception:
Traceback (most recent call last):
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\compat__init__.py", lin
e 73, in console_to_str
return s.decode(sys.stdout.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 9: invalid continuation byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\basecommand.py", line 21
5, in main
status = self.run(options, args)
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", li
ne 342, in run
prefix=options.prefix_path,
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 78
4, in install
**kwargs
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_install.py", lin
e 878, in install
spinner=spinner,
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\utils__init__.py", line
676, in call_subprocess
line = console_to_str(proc.stdout.readline())
File "c:\users\rodrigoaugusto\appdata\local\programs\python\python36-32\lib\site-packages\pip\compat__init__.py", lin
e 75, in console_to_str
return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 9: invalid continuation byte
Could someone help me ?, my current scenario and the following, Operating System: Windows 8.1 Python 3.6 and I am using ANACONDA / Jupyter Notebook to develop.
This issue is due to pip, but not cassandra. Please refer to here for more details. You can also find a few workaround as well. My recommendation is to use python 2 as it's more stable (unless there is specific requirement for python3)
I'm trying to install the python package tabulate by running pip3 install tabulate on Archlinux but i got the following error:
Downloading/unpacking tabulate
Downloading tabulate-0.6.tar.gz
Running setup.py egg_info for package tabulate
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_user/tabulate/setup.py", line 8, in <module>
LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`")
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 8035: ordinal
not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_user/tabulate/setup.py", line 8, in <module>
LONG_DESCRIPTION = open("README.rst").read().replace("`_", "`")
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 8035: ordinal not in range(128)
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_user/tabulate
`Storing complete log in /home/user/.pip/pip.log
I'm running:
python -V -> Python 3.3.2
pip3 -V -> pip 1.4.1 from /usr/lib/python3.3/site-packages (python 3.3)
I have successfully installed other packages by pip and I don't know why this occurs suddenly. Can anyone tell me how to fix this problem?
Solution
It looked like a locale issue on my OS. Had to overwrite the global LANG environment variable to LANG="en_US.UTF-8".
Solution It looked like a locale issue on my OS. Had to overwrite the global LANG environment variable to LANG="en_US.UTF-8".
I have no problems with using pip/install pyramid_mongodb on a production server.
However, when it comes to pyramid_jinja2, this problem keeps popping up and it's driving me nuts. I have used pip/install and easy_install, but both doesn't seem to work.
I'm using python3.3
How should I resolve this?
root#vre [/home/vrnet/public_html/env]# sudo -u vrnet ./bin/pip install pyramid_jinja2
Downloading/unpacking pyramid-jinja2
Running setup.py egg_info for package pyramid-jinja2
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/vrnet/public_html/env/build/pyramid-jinja2/setup.py", line 21, in <module>
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
File "/home/vrnet/public_html/env/lib64/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 131: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/vrnet/public_html/env/build/pyramid-jinja2/setup.py", line 21, in <module>
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
File "/home/vrnet/public_html/env/lib64/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 131: ordinal not in range(128)
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/vrnet/public_html/env/build/pyramid-jinja2
The package changelog has non-ascii characters in the file, breaking the package installation. I've filed a bug report about this.
You'll have to take that up with the developers, or switch to Python 2 or a different template engine instead.