Now issued another error <type 'exceptions.RuntimeError'> Failure to connect, tried 5 times: Traceback (most recent call last): File "D:\programms\web2py\gluon\dal.py", line 8041, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File "D:\programms\web2py\gluon\dal.py", line 700, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File "D:\programms\web2py\gluon\dal.py", line 3852, in __init__ if do_connect: self.reconnect() File "D:\programms\web2py\gluon\dal.py", line 659, in reconnect self.connection = f() File "D:\programms\web2py\gluon\dal.py", line 3849, in connector return self.driver.connect(dsn, **driver_args) File "D:\programms\web2py\gluon\Sybase.py", line 1401, in connect datetime, bulkcopy, locale, inputmap, outputmap) File "D:\programms\web2py\gluon\Sybase.py", line 1035, in __init__ self.connect() File "D:\programms\web2py\gluon\Sybase.py", line 1084, in connect status = conn.ct_connect(self.dsn) File "D:\programms\web2py\gluon\Sybase.py", line 265, in _clientmsg_cb raise DatabaseError(msg) DatabaseError: Layer: 6, Origin: 8 ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.
If you establish a connection from the console python, the connection is established successfully >>> import Sybase >>> Sybase.connect('dibrera','user','password','dbname') Connection(16260352) >>> вторник, 16 декабря 2014 г., 19:20:41 UTC+4 пользователь Leonel Câmara написал: > > In the DAL's SybaseAdapter if you change this line: > > driver_args.update(user = credential_decoder(user), > password = credential_decoder(password)) > > to: > > driver_args.update(user = credential_decoder(user), > passwd = credential_decoder(password)) > > Does it work? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.