![]() |
jaydebeapi architecture error? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: jaydebeapi architecture error? (/thread-2004.html) |
jaydebeapi architecture error? - CraigBoyd - Feb-10-2017 Hello All, I am struggling with connecting to a database using a jdbc driver. In the interest of full disclosure I am a bit of n00b with python. I am on a Mac (El Capitan) and I have used Homebrew to install Python 3.6. Here is my code: import jaydebeapi conn = jaydebeapi.connect('org.netezza.Driver',['jdbc:netezza://servername:5480/catalogName','user','password']) curs = conn.cursor() curs.execute("select system_software_version from _v_system_info") data = curs.fetchone() print("Netezza Version = %s" % data) conn.closeI then get the following error: Quote:File "/usr/local/lib/python3.6/site-packages/jpype/_core.py", line 50, in startJVM Any ideas where I am going astray? Thanks. RE: jaydebeapi architecture error? - Larz60+ - Feb-10-2017 There seem to be instructions on how to make that visible for windows install (aslo Linux and OS-X) here http://jpy.readthedocs.io/en/latest/install.html Search 'Typical Build Problems' on the page (ctrl-f) RE: jaydebeapi architecture error? - CraigBoyd - Feb-10-2017 Thanks Larz60+, that did point me in the right direction. I ended up pointing all my java variables to a 1.7 jdk that was on my machine and it all started working! |