Re: [web2py] Re: web2py + apache2 can't load Theano (Ubuntu Server 14.04)

2017-03-20 Thread Jordan Myers
Thank you for the reply. Apparently the issue was only when I tried to
import theano in a controller. This worked with the rocket server, but not
with Apache for some reason. Moving the code to a module and only invoking
it with my web2py_scheduler service solved the issue (an immediate response
is not required for this application).

On Mon, Mar 20, 2017 at 9:43 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> How is theano installed? Could it be apache2 is using a different
> pythonversion? In any case, I recommend you use Nginx over Apache.
>
>
> On Monday, 6 March 2017 14:17:10 UTC-6, Jordan Myers wrote:
>>
>> Hello
>>
>> I've migrated my code to start using Apache2 after successful setup just
>> using built-in Rocket server, but now for some reason loading Theano leads
>> to import error. I thought maybe the issue was with Cython or something,
>> but it will successfully import NumPy, Scipy, Gensim, and other libraries
>> that are compiled to c. Again, Theano worked fine in old Rocket setup.
>>
>> Does anyone have an idea of what the issue is? If it helps, I once got a
>> different error that Theano complained about not having access to write
>> compile logs, but I then corrected that issue by modifying permissions in
>> the applicable folder and the error just goes back to being a normal
>> "cannot import module applications.[myapp].modules.theano" Theano is
>> installed in /usr/*local*/lib/python2.7/dist-packages/ (verified by
>> running help('theano') in python prompt) instead of
>> /usr/lib/python2.7/dist-packages/ in case that's relevant.
>>
>> Thanks for any suggestions,
>> -Jordan
>>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/A-Jzv3WM0t8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


[web2py] Re: web2py + apache2 can't load Theano (Ubuntu Server 14.04)

2017-03-20 Thread Massimo Di Pierro
How is theano installed? Could it be apache2 is using a different 
pythonversion? In any case, I recommend you use Nginx over Apache.


On Monday, 6 March 2017 14:17:10 UTC-6, Jordan Myers wrote:
>
> Hello
>
> I've migrated my code to start using Apache2 after successful setup just 
> using built-in Rocket server, but now for some reason loading Theano leads 
> to import error. I thought maybe the issue was with Cython or something, 
> but it will successfully import NumPy, Scipy, Gensim, and other libraries 
> that are compiled to c. Again, Theano worked fine in old Rocket setup. 
>
> Does anyone have an idea of what the issue is? If it helps, I once got a 
> different error that Theano complained about not having access to write 
> compile logs, but I then corrected that issue by modifying permissions in 
> the applicable folder and the error just goes back to being a normal 
> "cannot import module applications.[myapp].modules.theano" Theano is 
> installed in /usr/*local*/lib/python2.7/dist-packages/ (verified by 
> running help('theano') in python prompt) instead of 
> /usr/lib/python2.7/dist-packages/ in case that's relevant.
>
> Thanks for any suggestions,
> -Jordan
>

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