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

ImportError: cannot import name 'mvdxml_expression' #1

Open
SigveMartin opened this issue Mar 28, 2019 · 3 comments
Open

ImportError: cannot import name 'mvdxml_expression' #1

SigveMartin opened this issue Mar 28, 2019 · 3 comments

Comments

@SigveMartin
Copy link

I tried running this with python 3.6.1 and got the following error:

from . import mvdxml_expression
ImportError: cannot import name 'mvdxml_expression'

Im running it from within the folder.

Have any suggestions of what I might do wrong?

@aothms
Copy link
Member

aothms commented Apr 5, 2019

Hi Sigve, this all a bit early perhaps. Thanks for having a look. What we aim to have online at some point is (a) a mvdxml checker on ifcopenshell-python (b) a converter to ifcOwl SPARQL queries and perhaps (c) a data extraction utility.

This repo is also a subrepo in ifcopenshell https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.6.0/src/ifcopenshell-python/ifcopenshell

From there you will be able to invoke it as python -m ifcopenshell.mvd <a.mvdxml> <b.ifc/ttl>. That likely wouldn't be fully working, but at least the import error will be gone.

The conversion to SPARQL currently has the highest chance of running successfully. Is that something that you'd like to try?

@SigveMartin
Copy link
Author

Hi Thomas, this is a great development!

I'll definitely try out the sparql converter as well. Also find the mvd checker/parser utility great in itself! Will play around with that as well when I get the chance.

Currently I'm setting up a notebook server and a class for some BIM students, so might take a while before I get the chance to try this out properly, but I could contribute the class notebooks to the jupyter repo though :-)

@aothms
Copy link
Member

aothms commented Apr 26, 2019

Great, ping @johltn for further questions on the checker/parser.

Currently I'm setting up a notebook server and a class for some BIM students, so might take a while before I get the chance to try this out properly, but I could contribute the class notebooks to the jupyter repo though :-)

Sounds great!

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