Importing Python 2.7 library modules to Rhino

I am trying to use the csv module in Python2.7. I tried adding the filepath in EditPython Options> But it still doesn’t work

I get this error
"Message: No module named _csv

Traceback:
line 8, in , “C:\Python27\Lib\csv.py”
line 9, in , “C:\Users\User\Dropbox\Code\Spectacle.py”"

I am doing anything wrong? Would appreciate any help

Hi,

If you inspect csv.py you will see it imports from _csv.py
So you need to locate _csv.py and make that discoverable as well.

-Willem

The csv module is not supported in the version of IronPython that we ship with Rhino 5. The next version of Rhino will support this module.

I see. Thank you Steve and Willem for taking the time to answer my question

1 Like

Hi,
Is the csv module now supported?
Best,
James

I believe it will be in Rhino 6

IronPython 2.7.5 is in Rhino WIP now and I just did a small test to confirm that the csv module is available.