Problems installing on mac, python 3.4.1
Closed this issue · 4 comments
luckydonald commented
Maybe you can have a look, not sure if it is related to your package, but other modules did install.
Install packages failed: Error occurred when installing package python-forecastio.
The following command was executed:
packaging_tool.py install --build-dir /private/var/folders/gj/84mj91y514z79t19xfc8t8sr0000gn/T/pycharm-packaging5452297355347498062.tmp --user python-forecastio
The error output of the command:
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 56, in do_install
import pip
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/util.py", line 18, in <module>
from pip._vendor.distlib import version
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/_vendor/distlib/version.py", line 14, in <module>
from .compat import string_types
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pip/_vendor/distlib/compat.py", line 66, in <module>
from urllib.request import (urlopen, urlretrieve, Request, url2pathname,
ImportError: cannot import name 'HTTPSHandler'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 125, in main
retcode = do_install(pkgs)
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 58, in do_install
error_no_pip()
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 36, in error_no_pip
tb = sys.exc_traceback
AttributeError: 'module' object has no attribute 'exc_traceback'
luckydonald commented
Fixted it, probably was IDE related (PyCharm).
pip3 install python_forecastio
did fix it.
luckydonald commented
Againly, PyCharm related:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 425: ordinal not in range(128)
It executed
$ pip install python-forecastio
in my virtual env.
Collecting python-forecastio
Using cached python-forecastio-1.3.1.tar.gz
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/zh/ntn59b4954l6tldmt4hn8bgc0000gn/T/pycharm-packaging1.tmp/python-forecastio/setup.py", line 28, in <module>
long_description=open('README.rst').read(),
File "/Users/luckydonald/Documents/Programmieren/Python/telegram-brony-bot/virtualenv3.4.3/bin/../lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 425: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/zh/ntn59b4954l6tldmt4hn8bgc0200gn/T/pycharm-packaging1.tmp/python-forecastio/setup.py", line 28, in <module>
long_description=open('README.rst').read(),
File "/Users/luckydonald/Documents/Programmieren/Python/telegram-brony-bot/virtualenv3.4.3/bin/../lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 425: ordinal not in range(128)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/zh/ntn59b4954l6tldmt4hn8bgc0000gn/T/pycharm-packaging1.tmp/python-forecastio
luckydonald commented
While Command line works again.
(virtualenv3.4.3)mac-2:telegram-bot luckydonald$ pip install python-forecastio
Collecting python-forecastio
Using cached python-forecastio-1.3.1.tar.gz
Collecting requests>=1.6 (from python-forecastio)
Downloading requests-2.5.3-py2.py3-none-any.whl (468kB)
100% |################################| 471kB 573kB/s
Installing collected packages: requests, python-forecastio
Running setup.py install for python-forecastio
Successfully installed python-forecastio-1.3.1 requests-2.5.3
ZeevG commented
Interestingly there was a strange, completely unnecessary UTF-8 char in that position! I've now removed it and incremented the patch version.
The problematic character was one of these http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=0x2019&mode=hex
It looks like maybe @DannyGoodall has also been running into this problem DannyGoodall@52b7f4c