Python cannot load ghpythonlib.components


#1

Hi all,

Did any one have the same problem and find a solution to this?
My python fails to load the ghpythonlib and showing " lightexception object has no attribute ‘component’ ".
Most of my scripts have use a lot of ghcomps invole and now they all not working… T_T

Thanks for any hint,

Jack


(Giulio Piacentino) #2

Hi @Jack_Zeng

were you able to fix this? Was this in Rhino WIP or Rhino 5?
If it is in Rhino WIP, this should have been fixed in the WIP released just one day after you reported this.
Thanks,

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com


#3

Hi Piac,

Thanks for your reply. I am using Rhino 5.
The problem on Rhino Python goes away after I have run the Ghpythonlib in grasshopper.
I found that Steve Baer has told that we need to run the Ghpythonlib in grasshopper at lease once before we use it in Rhino Python.

Thanks,

Jack


(Giulio Piacentino) #4

Thanks. I reported RH-36453 so we can address this.


(Brian Gillespie) #5

RH-36453 is fixed in the latest WIP