Grasshopper

algorithmic modeling for Rhino

Hi!

I'm using an old version of Slingshot for quite while. In my definition, I access a remote PostgreSQL database via ODBC Driver. Consequently, I use the ODBC query component. 

Since this version (of Slingshot) is no longer available, I'm trying to update my definitions to the newest version. There is no ODBC query component anymore, but a RDBMS query one. When I try to use it, I receive this message:

System.NullReferenceException: Object reference not set to an instance of an object.
at Slingshot.GHRDBFILE_Query.SolveInstance(IGH_DataAccess DA) 

I believe that something is wrong with the connection string but, since I don't have much expertise with Database Managers, maybe there's something else I'm not realizing. In the older version, I use this string to connect:

When I try the new version, I got this:

 

If anyone have any thoughts to offer, I'll be very pleased.

Views: 222

Replies to This Discussion

Hi. I am in the same situation. I did it the following way...

Using GH_CPython Library + psycopg2 (Python Library)

https://www.food4rhino.com/app/ghcpython

http://www.stickpeople.com/projects/python/win-psycopg/

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2020   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service