Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] flowrouter.py module 'detector' has no attribute 'DetectorReader'

Hi All,
I am working on how to simulate the traffic senario with real traffic data of Tokyo, which is downloaded from UTD 19 dataset.

I searched on the SUMO documentation, and tried DFROUTER first, but there's warning called: "could not close route for ~~~“
So I checked the SUMO user maillist and get a similar case.
https://www.eclipse.org/lists/sumo-user/msg04056.html

Following the possible solution, I change to use flowrouter.py. Here is what  I have done.
flowrouter.py -n Tokyo.net.xml -d detectors.xml -f flow.txt -o out.add.xml -e out.rou.xml -v --vclass passenger --source-sink-output sourceSink.xml --revalidate-detectors

The output is:
Reading net
748 edges read
Reading detectors
Traceback (most recent call last):
  File "D:\Program Files (x86)\Eclipse\ST\flow\flowrouter.py", line 989, in <module>
    sources, sinks = reader.readDetectors(options.detfile)
  File "D:\Program Files (x86)\Eclipse\ST\flow\flowrouter.py", line 845, in readDetectors
    self._detReader = detector.DetectorReader(detFile, self._lane2edge)
AttributeError: module 'detector' has no attribute 'DetectorReader'

The SUMO version I used is the latest one: 1.8.0, winx64, 
my system is win10 1809, and Python version is also the latest one: 3.9.0

I also attached the files in the email. 
What maybe the possible reasons for that error? How to fix it?
Thanks for your help in advance!

Attachment: flow.zip
Description: Zip compressed data


Back to the top