No module named 'ifcopenshell'

This forum section is only for IFC-related issues
Post Reply
arnn
Posts: 24
Joined: Fri Feb 21, 2020 7:39 am

No module named 'ifcopenshell'

Post by arnn »

Hi,
Isn't IfcOpenShell already included in conda AppImage version for linux. I am getting the following error

Code: Select all

import ifcopenshell

Code: Select all

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/tmp/.mount_FreeCAz6om9M/usr/lib/python3.10/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'ifcopenshell'
Thanks in advance

Code: Select all

OS: Pop!_OS 22.04 LTS (pop:GNOME/pop)
Word size of FreeCAD: 64-bit
Version: 0.21.29923 (Git) AppImage
Build type: Release
Branch: master
Hash: 30cb46cc5f630c97311162413b68edcff95db481
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * BIM 2021.12.0
  * Reinforcement
  * Assembly4 0.12.3
  * fasteners 0.3.50
  * dodo
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: No module named 'ifcopenshell'

Post by yorik »

I don't remember if IfcOpenShell is in the appimage or not... @Kunda1 might know?
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: No module named 'ifcopenshell'

Post by paullee »

Using FreeCAD-0.20.0-Linux-x86_64.AppImage
on
Fedora 36


Seems it is included ... :)

Code: Select all

Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 17:07:55) 
[GCC 10.3.0] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> 
>>> 
>>> import ifcopenshell
>>> 

Code: Select all

OS: Fedora Linux 36 (Workstation Edition) (GNOME/gnome)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.9.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * dodo
  * DynamicData 2.46.0
  * ArchTextures
  * BIM 2021.12.0
arnn
Posts: 24
Joined: Fri Feb 21, 2020 7:39 am

Re: No module named 'ifcopenshell'

Post by arnn »

I guess this was possible in earlier builds of AppImage, maybe changed now.
Have setup a miniconda env and installed the latest freecad pre-build and also ifcopenshell. Works now.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: No module named 'ifcopenshell'

Post by Syres »

This has only recently been an issue. The last AppImage I have with ifcopenshell included is:

Code: Select all

OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.29485 (Git) AppImage
Build type: Release
Branch: master
Hash: a236ca843fdd6674afb6d7ed1454fbd3b547f5ea
Python 3.10.5, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * fasteners 0.3.50
  * Silk 1.0.0
  * Plot 2022.4.17
  * CfdOF 1.16.1
  * BIM 2021.12.0
  * FeedsAndSpeeds 0.4.0
  * dodo
  * Curves 0.5.2
  * Manipulator 1.4.9
  * fcgear 1.0.0
  * ThreadProfile 1.81.0
  * A2plus 0.4.56a
  * sheetmetal 0.2.55
and the first one without is:

Code: Select all

OS: Linux Mint 19.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.29865 (Git) AppImage
Build type: Release
Branch: master
Hash: fb5c731847398c5bfbc37468ba851e70860a86d5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * fasteners 0.3.50
  * Silk 1.0.0
  * Plot 2022.4.17
  * CfdOF 1.16.1
  * BIM 2021.12.0
  * FeedsAndSpeeds 0.4.0
  * dodo
  * Curves 0.5.2
  * Manipulator 1.4.9
  * fcgear 1.0.0
  * ThreadProfile 1.81.0
  * A2plus 0.4.56a
  * sheetmetal 0.2.55
@looo is this as a consequence of the OCC upgrade?
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: No module named 'ifcopenshell'

Post by looo »

Post Reply