[web2py] Re: ImportError: No module named

2017-02-20 Thread Daniel Dos Santos Guilhermino
Perfect!! Fix it! Many thanks for your prompt help! Em segunda-feira, 20 de fevereiro de 2017 14:51:44 UTC-3, Leonel Câmara escreveu: > > I think your application name is confusing the custom_importer because > your application is called xml and you are trying to import xml in > extrairp

[web2py] Re: ImportError: No module named

2017-02-20 Thread Leonel Câmara
I think your application name is confusing the custom_importer because your application is called xml and you are trying to import xml in extrairprodutos, which is possibly a bug. Does it work if you change the name of the application to produtosxml? -- Resources: - http://web2py.com - http://

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Omggg thank i dont have __init__.py on applications folder. i create that file and problem solved Thankss !!! El martes, 8 de septiembre de 2015, 14:24:53 (UTC-4:30), Leonel Câmara escribió: > > Do you have an __init__.py in all these folders? > applications > apprueba > modules > >

[web2py] Re: ImportError: No module named

2015-09-08 Thread Leonel Câmara
Do you have an __init__.py in all these folders? applications apprueba modules How did you install web2py? Why are the applications in your documents folder instead of the web2py folder is that a symlink? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
El martes, 8 de septiembre de 2015, 10:23:34 (UTC-4:30), Leonel Câmara escribió: > > ok so if you just do > > from formita import Form > > It does not work? > No, it does not work, here is the error: No module named applications.apprueba.modules.formita -- Resources: - http://web2py.com -

[web2py] Re: ImportError: No module named

2015-09-08 Thread Leonel Câmara
ok so if you just do from formita import Form It does not work? -- 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 ar

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
The file is *formita.py* and have a class defined *Form*, that class only have one method. El martes, 8 de septiembre de 2015, 10:02:30

[web2py] Re: ImportError: No module named

2015-09-08 Thread Leonel Câmara
What files exactly do you have in the application's modules folder? You keep changing the name you give them in your imports. The import should be from nameofthefileinthemodulesfolder import somethingdefinedinthatfile -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Hello i test import the module from python shell and there work fine. even instance the class and print a function, also i tried adding from gluon.custom_import import track_changes track_changes(True) and changing the import string to: from applications.apprueba.modules.Formita import Form.

Re: [web2py] Re: ImportError: No module named

2015-09-08 Thread Yoel Benitez Fonseca
just to be sure i'm always importing modules with full quote: from applecations.myapp.modules import XXX just to be sure 2015-09-08 9:34 GMT-04:00, Leonel Câmara : > Ohh and it should be: > from form import Form > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation)

[web2py] Re: ImportError: No module named

2015-09-08 Thread Leonel Câmara
Ohh and it should be: from form import Form -- 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 Go

[web2py] Re: ImportError: No module named

2015-09-08 Thread Leonel Câmara
You have to restart web2py after putting the module file there. Then you can put this in your models from gluon.custom_import import track_changes track_changes(True) So web2py reloads the module when you change it (I find that I still have to restart web2py most of the time even with this). -

[web2py] Re: ImportError: No module named

2015-09-08 Thread lenin . martinez
Hello, i defined the module in application/myapp/modules/form.py and yes the file __init__.py exists in the folder by default. El lunes, 7 de septiembre de 2015, 23:12:43 (UTC-4:30), Massimo Di Pierro escribió: > > can you import it from a normal python shell from the folder where you > defined

[web2py] Re: ImportError: No module named

