Hi, i have a trouble with database drivers. The problem begins after 
installing MapProxy http://mapproxy.org/ using easy_install MapProxy
on the same machine i runs web2py.

When i run web2py says that google is only the database driver available :

C:\web2py>python web2py.py -v -l c:\web2py\logs\w2p.log
No handlers could be found for logger "web2py"
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.4.4-stable+timestamp.2013.03.11.20.32.00
Database drivers available: google
please visit:
        http://127.0.0.1:8000/
starting browser...
DEBUG: connect attempt 0, connection error:
Traceback (most recent call last):
  File "C:\web2py\gluon\dal.py", line 7277, in __init__
    self._adapter = ADAPTERS[self._dbname](**kwargs)
  File "C:\web2py\gluon\dal.py", line 2164, in __init__
    if do_connect: self.find_driver(adapter_args)
  File "C:\web2py\gluon\dal.py", line 726, in find_driver
    raise RuntimeError("no driver available %s" % str(self.drivers))
RuntimeError: no driver available ('sqlite2', 'sqlite3')
(....) the same the 5 connection attemps

But if i run python and try the cx_Oracle or sqlite connection it seems 
it's working fine:

C:\web2py>python
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] 
on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
>>> connection = cx_Oracle.connect("Port_u/123zxc@ORA11")
>>> cursor = connection.cursor()
>>> cursor.execute("SELECT COUNT(*) FROM User_Tables")
<__builtin__.OracleCursor on <cx_Oracle.Connection to Port_u@ORA11>>
>>> count = cursor.fetchall()[0][0]
>>> count
17

Do you have any idea about this problem?
Any help would be apreciated,

Daniel


-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to