Yes, the path/user/versions were all the same. I figured out that even 
though the $DYLD_LIBRARY_PATH and $LD_LIBRARY_PATH environment variables 
are set correctly in an interactive bash terminal, a bash script cannot see 
those same variables. Something must be overwriting them, so now I'm just 
setting those variables in the same script that I'm using to start web2py. 
Thanks! -- Benjamin Wolski

El lunes, 22 de febrero de 2016, 1:04:03 (UTC-8), Niphlod escribió:
>
> are they running from the same path and under the same user ?
>
> On Monday, February 22, 2016 at 7:00:07 AM UTC+1, Ben Wolski wrote:
>>
>> Hi all! I'm connecting to an Oracle db for the first time and I hit a 
>> snag when trying to start web2py from a bash script. 
>>
>>
>> As you can see highlighted below, running the command as a script fails 
>> to find the oracle driver, but running from the command line does.
>>
>>
>> Any ideas why this would be?
>>
>>
>> Thanks!
>>
>> Benjamin
>>
>>
>> $ cat run_server.sh 
>> #!/bin/bash
>> python web2py.py -a 'password' -i 10.2.24.61 -p 8000
>>
>>
>>
>>
>> $ bash run_server.sh 
>> web2py Web Framework
>>
>>  
>> Created by Massimo Di Pierro, Copyright 2007-2016 
>>
>> Version 2.13.4-stable+timestamp.2015.12.26.04.59.39 
>>
>> Database drivers available: sqlite3, imaplib, pyodbc, pymysql, pg8000 
>>
>>
>>  
>>
>> please visit: 
>>
>>  http://10.2.24.61:8000/ 
>>
>> use "kill -SIGTERM 6115" to shutdown the web2py server
>>
>>
>>
>>
>> $ python web2py.py -a 'password' -i 10.2.24.61 -p 8000
>>
>> web2py Web Framework
>>
>> Created by Massimo Di Pierro, Copyright 2007-2016
>>
>> Version 2.13.4-stable+timestamp.2015.12.26.04.59.39
>>
>> Database drivers available: cx_Oracle, pymysql, imaplib, sqlite3, pg8000, 
>> pyodbc
>>
>>
>> please visit:
>>
>> http://10.2.24.61:8000/
>>
>> use "kill -SIGTERM 6122" to shutdown the web2py server
>>
>>
>>

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