Please help me! my Rhino Python went something wrong!


(YGH) #1

I can’t use ctypes suddenly!!!
what is this error?!Please somebody help me!!


(Giulio Piacentino) #2

@Yuji_Kaneko I saw there was a similar request by you somewhere else. Did you fix this?
If not, while I do not know ctypes, I would try reinstalling it.


(YGH) #3

not yet…so im gonno try reinstall GHPython!


(Giulio Piacentino) #4

GhPython is unlikely to have anything to do with this error. A possibility is that you might have changed something in ctypes.py? That is the standard types library of IronPython.


(YGH) #5

I’m sure I never changed inside of ctypes.py

in addition, how can I uninstall GHpython?


(Steve Baer) #6

Did you ever install IronPython on your computer? If so, you may want to try uninstalling IronPython and see if that makes a difference.


(YGH) #7

Yes I did but after I installed Iron Python I couldn’t open even Grasshopper so I uninstalled it
is it problem I have Python 2.7 and Python 2.7 for 64bit?


(Giulio Piacentino) #8

I believe you, buy could you please still try reinstalling Rhino 5, nonetheless? Just to make sure that ctypes.py is the original.

You just delete ghpython.gha from Grasshopper: File -> Special Folders -> Components folder. However, deleting this and placing it anew will not fix this error.


(YGH) #9

I solved it !!
when I checked my int file of ctypes in Ironpython in rhino. it was different from my friend. so I copy my friend’s one and paste it. then it’s fixed!!

but sorry… I really don’t have any idea how it was replaced…I’ll try to figure out how it happens

thx for you guys help!!!