Hei, Totally off topic. But wanted to say thanking for using web2py in finland! Best Regards, Jason Brower (Oulu)
On Wed, 2010-01-20 at 21:45 -0800, kari 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.