2015-09-07 Thread Massimo Di Pierro
can you import it from a normal python shell from the folder where you defined it? is there a __init__.py in that folder? On Monday, 7 September 2015 22:40:58 UTC-5, lenin.marti...@metamaxzone.com wrote: > > Im triying import one test module form.py . > >Module >class Form(o

[web2py] Re: ImportError: No module named duplicity.tarfile

2015-03-03 Thread Ramkrishan Bhatt
Thanks man all problem got solved. One last question is bugging me in SQLFORM.factory can we create dynamic form for one to many relation. Like person can have multiple address. So how can we achieve with composit form with SQLFORM.factory with multiple tables. Please send me example too. -- R

[web2py] Re: ImportError: No module named duplicity.tarfile

2015-03-01 Thread Leonel Câmara
Could you have installed duplicity in another python version on the same system instead of the one that's running web2py? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

[web2py] Re: ImportError: No module named myapp.modules

2014-10-22 Thread Alex
finally I could solve the problem. The __init__.py file was missing in the application folder ( __init__.py file in modules folder was already there so I thought that would be enough). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (

[web2py] Re: ImportError: No module named myapp.modules

2014-10-02 Thread Leonel Câmara
> > Actually I'm doing exactly this (compile app on another machine) for years > now without any problems (as long as I use the same Python and web2py > version on both machines). So I would be surprised if this is the reason I > cannot import the module. I tried to manually compile the files i

[web2py] Re: ImportError: No module named myapp.modules

2014-10-02 Thread Alex
Actually I'm doing exactly this (compile app on another machine) for years now without any problems (as long as I use the same Python and web2py version on both machines). So I would be surprised if this is the reason I cannot import the module. I tried to manually compile the files in the mo

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Leonel Câmara
You can not compile the app and deploy in another machine as pyc files are not portable. You should remove the compiled directory and compile it again on the server. Then go to admin clear all sessions and cache. Restart apache and try again. As for nginx, I find that Apache and mod_wsgi are co

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Alex
thanks for your help. Unfortunately I could not resolve the issue so far. I deleted all .pyc files and restarted apache, still does not work (there are no .pyc files in the modules folder now). what web2py or apache configuration could have an effect on this? are there any specific settings?

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Leonel Câmara
Another idea, delete all .pyc files in your modules folder. Restart apache and try again. -- 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 th

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Leonel Câmara
That's weird, it's normal to have to restart for web2py to detect new modules in the application, this should have solved the problem. How did you configure web2py and apache? BTW if you're using Linux I seriously recommend a switch to nginx and uwsgi-emperor. -- Resources: - http://web2py.co

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Alex
not until now. Restarting apache didn't make any difference. Am Mittwoch, 1. Oktober 2014 16:53:01 UTC+2 schrieb Leonel Câmara: > > After you deployed your application with the module in the modules folder, > did you restart apache? > -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Leonel Câmara
After you deployed your application with the module in the modules folder, did you restart apache? -- 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 re

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Alex
import jasperclient jasperclient is the module name (there is a file modules/jasperclient.py). Am Mittwoch, 1. Oktober 2014 16:12:09 UTC+2 schrieb Leonel Câmara: > > How are you importing the module? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

[web2py] Re: ImportError: No module named myapp.modules

2014-10-01 Thread Leonel Câmara
How are you importing the module? -- 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 Group

[web2py] Re: ImportError - no module named...

2014-06-08 Thread Mirek Zvolský
I had very similar problem (Windows, too) and the reason was that in applications/myapp was no __init__.py. Web2py special importer converts the import to something like: import applications.mqr.modules.qrcode and this fails without applications\mqr\__init__.py. After adding __init__.py into cu

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Cliff Kachinske
The __init__.py file tells Python that the directory is a package. You can also put code in __init__.py. The code will execute when you import the package. Leave it in there. You need it. On Tuesday, February 11, 2014 6:33:41 PM UTC-5, Chris Hepworth wrote: > > > https://groups.google.com/forum

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Chris Hepworth
https://groups.google.com/forum/#!searchin/web2py/importerror/web2py/FEYjCpBPpWU/9OfvXCeyPMoJ I found this thread as I searched for a solution. I can confirm that in my app, there is an __init__.py in modules. It is blank (as it has been since I created the app), but it is there. Could this have

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Chris Hepworth
Just to test I set up a VM running Ubuntu. I installed all relevant packages and I am still receiving the same error. Any suggestions? On Tuesday, February 11, 2014 2:12:42 PM UTC-7, Chris Hepworth wrote: > > There is an import for pymaging, which must have already been installed on > my Ubuntu

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Chris Hepworth
There is an import for pymaging, which must have already been installed on my Ubuntu machine. Installing it on Windows seems to be more trouble than its worth, so I'll just wait to get my Ubuntu environment set up on another machine. Thanks for the suggestion though! On Tuesday, February 11, 20

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Chris Hepworth
Considering I had another import failure for PIL (which I thought I had but didn't) that wouldn't be surprising. The Windows Python 2.7 install sure doesn't seem to include much. I'll take a look at the module's dependencies and post again if that fixes it. Thank you! On Tuesday, February 11, 2

[web2py] Re: ImportError - no module named...

2014-02-11 Thread Niphlod
are all the dependencies of that module satisfied on the windows environment ? for imported modules, if some of the libraries it depends on are missing, the error that web2py can show is that it's unable to import the module (meaning, it can't load it because there is some error in it vs - what

Re: [web2py] Re: ImportError: No module named gaehandler

2013-09-17 Thread Vinicius Assef
Niphlod, this solved the issue with "no wsgihandler" import error in another thread. Thank you. :-) On Tue, Sep 17, 2013 at 9:23 AM, Niphlod wrote: > handlers got moved in the 2.6.1 release... it's clearly stated in the > changelog everyone in the need of a specific handler is required to >

[web2py] Re: ImportError: No module named gaehandler

2013-09-17 Thread Niphlod
handlers got moved in the 2.6.1 release... it's clearly stated in the changelog everyone in the need of a specific handler is required to copy it/them in the root folder. On Tuesday, September 17, 2013 1:21:14 PM UTC+2, Python Webdev wrote: > > Hi, > > today I downloaded the current web2py

[web2py] Re: ImportError: No module named gluon.contrib.comet_messaging

2013-03-08 Thread surfnet3
Never mind, I found the solution. Stupid me, restarting the computer solves the problem :) On Friday, March 8, 2013 9:13:08 PM UTC-5, surfnet3 wrote: > > I'm still using an older version (2.0.9) > > On Friday, March 8, 2013 9:00:17 PM UTC-5, Anthony wrote: >> >> Should be websocket_messaging.py

[web2py] Re: ImportError: No module named gluon.contrib.comet_messaging

2013-03-08 Thread surfnet3
I'm still using an older version (2.0.9) On Friday, March 8, 2013 9:00:17 PM UTC-5, Anthony wrote: > > Should be websocket_messaging.py now. > > Anthony > > On Friday, March 8, 2013 6:56:30 PM UTC-5, surfnet3 wrote: >> >> Hi, >> >> I tried the websocket (comet_messaging.py) and followed the proced

[web2py] Re: ImportError: No module named gluon.contrib.comet_messaging

2013-03-08 Thread Anthony
Should be websocket_messaging.py now. Anthony On Friday, March 8, 2013 6:56:30 PM UTC-5, surfnet3 wrote: > > Hi, > > I tried the websocket (comet_messaging.py) and followed the procedures > inside, but got the following error in ajax_form(): > > ImportError: No module named gluon.contrib.comet_m

[web2py] Re: ImportError: No module named gluon.contrib.comet_messaging

2013-03-08 Thread surfnet3
I've been able to send a message from a terminal to the browser, but when the browser tries to send a message, the error occurs. On Friday, March 8, 2013 6:56:30 PM UTC-5, surfnet3 wrote: > > Hi, > > I tried the websocket (comet_messaging.py) and followed the procedures > inside, but got the fol

Re: [web2py] Re: ImportError: No module named ...

2010-01-21 Thread Jason Brower
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. > >

[web2py] Re: ImportError: No module named ...[SOLVED]

2010-01-20 Thread mdipierro
:-) On Jan 21, 1:08 am, kari 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 wrote: > > > I think I understand the problem now. >

[web2py] Re: ImportError: No module named ...

2010-01-20 Thread kari
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 wrote: > I think I understand the problem now. > > If you try to "import numpy" you need to: > 1) ma

[web2py] Re: ImportError: No module named ...

2010-01-20 Thread mdipierro
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] Re: ImportError: No module named ...

2010-01-20 Thread kari
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

[web2py] Re: ImportError: No module named ...

2010-01-20 Thread mdipierro
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 he