Python Forum
jaydebeapi architecture error?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jaydebeapi architecture error?
#1
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.close
I then get the following error:


Quote:File "/usr/local/lib/python3.6/site-packages/jpype/_core.py", line 50, in startJVM
  _jpype.startup(jvm, tuple(args), True)

builtins.RuntimeError: Unable to load DLL [/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib], error = dlopen(/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib, 9): no suitable image found. Did find:
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib: mach-o, but wrong architecture at native/common/include/jp_platform_linux.h:45

Any ideas where I am going astray?

Thanks.
Reply


Messages In This Thread
jaydebeapi architecture error? - by CraigBoyd - Feb-10-2017, 04:41 AM
RE: jaydebeapi architecture error? - by Larz60+ - Feb-10-2017, 07:35 AM
RE: jaydebeapi architecture error? - by CraigBoyd - Feb-10-2017, 03:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unexpected termination of program when using JDBC drivers in python with jaydebeapi skarface19 2 342 Feb-17-2024, 12:01 PM
Last Post: skarface19
  Architecture question for website with python crontab script rockie12us 1 1,741 Aug-09-2021, 10:07 AM
Last Post: Larz60+
  A question regarding to the microservice architecture itaybardugo 0 1,450 Oct-15-2020, 06:37 AM
Last Post: itaybardugo
  Architecture for script executor marsokod 0 2,173 Mar-03-2018, 09:42 PM
Last Post: marsokod
  Python Architecture in Bock diagram hshivaraj 3 3,478 Jan-08-2018, 05:52 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020