python-mvdxml icon indicating copy to clipboard operation
python-mvdxml copied to clipboard

ImportError: cannot import name 'mvdxml_expression'

Open SigveMartin opened this issue 6 years ago • 3 comments

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?

SigveMartin avatar Mar 28 '19 14:03 SigveMartin

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?

aothms avatar Apr 05 '19 11:04 aothms

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 :-)

SigveMartin avatar Apr 26 '19 05:04 SigveMartin

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!

aothms avatar Apr 26 '19 08:04 aothms