Hi

I have a problem Connecting Python with sapdbapi on Linux :

-----------------------------------------------------------------
import sapdbapi

dbConnect = sapdbapi.connect ('dba', 'xxxxxxx', 'TST', 'goku', '')
cursor = dbConnect.cursor ()

cursor.execute ("select * from latabla")

row = cursor.fetchone ()
while (1):
   row = cursor.fetchone()
   if row == None:
     break
   print row
   print '<br>'

------------------------------------------------

Show This Error :


Exception exceptions.AttributeError: '_Connection__connection' in <method
Connection.close of Connection instance at 80f1158> ignored
Traceback (innermost last):
  File "./sappy.py", line 6, in ?
    dbConnect = sapdbapi.connect ('dba', 'xxxxxxxx', 'TST', 'goku', '')
TypeError: too many arguments; expected 5, got 6


Tanks

+------------------------------------------------------------------------+
| UNIX is user friendy, but it knows to         ,        ,               |
| choose very well to his friends.             /(        )`  Peace, Love |
|                                              \ \___   / |      and     |
| Fernando A. Velasquez                        /- _  `-/  '   Opensource |
| Administrador de Red                        (/\/ \ \   /\              |
| [EMAIL PROTECTED]                        / /   | `    \             |
| Tel ++57 2 665 2107                         O O   ) /    |             |
| Fax ++57 2 665 2107                         `-^--'`< '                 |
| Cali, Valle                                (_.)  _  )   /              |
| Colombia, Sudamerica                        `.___/`    /               |
| For PGP/GPG Public Key E-Mail Me              `-----' /                |
|                                  <----.     __ / __   \                |
|                                  <----|====O)))==) \) /====            |
| +----------------------+         <----'    `--' `.__,' \               |
| | Jesus Save,          |                       |        |              |
| | but only Buda made   |                       \       /               |
| | incremental Backups. |                 ______( (_  / \______         |
| +----------------------+                ,'  ,-----'   |        \       |
|                                         `--{__________)        \/      |
| If this message dont have a                                            |
| PGP/GPG signature, dont trust!           Powered by FreeBSD            |
+------------------------------------------------------------------------+


_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to