GithubHelp home page GithubHelp logo

Comments (6)

miettal avatar miettal commented on July 28, 2024 13

@HTenkanen This problem already been fixed in master branch. But this changing is not released yet.
Do you have release planning?

from pyrosm.

lukasbeuster avatar lukasbeuster commented on July 28, 2024 1

This is likely due to your numpy version.

"As of numpy v1.20, numpy.float as well as similar aliases (including numpy.int) were deprecated." Finally:

"Going forward, numpy v1.24.0 has removed these aliases completely and this is the reason why we’re seeing this error whenever such aliases are used."
See this link for more

So check if your numpy is >1.24.0, and if it is downgrade to an earlier version.

Downgrading to 1.23.5 works, this can be done e.g., by using conda install -c conda-forge numpy=1.23.5

from pyrosm.

Giacomo8899 avatar Giacomo8899 commented on July 28, 2024 1

Thanks!

from pyrosm.

Giacomo8899 avatar Giacomo8899 commented on July 28, 2024

The error arise in the file geometry.pyx:312, in pyrosm.geometry.create_linestring_geometry()

from pyrosm.

geomUm avatar geomUm commented on July 28, 2024

import numpy as np

np.float = float

works for me

from pyrosm.

HTenkanen avatar HTenkanen commented on July 28, 2024

This is now fixed in the new release pyrosm v0.6.2 which fixes the numpy related issues. See #214 . Try updating pyrosm with pip (installing from conda-forge is soon available as well).

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.