Comments (6)
@nlehuby Thanks for reporting this, and sorry for your issues regarding the installation.
Seems to be an issue that the cykhash library isn't installing properly for some reason.
Before installing pyrosm can you try installing cykhash with:
$ pip install https://github.com/HTenkanen/cykhash/archive/master.zip
And after that try to install pyrosm.
By the way: are you using conda or virtualenv for managing environments? I haven't tested installations with virtualenv (installation tests are done using conda), so there might be some things that requires fixing.
from pyrosm.
Thanks for your quick answer. I'm using pipenv to manage my virtualenv and dependancies.
Indeed, I can't install cykhash:
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.7-OVQonc/python3.7-3.7.7=. -fstack-protector-strong -Wformat -Werror=format-security -g -fdebug-prefix-map=/build/python3.7-OVQonc/python3.7-3.7.7=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/home/nlehuby/.local/share/virtualenvs/python-JOH7DBZn/include/python3.7m -c src/cykhash/khashsets.c -o build/temp.linux-x86_64-3.7/src/cykhash/khashsets.o
src/cykhash/khashsets.c:17:10: fatal error: Python.h: Aucun fichier ou dossier de ce type
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/nlehuby/.local/share/virtualenvs/python-JOH7DBZn/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-0ikx2ell/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-0ikx2ell/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-v9zuy5r4/install-record.txt --single-version-externally-managed --compile --install-headers /home/nlehuby/.local/share/virtualenvs/python-JOH7DBZn/include/site/python3.7/cykhash Check the logs for full command output.
from pyrosm.
Ok, I found the issue, I could not build C code from python3 code because I was using a python3-dev
for python 3.6 instead of python 3.7.
I've updated the python3-dev
package and successfully managed to install cykhash and then pyrosm
Will try a normal pyrosm install from scratch now.
from pyrosm.
@nlehuby Okay, great that you were able to solve this.
from pyrosm.
Everything is ok, and it works out of the box with pipenv by the way.
Thanks for your support.
from pyrosm.
@nlehuby Great to hear!
from pyrosm.
Related Issues (20)
- Maintenance: Improve cleaning script
- Maintenance: Add issue templates
- Fix tests after float accuracy adjustment HOT 1
- Update the codebase for latest pygeos/shapely HOT 2
- DOC: Building RTD docs don't work due to Jinja2 import issues
- Bounding Polys of data.available
- Get buildings merged parts and creates a new ID HOT 1
- unexpected behavior when using bounding boxes
- Fix documentation URL
- Add a progress bar while executing a request
- No boundaries extracted (except administrative ones)
- " The kernel appears to have died. It will restart automatically"
- GEOSException: IllegalArgumentException: Argument must be Polygonal or LinearRing
- ModuleNotFoundError: No module named 'pyrosm_proto' HOT 1
- Make pyrosm compatible with newer numpy and shapely version. HOT 13
- Question: regarding Documentation/code
- AttributeError: module 'numpy' has no attribute 'float' HOT 6
- pip install pyrosm fails v0.6.1. HOT 3
- ImportError: cannot import name 'TopologicalError' from 'shapely.geos' HOT 3
- AttributeError: module 'shapely.geos' has no attribute 'lgeos' HOT 2
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 pyrosm.