Sorry for resurrecting an old thread, but it addresses what I am trying to do and I can’t get it to work at present. I think I have followed the instructions, but it is still not working.
I have run the EditPythonScript
command in Rhino and have identified one of the folders (by going into Tools > Options:
C:\Users\myname\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib
This means that in this folder I now have the DLL and the sqlite3
folder, inside which is the __init__.py
file which I have edited…
import clr
clr.AddReferenceToFile(“IronPython.SQLite.dll”)
from dbapi2 import *
I then create a component and put in
import sqlite3
However, this does not work… I get an interesting error:
Runtime error (SyntaxErrorException): unexpected token ''
Traceback:
line 1, in script
I wonder if I should be adding the sqlite3 folder to a python path?