Python Forum
Python Import Sybase Module returning non explicit error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Import Sybase Module returning non explicit error
#1
Hi All.

I need to install ( import ) sybase module in python 3.7 but it has been a fiasco.

The major objective is to be able to query a Sybase Adaptive Server Enterprise with sqlalchemy but it is proven hard to eve make the simple import of the module.

I installed SAP SDK, and i can see, as sybase manuals that they have the module sybpydb.pyd included for python 3.1. Wish it is compatible.

Altough, I tried to add the pyd directory to Windows Path and the result is always the same.

When i do nothing, when importing the module the result is clear:
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32


>>> import sybpydb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'sybpydb'


altough, when i add the sybpydb.pyd file into my ...\Lib\site-packages, the result is:

>>> import sybpydb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.


Really getting desperate here.. this is blocking for my project... and I've been working in this for the last 2 weeks...

Already tried with Python-sybase module (http://python-sybase.sourceforge.net/) but it needs to be compiled and I had to ajust the setup.py a lot in order to run.

At this point, I'm almost quitting this module and try the pyodbc module ( https://pypi.python.org/pypi/pypyodbc) but would really prefer the sybase module...

Is anyone ever had the same issue?

Thanks in advance.
Reply


Messages In This Thread
Python Import Sybase Module returning non explicit error - by thebeefes - Nov-20-2018, 01:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask_table module compatibility issue: cannot import name 'Markup' from 'flask' venkateshbalagiri 1 320 Mar-22-2024, 05:07 AM
Last Post: venkateshbalagiri
  Need Help with Selenium Explicit Wait gw1500se 6 2,893 Nov-28-2021, 09:44 PM
Last Post: Larz60+
  Getting import error when trying to import Selenium Several 1 2,292 Oct-06-2020, 10:22 PM
Last Post: Larz60+
  Using a imported module in python via pache results in permission denied error zooitje 1 3,441 Aug-30-2018, 06:56 PM
Last Post: zooitje
  Import error even though module is installed datafix 8 19,777 Jun-29-2017, 03:51 PM
Last Post: datafix

Forum Jump:

User Panel Messages

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