Comments (6)
@HTenkanen This problem already been fixed in master branch. But this changing is not released yet.
Do you have release planning?
from pyrosm.
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.
Thanks!
from pyrosm.
The error arise in the file geometry.pyx:312, in pyrosm.geometry.create_linestring_geometry()
from pyrosm.
import numpy as np
np.float = float
works for me
from pyrosm.
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)
- ModuleNotFoundError: No module named 'pyrosm_proto' HOT 1
- Make pyrosm compatible with newer numpy and shapely version. HOT 13
- Question: regarding Documentation/code
- 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
- Members of relations do not appear in the columns HOT 1
- Error message when trying to download cycling network for Poznan HOT 1
- Unix to Datetime conversion does not work
- Update Python environments
- custom_filter get_pois not working with value True HOT 6
- Building geometry mismatch issue
- Is it possible to export the filtered OSM to OSM/XODR?
- Writing OSM PBF files?
- Error when modifying the example code for Basic Usage:Read street networks
- loading multipolygon
- elevation data? HOT 1
- Is there a method to get all objects?
- ID in building tags overwriting way ID HOT 1
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.