No Module Named pyodbc

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!

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

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

Thanks @jeremy5 !

I was able to connect with the pypyodbc module.

Now, I just need to figure out the rest… :slight_smile:

1 Like