On Wednesday, 13 April 2016 13:29:18 UTC+1, peter wrote:
>
> I have an issue with processes run by the scheduler are not seeing a 
> module.
>
> If I Do
> python2.6
> >>>import dropbox
>
> it imports fine.
>
> The conf file for the web2py scheduler contains
>
> DAEMON=python2.6
> PARAMETERS="/opt/web-apps/web2py/web2py.py -K new_spin2"
> LOGFILE=/var/log/web2py-scheduler.log
>
> start() {
>     echo -n "starting up $DAEMON"
>     RUN=`$DAEMON $PARAMETERS > $LOGFILE 2>&1`
>     if [ "$?" -eq 0 ]; then
>         echo " Done."
>     else
>         echo " FAILED."
>     fi
> }
>
>
> So it is also using python2.6
>
> However I get  
> ImportError: No module named dropbox
>
> when a task is run by the scheduler. If I run the same web2py function 
> directly from a url, then it works fine.
>
> So how come the function when run by the scheduler does not see the 
> dropbox module
>
> Thanks
> Peter
>
>  
>

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