Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940465 - media-gfx/freecad-1.0_rc1-r1: BIM module crashes in tutorial due to lack of python module ifcopenshell
Summary: media-gfx/freecad-1.0_rc1-r1: BIM module crashes in tutorial due to lack of p...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-09-28 19:42 UTC by Peter Fox
Modified: 2024-10-18 18:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.45 KB, text/plain)
2024-09-28 20:07 UTC, Peter Fox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Fox 2024-09-28 19:42:21 UTC
I have been trying the BIM tutorial, but when I draw a line at 31% through the tutorial (step 7/22) I get an exception:

20:19:56  pyException: Traceback (most recent call last):
  File "/usr/lib64/freecad/Mod/BIM/nativeifc/ifc_observer.py", line 71, in slotDeletedObject
    from nativeifc import ifc_tools  # lazy loading
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/freecad/Mod/BIM/nativeifc/ifc_tools.py", line 32, in <module>
    from importers import exportIFC
  File "/usr/lib64/freecad/Mod/BIM/importers/exportIFC.py", line 43, in <module>
    from importers import exportIFCHelper
  File "/usr/lib64/freecad/Mod/BIM/importers/exportIFCHelper.py", line 27, in <module>
    import ifcopenshell
<class 'ModuleNotFoundError'>: No module named 'ifcopenshell'

Many python files in /usr/lib64/freecad/Mod/BIM/importers/ attempt to import ifcopenshell.

I cannot find a package in portage to install ifcopenshell.
Comment 1 Peter Fox 2024-09-28 19:47:24 UTC
The installation guide for ifcopenshell is at https://docs.ifcopenshell.org/ifcopenshell-python/installation.html
Comment 2 Peter Fox 2024-09-28 19:54:56 UTC
It looks like the ifcopenshell-0.8.0 source uses tag bonsai-0.8.0 and can be found at https://github.com/IfcOpenShell/IfcOpenShell/tree/bonsai-0.8.0
Comment 3 Peter Fox 2024-09-28 20:02:11 UTC
Possibly relevant: https://wiki.freecad.org/IfcOpenShell
Comment 4 Peter Fox 2024-09-28 20:07:23 UTC
Created attachment 904116 [details]
emerge --info

Just in case you need it
Comment 5 Nowa Ammerlaan gentoo-dev 2024-09-30 13:44:31 UTC
Sigh, packaging this is not going to be easy
Comment 6 Chris Mayo 2024-10-18 18:53:54 UTC
I've had a go:
https://github.com/gentoo/gentoo/pull/39035

Early days though. I haven't used it much - apart from exporting a model which revealed:

https://github.com/FreeCAD/FreeCAD/pull/17327

(Also a plug for my suggested freecad ebuild updates:
https://github.com/gentoo/gentoo/pull/39021
)