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

AttributeError: 'NoneType' object has no attribute 'nodes' #8

Open
heeji289 opened this issue Sep 25, 2019 · 1 comment
Open

AttributeError: 'NoneType' object has no attribute 'nodes' #8

heeji289 opened this issue Sep 25, 2019 · 1 comment

Comments

@heeji289
Copy link

heeji289 commented Sep 25, 2019

I tried to use your code.
I installed everything that dependencies required.
Following your guide, I typed below words in terminal.

python apls.py --test_method=gt_json_prop_json --output_name=gt_json_prop_json
--truth_dir=data/gt_json_prop_json/AOI_2_Vegas_Train/spacenetroads
--prop_dir=data/gt_json_prop_json/AOI_2_Vegas_Train/osm

I also checked that there are geojson files in indicated directories.

But after executing, I got this error message,

image

This error occur in this line.
image

Why they trigger error like that? Why G_gt_init has none value?

Thank you.

#8

@drStacky
Copy link

drStacky commented Dec 3, 2019

I ran into the same problem. The issue is this line:

return

Since speed_key was not given, this line returns nothing. I changed it to return G_.
That unearthed another bug where outdir was not defined. To fix this, uncomment the code here:

apls/apls/apls.py

Line 2982 in b14ec4e

# ##################

I haven't thoroughly inspected the output, but it runs now and produces a bunch of output files.

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

2 participants