Difference between revisions of "Talk:IfcOpenShell code examples"

From Wiki.OSArch
(IfcOpenShell python ModuleNotFoundError)
 
 
Line 5: Line 5:
 
1. when I want to import Selector:
 
1. when I want to import Selector:
  
'''import ifcopenshell.util
+
import ifcopenshell.util
 
from ifcopenshell.util.selector import Selector
 
from ifcopenshell.util.selector import Selector
'''''Italic text''
+
 
  
 
I get this error:
 
I get this error:
  
''ModuleNotFoundError: No module named 'lark''''''Bold text'''
+
ModuleNotFoundError: No module named 'lark'
  
 
2. when I try to access property sets:
 
2. when I try to access property sets:
  
'''import ifcopenshell.util.pset
+
import ifcopenshell.util.pset
 
from ifcopenshell import util
 
from ifcopenshell import util
'''''Italic text''
+
 
  
 
I get this error:
 
I get this error:
  
''ModuleNotFoundError: No module named 'ifcopenshell.util.pset''''''Bold text'''
+
ModuleNotFoundError: No module named 'ifcopenshell.util.pset'
  
 
I am using Jupiter, my python version is 3.8.10
 
I am using Jupiter, my python version is 3.8.10

Latest revision as of 11:19, 20 October 2021

Hi there,

it is really helpful this kind of tutorial. however, when I try to follow the examples, I face some problems. I believe these problems may be related to package installation although I have installed it using conda ($ conda install -c conda-forge -c oce -c dlr-sc -c ifcopenshell ifcopenshell). for example:

1. when I want to import Selector:

import ifcopenshell.util from ifcopenshell.util.selector import Selector


I get this error:

ModuleNotFoundError: No module named 'lark'

2. when I try to access property sets:

import ifcopenshell.util.pset from ifcopenshell import util


I get this error:

ModuleNotFoundError: No module named 'ifcopenshell.util.pset'

I am using Jupiter, my python version is 3.8.10