You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I tried to create a transport network. For this I downloaded the latest osm.pbf of Germany from Geofabrik and clipped it to my target area with osmconvert. The GTFS file is obtained from https://gtfs.de/.
To Reproduce
Steps to reproduce the behavior:
import r5py
# Make the R5 transport network from these
transport_network = r5py.TransportNetwork(
pbf_path,
[gtfs_path],
)
Error message:
Traceback (most recent call last):
File "c:\Users\johan\miniforge3\envs\r5py\Lib\site-packages\r5py\r5\transport_network.py", line 113, in __del__
del self._transport_network
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TransportNetwork' object has no attribute '_transport_network'
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
File StreetLayer.java:214, in com.conveyal.r5.streets.StreetLayer.loadFromOsm()
Exception: Java Exception
The above exception was the direct cause of the following exception:
java.lang.NullPointerException Traceback (most recent call last)
Cell In[4], [line 6](vscode-notebook-cell:?execution_count=4&line=6)
[3](vscode-notebook-cell:?execution_count=4&line=3) gtfs_path ="data/gtfs/2024-03-25_free_gtfs.zip"
[5](vscode-notebook-cell:?execution_count=4&line=5) # Make the R5 transport network from these
----> [6](vscode-notebook-cell:?execution_count=4&line=6) transport_network = r5py.TransportNetwork(
[7](vscode-notebook-cell:?execution_count=4&line=7) pbf_path,
[8](vscode-notebook-cell:?execution_count=4&line=8) [gtfs_path],
[9](vscode-notebook-cell:?execution_count=4&line=9) )
File [c:\Users\johan\miniforge3\envs\r5py\Lib\site-packages\r5py\r5\transport_network.py:67](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:67), in TransportNetwork.__init__(self, osm_pbf, gtfs)
[64](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:64) self.osm_file = osm_file # keep the mapdb open, close in destructor
[66](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:66) transport_network.streetLayer = com.conveyal.r5.streets.StreetLayer()
---> [67](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:67) transport_network.streetLayer.loadFromOsm(osm_file)
[68](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:68) transport_network.streetLayer.parentNetwork = transport_network
[69](file:///C:/Users/johan/miniforge3/envs/r5py/Lib/site-packages/r5py/r5/transport_network.py:69) transport_network.streetLayer.indexStreets()
java.lang.NullPointerException: java.lang.NullPointerException: Cannot invoke "com.conveyal.osmlib.Node.getLon()" because "n" is null
Expected behavior
I haven't used this r5py for a few months. Before this worked flawlessly and a transport network was created.
Environment:
OS: Windows 11
Python package source: mamba
Versions of Python: 3.12
The text was updated successfully, but these errors were encountered:
Describe the bug
I tried to create a transport network. For this I downloaded the latest osm.pbf of Germany from Geofabrik and clipped it to my target area with osmconvert. The GTFS file is obtained from https://gtfs.de/.
To Reproduce
Steps to reproduce the behavior:
Error message:
Expected behavior
I haven't used this r5py for a few months. Before this worked flawlessly and a transport network was created.
Environment:
The text was updated successfully, but these errors were encountered: