CSousa
1
Hello,
I need to connect Grasshopper to a MS SQL Server database and got a scrip like this
I have installed pyodbc… but always get the “No module named pyodbc” error
What am I doing wrong?
I am very new to programming so I guess I’m doing some dumb mistake…
Thanks!
dale
(Dale Fugier)
2
Hi @CSousa,
My guess is that this is designed for CPython, not the IronPython used by Rhino.
You might do some searching for alternatives, like this:
– Dale
jeremy5
(Jeremy)
3
Or try the pypyodbc module instead of pyodbc. It’s a pure python alternative and specifically includes Iron Python 2.7 in its compatibility list.
HTH
Jeremy
1 Like
CSousa
4
Thanks @jeremy5 !
I was able to connect with the pypyodbc module.
Now, I just need to figure out the rest…
1 Like