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 when exporting to .obj #34

Closed
gsclara opened this issue Oct 30, 2019 · 4 comments
Closed

AttributeError when exporting to .obj #34

gsclara opened this issue Oct 30, 2019 · 4 comments

Comments

@gsclara
Copy link

gsclara commented Oct 30, 2019

Using cjio version 0.5.5.
When I try to export into .obj file:
cjio tudelft_campus.json export tudelft_campus.obj
I get this error message:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/bin/cjio", line 11, in
load_entry_point('cjio==0.5.5', 'console_scripts', 'cjio')()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 1164, in invoke
return _process_result(rv)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 1102, in _process_result
**ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cjio/cjio.py", line 92, in process_pipeline
cm = processor(cm)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cjio/cjio.py", line 254, in processor
if format.lower() == '3dtiles' or not isinstance(cm, list):
AttributeError: 'NoneType' object has no attribute 'lower'

Am I doing something wrong?
tudelft_campus_subsetEWI_Building.json.zip

Thank you!

@balazsdukai
Copy link
Member

Looks like you installed from the develop branch. You'll need to pass the --format flag after the export command.

cjio tudelft_campus.json export --format obj tudelft_campus.obj

Let me know if this solves it.

@gsclara
Copy link
Author

gsclara commented Oct 30, 2019

Yes, that made it work, and it is actually explained in the help.
Thank you!

@hugoledoux
Copy link
Member

hugoledoux commented Oct 30, 2019

if --format XXX must be used then it shouldn't be an option but an argument, no?

cjio tudelft_campus.json export obj tudelft_campus.obj

@balazsdukai
Copy link
Member

Indeed, makes more sense!

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

3 participants