yorikvanhavre / FreeCAD-NativeIFC

A FreeCAD module to work with IFC files natively
GNU General Public License v3.0
66 stars 12 forks source link

Import error: from ifcopenshell import api #32

Closed ebrahimraeyat closed 1 year ago

ebrahimraeyat commented 1 year ago

Hello.

from ifcopenshell import api
<class 'ImportError'>: cannot import name 'api' from 'ifcopenshell' (G:\freecad\git\build\bin\lib\site-packages\ifcopenshell\__init__.py)
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.32165 (Git)
Build type: Release
Branch: master
Hash: 0da14beb27357cc61584335bacbf47f3ef0cc66b
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * beso
  * BIM_Workbench 2021.12.0
  * civilTools
  * dodo 1.0.0
  * etabs_api
  * FreeCAD-Help
  * FreeCAD-NativeIFC 2022.10.20
  * git.7z
  * momen
  * OSAFE 2022.5.29

thanks

yorikvanhavre commented 1 year ago

No error here... Where did you get your IfcOpenShell from? Maybe this is more an error for https://github.com/IfcOpenShell/IfcOpenShell

ebrahimraeyat commented 1 year ago

I installed it via pip. I will try again. Thanks @yorikvanhavre

Moult commented 1 year ago

Install instructions may be found here https://blenderbim.org/docs-python/ifcopenshell-python/installation.html

ebrahimraeyat commented 1 year ago

Thanks @Moult . I installed it via pip again and this time it worked.

yorikvanhavre commented 1 year ago

Closing, then! :)