GithubHelp home page GithubHelp logo

Install fails about pyrosm HOT 6 CLOSED

htenkanen avatar htenkanen commented on July 28, 2024
Install fails

from pyrosm.

Comments (6)

HTenkanen avatar HTenkanen commented on July 28, 2024

@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.

nlehuby avatar nlehuby commented on July 28, 2024

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.

nlehuby avatar nlehuby commented on July 28, 2024

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.

HTenkanen avatar HTenkanen commented on July 28, 2024

@nlehuby Okay, great that you were able to solve this. 👍 Let me know if you continue to have some issues.

from pyrosm.

nlehuby avatar nlehuby commented on July 28, 2024

Everything is ok, and it works out of the box with pipenv by the way.
Thanks for your support.

from pyrosm.

HTenkanen avatar HTenkanen commented on July 28, 2024

@nlehuby Great to hear! 👍 Feel free to raise new issues if you find something that isn't working or if you have other ideas how to improve the tool. 🙂

from pyrosm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.