Closed luckydonald closed 9 years ago
Fixted it, probably was IDE related (PyCharm).
pip3 install python_forecastio
did fix it.
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
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
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 https://github.com/DannyGoodall/python-forecast.io/commit/52b7f4c92e3de21c1fa3674fc819187dee50d839
Maybe you can have a look, not sure if it is related to your package, but other modules did install.