python-mvdxml
python-mvdxml copied to clipboard
ImportError: cannot import name 'mvdxml_expression'
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?
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?
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 :-)
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!