Problems connecting to SAPDB 7.4 with python (sapdb.sql)

Hermann Himmelbauer <[email protected]> Fri, 12 Sep 2003 18:25:33 +0200
Newsgroups gmane.comp.db.sapdb.general
Message-ID <[email protected]>
Hi,
I have a (simple) problem - I cannot connect to SAPDB 7.4 with the python API 
(sapdb.sql). It tells me that my user name/password combination is false but 
they are, as I can connect to SAPDB via WebSQL with this combination. Here is 
what I do:

---------- snip ----------------
dusty@violin:~> python
Python 2.2 (#1, Mar 26 2002, 15:46:04)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sapdb.sql
/opt/sapdb/interfaces/python/misc/sapdb/sql.py:28: RuntimeWarning: Python C 
API version mismatch for module sql: This Python has API version 1011, module 
sql has version 1007.
  from pythondef.sql import *

------------ snip ---------------

This Runtime Warning is nothing to be worried of, isn't it?

----------- snip -------------------
>>> session = sapdb.sql.connect('max','meier','kandb')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
sql.SQLError: sql.SQLError: [-4008] (at 1) Unknown user name/password 
combination
>>>
-------------- snip ------------------

The same happens when I try the example python code "egSQL.py".

Does anyone have any clue? Do I perhaps grant some rights to connect via 
python?

		Best Regards,
		Hermann

-- 
[email protected]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7