Are you running web2py from source? It would not work if you use web2py 
binaries because they haev their own python interpreter.

If you are not running from source, make sure you restart the web server.

I know your code and you have a controller called whoosh.py That should not 
create a problem unless perhaps if you try import whoosh from that 
controller.

Massimo


On Sunday, 8 February 2015 01:28:11 UTC-6, Rakesh Singha wrote:
>
>
> Hello Web2py Users,
>
> I am kind of new to web2py and starting to learn it. I am using web2py in 
> Windows and my python version is 2.7.
>
> I am working on an application which needs to import the whoosh module. 
> And the problem I am facing is that web2py when I include the line
>
> *import  whoosh *
>
> in default.py controller, it shows the error
>
> ImportError: No module named whoosh
>
> So I checked to see if the whoosh module is being detected by python, and 
> so imported it in cmd in python interpreter, here it shows no error and it 
> runs fine.
>
> So why is the whoosh module not being detected by web2py while python is 
> importing it fine?
>
> Please help me out if you got any idea.Thank you.
>

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

Reply via email to