Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Python package not loaded correctly anymore

$
0
0

Hi @eirannejad,

update 18/06 - 11:59

Issue is resolved. It turned out i did not use `ifcopenshell.api.owner` before, other than I thought. I now use `ifcopenshell.api.run('owner.create_owner_history', ...)` instead of `ifcopenshell.api.owner.create_owner_history()`

Original question

I am running into an issue with the scripteditor.
I use a package ifc-openshell 0.8.0. Since yesterday I cannot load submodules anymore, that I was able to load before. Possibly since the previous rhino update?

Expected behavior
when I run this test snippet, I expect that submodule ‘owner’ will be printed among other ifcopenshell.api submodules (and that its functions are available of course)

#! python 3

print('installing python packages once...')
# r: ifcopenshell==0.8.0
# r: numpy
print('packages installed')

import ifcopenshell
import ifcopenshell.api

print(dir(ifcopenshell.api))

when I check the rhinocode package folder, they should be available

Actual behavior
‘owner’ is not printed in ifcopenshell.api submodules and not useable

Can you help me with that please?
Could you also provide me a way to install the previous rhino release so I can help testing?

Thanks,
Tim

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles