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
{{ message }}
Repository navigation
datacheck.sh: AttributeError: 'ConnectedRoute' object has no attribute 'mileage' #394
This error message isn't one we intentionally designed to output. It's is not from siteupdate.py itself, but rather python3, which barfs upon trying to access an attribute of the variable that does not exist. (Due to the nature of C++ and Python's different type systems, this error can not exist in the C++ version). IOW, there's a bug somewhere.
This deals with ConnectedRoute CSVs but is an unrelated error. (On second thought, probably related. We should not have a partially constructed ConnectedRoute object making it past this part of siteupdate to the hdstatsfile phase.) Then, siteupdate itself reported an invalid number of fields in a CSV line:
el.add_error("Could not parse "+system.systemname+"_con.csv line: ["+line+
"], expected 5 fields, found "+str(len(fields)))
Now, siteupdate expects an attribute to be attached to a specific variable that isn't.
Right now no, since siteupdate.py crashes before we can get that far. Other than that, I can't give a meaningful yes/no answer. Once the underlying bug is fixed, there will hopefully no longer be anything to output at that point.
Thanks for this info. I was able to load up the parent commit for each and reproduce the problem on lab1.
I had a similar error in the past but got more detailed info above (I think it was something like "no connected route found for xxx" and could check the line before and found the error).
I see ERROR: Could not parse frabfcd71_con.csv line: [frabfcd71;D182;-71;;Dulphey;frabfc.d018271], expected 5 fields, found 6 (TravelMapping/HighwayData@90b185f) inline in siteupdate.log. As noted, we don't make it to the point of aborting due to ErrorList errors & seeing it again.
I had a similar error in the past but got more detailed info above (I think it was something like "no connected route found for xxx" and could check the line before and found the error).
Sounds like a bit of a different underlying error in that case, that played out differently.
ERROR: frabfcd71.csv: root frabfc.d018271cyr not matched by any connected route root.
ERROR: frabfcd71.csv: root frabfc.d018271 not matched by any connected route root.
and then eventually
[45.1] ABORTING due to 4 errors:
1: Could not parse frabfcd71_con.csv line: [frabfcd71;D182;-71;Cyr;Saint-Cyr;frabfc.d018271cyr], expected 5 fields, found 6
2: Could not parse frabfcd71_con.csv line: [frabfcd71;D182;-71;;Dulphey;frabfc.d018271], expected 5 fields, found 6
3: frabfcd71.csv: root frabfc.d018271cyr not matched by any connected route root.
4: frabfcd71.csv: root frabfc.d018271 not matched by any connected route root.
Activity
yakra commentedon Jan 3, 2021
This error message isn't one we intentionally designed to output. It's is not from siteupdate.py itself, but rather python3, which barfs upon trying to access an attribute of the variable that does not exist. (Due to the nature of C++ and Python's different type systems, this error can not exist in the C++ version). IOW, there's a bug somewhere.
This deals with ConnectedRoute CSVs
but is an unrelated error. (On second thought, probably related. We should not have a partially constructed ConnectedRoute object making it past this part of siteupdate to thehdstatsfilephase.) Then, siteupdate itself reported an invalid number of fields in a CSV line:DataProcessing/siteupdate/python-teresco/siteupdate.py
Lines 1124 to 1125 in 362587e
Now, siteupdate expects an attribute to be attached to a specific variable that isn't.
Right now no, since siteupdate.py crashes before we can get that far. Other than that, I can't give a meaningful yes/no answer. Once the underlying bug is fixed, there will hopefully no longer be anything to output at that point.
Whatever's going on, it's probably my bad.
@michihdeu, were you running datacheck.sh on noreaster, or a different system?
michihdeu commentedon Jan 3, 2021
noreaster
yakra commentedon Jan 3, 2021
@michihdeu wrote:
Thanks for this info. I was able to load up the parent commit for each and reproduce the problem on lab1.
I see
ERROR: Could not parse frabfcd71_con.csv line: [frabfcd71;D182;-71;;Dulphey;frabfc.d018271], expected 5 fields, found 6(TravelMapping/HighwayData@90b185f) inline in siteupdate.log. As noted, we don't make it to the point of aborting due toErrorListerrors & seeing it again.yakra commentedon Jan 3, 2021
Sounds like a bit of a different underlying error in that case, that played out differently.
When I run the C++ siteupdate with TravelMapping/HighwayData@90b185f, I do see
and then eventually
yakra commentedon Jan 3, 2021
I think I've fixed it. Testing.
ConnectedRoute constructor fix for TravelMapping#394
Merge pull request #396 from yakra/master