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".
Related
I'm developing with python 3 and trying to install the pyautogui Module, and to be able to use it I had to install some packages. But I keep getting errors when installing the packages with pip3.
Collecting pyobjc-framework-Quartz
Using cached https://files.pythonhosted.org/packages/a9/af/fb7a7264d3bf0147bdd1d01eeb4e8b1cac90f0613aca336b178771dcdec7/pyobjc-framework-Quartz-6.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-4ukazwoa/pyobjc-framework-Quartz/setup.py", line 67, in <module>
py_limited_api=True,
File "/tmp/pip-install-4ukazwoa/pyobjc-framework-Quartz/pyobjc_setup.py", line 390, in Extension
os_level = get_os_level()
File "/tmp/pip-install-4ukazwoa/pyobjc-framework-Quartz/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'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-4ukazwoa /pyobjc-framework-Quartz/
Anyone has a idea what the problem is?
Anything related to Objective C, pyobjc and especially pyobjc-framework-Quartz require Mac OS X. You cannot install them at Ubuntu.
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
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 am trying to do make install, but I keep getting an error. I already tried following this answer: Can't install via pip .
I get the below error:
C:\Python33>pip install envoy
Downloading/unpacking envoy
Downloading envoy-0.0.2.tar.gz
Running setup.py egg_info for package envoy
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\pom\appdata\local\temp\pip_build_pom\envoy\setup.py", line 6, in <module>
import envoy
File ".\envoy\__init__.py", line 1, in <module>
from core import *
ImportError: No module named 'core'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "c:\users\pom\appdata\local\temp\pip_build_pom\envoy\setup.py", line 6, in <module>
import envoy
File ".\envoy\__init__.py", line 1, in <module>
from core import *
ImportError: No module named 'core'
Cleaning up...
Command python setup.py egg_info failed with error code 1 in
c:\users\pom\appdata\local\temp\pip_build_pom\envoy
Storing complete log in C:\Users\pom\pip\pip.log
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.