:-)

On Jan 21, 1:08 am, kari <kar...@utu.fi> wrote:
> Thanks - I did not realise the binary vs source thing. When changing
> from Windows binary to the source everything works as expected. Great!
>
> Many thanks for you help.
>
> On Jan 21, 8:47 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > I think I understand the problem now.
>
> > If you try to "import numpy" you need to:
> > 1) make sure numpy is installed
> > 2) make sure you run web2py from source (not the binary) since the
> > binary comes with its own Python and it does not see modules installed
> > with the "other" Python.
> > 3) make sure you start web2py.py with the same Python version you used
> > to install numpy.
>
> > Hope this helps.
>
> > On Jan 20, 11:45 pm, kari <kar...@utu.fi> wrote:
>
> > > Thanks for the reply - I think a typo in my original message might
> > > have
> > > given a wrong impression of the problem I am facing.
>
> > > Instead of '... replaced by a model I have used in the import
> > > statement'
> > > it should have said '... replaced by a MODULE I have used...', for
> > > example:
>
> > > import numpy
>
> > > But then when trying too run the application in web2py I get an error:
> > > ImportError: No module named numpy
>
> > > I should also add that the same applications work fine on web2py in my
> > > Ubuntu 9.10 box.
>
> > > I tried to add
> > > numpy = local_import('numpy') to the beginning of the default.py to no
> > > avail (if I understood your advice correctly).
>
> > > kari
>
> > > On Jan 20, 5:18 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > You do not import models like you do in Django. models are
> > > > automatically executed in alphabetic order before the controller.
>
> > > > You only import third party modules (as long as they are properly
> > > > installed) or modules in the /app/modules/ folder using
>
> > > >    mymodule=local_import('mymodule')
>
> > > > Hope this helps.
>
> > > > Massimo
>
> > > > On Jan 20, 5:34 am, kari <kar...@utu.fi> wrote:
>
> > > > > Hi,
> > > > > I am facing a problem on Windows installation of web2py. When trying
> > > > > to run applications I get the following error:
>
> > > > > ImportError: No module named ...
>
> > > > > ... replaced by a model I have used in the import statement in
> > > > > default.py
>
> > > > > All the modules I have used are installed and thety can be imported
> > > > > when called from the python console or with any ordinary python
> > > > > application by 'python foo.py' type of a call.
>
> > > > > It seems web2py does not understand the paths the same way as my
> > > > > python installation. Any ideas how this could be fixed?
>
> > > > > Many thanks.
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to