Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when i try to get driving data from Brazil Sudeste #173

Open
NicolasMafla opened this issue Mar 10, 2022 · 0 comments
Open

Error when i try to get driving data from Brazil Sudeste #173

NicolasMafla opened this issue Mar 10, 2022 · 0 comments

Comments

@NicolasMafla
Copy link

I downloaded directly from https://download.geofabrik.de/south-america/brazil/sudeste.html .pbf file. I run the following code:

from pyrosm import OSM

osm = OSM(filepath=".../sudeste-latest.osm.pbf")
roads = osm.get_network(network_type="driving")

And return this error:

File "/home/user/miniconda3/envs/.../lib/python3.8/site-packages/pyrosm/networks.py", line 12, in get_network_data
nodes, ways, relation_ways, relations = get_osm_data(node_arrays=None,
File "pyrosm/data_manager.pyx", line 177, in pyrosm.data_manager.get_osm_data
File "pyrosm/data_manager.pyx", line 178, in pyrosm.data_manager.get_osm_data
File "pyrosm/data_manager.pyx", line 174, in pyrosm.data_manager._get_osm_data
File "pyrosm/data_manager.pyx", line 132, in pyrosm.data_manager.get_osm_ways_and_relations
File "pyrosm/data_manager.pyx", line 97, in pyrosm.data_manager.get_way_arrays
File "pyrosm/_arrays.pyx", line 93, in pyrosm._arrays.convert_to_arrays_and_drop_empty
File "pyrosm/_arrays.pyx", line 79, in pyrosm._arrays.convert_to_arrays_and_drop_empty
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant