Ok more info.

added this to a def and its a copy of code from 'line 1101' of web2py 
<https://github.com/web2py/web2py/tree/0fa0dbaeea3ba13ba744f3a20f84e97188d53c2b>
/gluon 
<https://github.com/web2py/web2py/tree/0fa0dbaeea3ba13ba744f3a20f84e97188d53c2b/gluon>
/*widget.py* :

def about():
    from pydal.drivers import DRIVERS
    print 'Database drivers available: %s' % ', '.join(DRIVERS)
    return locals()

the about page returns:

{'sqlite3': <module 'sqlite3.dbapi2' from 
'/usr/lib64/python2.7/sqlite3/dbapi2.pyc'>, 'imaplib': <module 'imaplib' 
from '/usr/lib64/python2.7/imaplib.pyc'>, 'pymysql': <module 
'gluon.contrib.pymysql' from 
'/opt/www-data/web2py/gluon/contrib/pymysql/__init__.pyc'>, 'pg8000': 
<module 'gluon.contrib.pg8000' from 
'/opt/www-data/web2py/gluon/contrib/pg8000/__init__.pyc'>}

just trying to expose something to help jog anything.  And not giving up! 
 :)

On Monday, October 26, 2015 at 5:51:26 PM UTC-7, Michael Messmer wrote:
>
> So i noticed something.  I was in root when when I was seeing cx_Oracle:
>
> # python web2py.py 
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2015
> Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
> Database drivers available: sqlite3, imaplib, cx_Oracle, pymysql, pg8000
>
>
> When I was in Standard user:
> $ python web2py.py
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2015
> Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
> Database drivers available: sqlite3, imaplib, pymysql, pg8000
>
> ----
>
> So I moved the cx_Oracle.so file into /usr/lib64/python2.7/site-packages/ 
> and then chmod so that everyone could see and execute. 
> and now when Im in a standard user:
>
> $ python web2py.py 
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2015
> Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
> Database drivers available: sqlite3, imaplib, cx_Oracle, pymysql, pg8000
>
> did a 'systemctl restart httpd"
>
> Still nothing.  I was so hopeful.  Any thoughts of what I may be doing 
> wrong?
>
> Does Apache or mod-wsgi need some special privileges that I have not given 
> to 'cx_Oracle.so'?  As those is running the framework and not my user 
> account nor root.  Thoughts?
>

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