you need to use the python-sybase package . as any other (famous) package, 
it's available on pypi https://pypi.python.org/pypi/python-sybase

On Tuesday, June 2, 2015 at 12:12:38 AM UTC+2, EF wrote:
>
> Hi,
> I'm new to web2py and trying to test the connectivity to Sybase.
> I tried testing this on Linux:
> >>> db = DAL('sybase://myuserid:mypswd@mysybaseserver/mydbname')
>  
> (please note that I used dummay names in the above statement, but the 
> correct ones when testing.)
>  
> I got the following error:
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/base.py", line 
> 171, in __call__
>     obj = super(MetaDAL, cls).__call__(*args, **kwargs)
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/base.py", line 
> 457, in __init__
>     raise RuntimeError("Failure to connect, tried %d times:\n%s" % 
> (attempts, tb))
> RuntimeError: Failure to connect, tried 5 times:
> Traceback (most recent call last):
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/base.py", line 
> 435, in __init__
>     self._adapter = ADAPTERS[self._dbname](**kwargs)
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 53, in __call__
>     obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/adapters/mssql.py",
>  
> line 465, in __init__
>     self.find_driver(adapter_args, uri)
>   File 
> "/home/svc_imagine_dev/web/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 187, in find_driver
>     raise RuntimeError("no driver available %s" % str(self.drivers))
> RuntimeError: no driver available Sybase
> Questions:
> 1. Where can I find the Sybase driver? (we are using Adaptive Server 
> Enterprise/15.7)
> 2. Where should it be installed?
> 3. Once I have the correct driver, is there anything else I need to do to 
> test the connection?
>  
> Thanks,
> EF
>  
>

-- 
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.

Reply via email to