Python module: ImportError ( No module named psycopg2 ) --- not compatible with Jython or not on sys.path
I have updated PIP and installed psycopg2 module but when I run the code from sikukli with python it gives me this error message. I'm running Sikuli on windows 10.
Same code works fine as an independent python file.
import csv
import psycopg2
try:
conn = psycopg2.
print "connection successful"
except:
print "I am unable to connect to the database"
cur = conn.cursor()
cur.execute("SET search_path TO users")
cur.execute(""" SELECT * from "UserDetail" """)
rows = cur.fetchall()
print "\nShow me the data:\n"
for row in rows:
print " ", row[0]
print " ", row[1]
print " ", row[2]
print " ", row[3]
While running from Sikuli I get this error
[error] ImportError ( No module named psycopg2 )"
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Hina for more information if necessary.