Comments (7)
Looks like the default encoding on your system is set to ASCII instead of UTF-8. This issue will be fixed in the next release.
from python-overpy.
I could reproduce the error by setting the LC_CTYPE
environment variable to C
.
LC_CTYPE=C python setup.py build
Traceback (most recent call last):
File "setup.py", line 18, in <module>
long_description = fp.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1883: ordinal not in range(128)
from python-overpy.
Thanks, I figured as much, but didn't think to check the src. As a sidenote, is this a python default or system default?
from python-overpy.
From the Python 3 Docs
In text mode, if encoding is not specified the encoding used is platform dependent: locale.getpreferredencoding(False) is called to get the current locale encoding.
During the setup/build process the README.rst is read to provide the long description for the package. There are some UTF-8 characters in this file. That's why the build process fails on systems that don't use UTF-8 as their default encoding.
from python-overpy.
I have merged a fix and it should be available in the next release.
from python-overpy.
Thanks for your help. I was wondering if you knew when the next release would be?
from python-overpy.
Also, I'm not sure its an default encoding issue, since:
$ python3 -c 'import sys; print(sys.getdefaultencoding())'
utf-8
$ sudo pip3 install overpy
Collecting overpy
Using cached overpy-0.3.1.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-build-5m016bco/overpy/setup.py", line 12, in <module>
long_description = f.read()
File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1883: ordinal not in range(128)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5m016bco/overpy
You are using pip version 8.0.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command
Maybe pip3 relies on python2?:
$ python -c 'import sys; print(sys.getdefaultencoding())'
ascii
That doesn't make sense to me, though.
from python-overpy.
Related Issues (20)
- delete this HOT 1
- Update/Write to .osm file
- Overpy requires wheel and does not install it if it's not present on the system. HOT 3
- Osint HOT 1
- Get osm_timestamp HOT 2
- Support for Overpass API /api/status
- Support PBF HOT 1
- change BaseException to Exception? HOT 1
- Is there a possibility to query a local Overpass db? HOT 2
- Write to file HOT 4
- Polsby-Popper test
- Quering data from a localhost or patrticular osm file HOT 1
- querying data from local osm file HOT 4
- Query without parsing
- Unknown content type: text/html; charset="utf-8"
- Updating pip package HOT 3
- Road geometry extraction
- build is failing according to the readme badge
- .value() missed HOT 2
- Documentation custom url parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-overpy.