fail to parse ifcopenshell version from non numbers

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
obanana
Posts: 2
Joined: Mon Dec 05, 2022 8:29 pm
Contact:

fail to parse ifcopenshell version from non numbers

Post by obanana »

I ran into a small problem here when trying to export a building model to IFC format with the ifcopenshell python package.

It seems like when FreeCAD attempts to parse the version string of ifcopenshell, it fails because the version of `ifcopenshell` contains non number characters inside.

I have documented the issue here on GH: https://github.com/FreeCAD/FreeCAD/issues/7957

I'm pretty new to the FreeCAD codebase in general. No too sure what to look for at this point. Any tips on this would be appreciated.
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: fail to parse ifcopenshell version from non numbers

Post by balrobs »

Hi @obanana ,
Although I am only a very bad coder, I can try to propose a solution.
Give me some time!
Regards

PS: Can you add some more information: version number, operating system, ifc-file?
balrobs
Posts: 449
Joined: Fri Apr 24, 2020 8:58 pm

Re: fail to parse ifcopenshell version from non numbers

Post by balrobs »

In the meantime I found your information on Github.
The code for parsing the ifcopenshell version changed from FreeCAD 0.20 to FreeCAD 0.21 and most likely solved your problem.
Please try and report back :)
obanana
Posts: 2
Joined: Mon Dec 05, 2022 8:29 pm
Contact:

Re: fail to parse ifcopenshell version from non numbers

Post by obanana »

Ah~ I see. thanks for checking in the repo. I think for my setup (Debian 11), I can just point my FreeCAD's remote to the FreeCAD, because whatever on Debian's repo is outdated. I think that usually solve the problem.

I think I can close this thread for now.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: fail to parse ifcopenshell version from non numbers

Post by yorik »

We could backport the fix to 0.20, though (it might take some time to make its way into debian, but it could help others). If you still have version 0.20 around, can you give the exact error message that you have?
Post Reply