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
#3
Hello, I had the same problem bu erading the ASE requirements for Python I found:

Version Requirements
Adaptive Server Enterprise Extension Module for Python has these version requirements.
• Adaptive Server Enterprise – version 15.7 or later
• Python installation – version 2.6, 2.7, or 3.1 built-in threaded mod
• Open Client SDK – version 15.7 or later


So as I had Python 3.6.1 installed I had the same problem, then I installed Pythyon 2.7.16 and it worked, I also tested with Python 3.1.4 and it worked.

C:\python
Python 3.1.4 (default, Jun 12 2011, 14:16:16) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sybpydb
>>>

Before importing the sybpydb library you must set the PYTHONPATH variable.

set PYTHONPATH=C:\Sybase\OCS-15_0\python\python31_64\dll :: The path is wjere you installed Sybase ASE


C:\python
Python 3.1.4 (default, Jun 12 2011, 14:16:16) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sybpydb
>>>

Before importing the sybpydb library you must set the PYTHONPATH variable.

set PYTHONPATH=C:\Sybase\OCS-15_0\python\python31_64\dll :: The path is wjere you installed Sybase ASE
Reply


Messages In This Thread
RE: Python Import Sybase Module returning non explicit error - by Carlos - Mar-14-2019, 07:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask_table module compatibility issue: cannot import name 'Markup' from 'flask' venkateshbalagiri 1 306 Mar-22-2024, 05:07 AM
Last Post: venkateshbalagiri
  Need Help with Selenium Explicit Wait gw1500se 6 2,892 Nov-28-2021, 09:44 PM
Last Post: Larz60+
  Getting import error when trying to import Selenium Several 1 2,287 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,440 Aug-30-2018, 06:56 PM
Last Post: zooitje
  Import error even though module is installed datafix 8 19,773 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