[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 
> 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.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: 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.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: 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
>
>
> 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://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: 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://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: 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
- 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: 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 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: 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 (UTC-4:30), Leonel Câmara 
escribió:
>
> 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)
- 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: 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)
- 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: 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.

and still the same error: 

 No module named 
applications.apprueba.modules.Formita


Thanks all for your help

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


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


-- 
Msc. Yoel Benítez Fonseca
Especialista en TI
http://redevil.cubava.cu/
Tel.: (53 32)284701

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

-- 
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: 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 it? is there a __init__.py in that folder?
>
> On Monday, 7 September 2015 22:40:58 UTC-5, lenin.m...@metamaxzone.com 
>  wrote:
>>
>>  Im triying import one test module form.py .
>>
>>Module
>>class Form(object):
>>def hi():
>>return 'abc'
>>   
>>my controller 
>> from form import form
>>
>> but the app generate me one ticket with this error:
>>
>> ImportError: No module named applications.apprueba.modules.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 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: 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(object):
>def hi():
>return 'abc'
>   
>my controller 
> from form import form
>
> but the app generate me one ticket with this error:
>
> ImportError: No module named applications.apprueba.modules.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 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: 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.

-- 
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: 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 (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: 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 (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: 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 in the 
> modules folder on the server but this didn't change anything.


Well pyc files are python version specific, if you use exactly the same 
version it may work, I still wouldn't recommend it as there's no good 
reason to do it.

Are the module files compiled on demand (on import) directly in the modules 
> folder?

 
Yes.


-- 
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: 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 
modules folder on the server but this didn't change anything.

How are the modules working for compiled apps? Because everything else 
(controllers, models, views) will be compiled and stored as .pyc file in 
the compiled dir. Are the module files compiled on demand (on import) 
directly in the modules folder?

-- 
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: 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 constantly creating 
strange and hard to find errors due to some arcane configuration option, 
also nginx is quite faster.


-- 
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: 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 runs in virtualenv, could this be related with the problem 
somehow? I've compiled the app on my machine and deploy the compiled app on 
the linux server. All the compiled files are in the dir 'compiled'.


maybe offtopic - but why should I switch to nginx? performance is great and 
our server load is hardly measurable.

-- 
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: 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 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: 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.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: 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 (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: 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 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: 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.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: 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 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: 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 current application root all works well.

Mirek




Dne úterý, 11. února 2014 21:09:32 UTC+1 Chris Hepworth napsal(a):
>
>
> I recently had to set up a new environment (my desktop running Ubuntu is 
> dead) on my Windows laptop. I have a module called *qrcode *that worked 
> fine in my old environment and hasn't had an issue on pythonanywhere. After 
> I cloned the application, however, I received this error. Is there 
> something special about Windows? I am working on replacing my desktop, but 
> in the meantime I would love to get this working. Any help would be much 
> appreciated!
>
>  No module named mqr.modules
> Version  
>   
> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
>
> Traceback (most recent call last):
>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in 
> restricted
>   File "C:/web2py/applications/mqr/controllers/cms.py" 
> , line 105, 
> in 
> import qrcode
>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 76, 
> in custom_importer
> ImportError: No module named 
>
>

-- 
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: 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/#!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 something to do with 
> the issue?
>
> On Tuesday, February 11, 2014 4:21:54 PM UTC-7, Chris Hepworth wrote:
>>
>> 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 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, 2014 1:15:35 PM UTC-7, Niphlod wrote:

 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 you're probably guessing - its a non-existant module )

 On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:
>
>
> I recently had to set up a new environment (my desktop running Ubuntu 
> is dead) on my Windows laptop. I have a module called *qrcode *that 
> worked fine in my old environment and hasn't had an issue on 
> pythonanywhere. After I cloned the application, however, I received this 
> error. Is there something special about Windows? I am working on 
> replacing 
> my desktop, but in the meantime I would love to get this working. Any 
> help 
> would be much appreciated!
>
>  No module named mqr.modules
> Version  
>   
> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
>
> Traceback (most recent call last):
>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 
> 217, in restricted
>   File "C:/web2py/applications/mqr/controllers/cms.py" 
> , line 
> 105, in 
> import qrcode
>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 
> 76, in custom_importer
> ImportError: No module named 
>
>

-- 
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/groups/opt_out.


[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 something to do with 
the issue?

On Tuesday, February 11, 2014 4:21:54 PM UTC-7, Chris Hepworth wrote:
>
> 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 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, 2014 1:15:35 PM UTC-7, Niphlod wrote:
>>>
>>> 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 you're probably guessing - its a non-existant module )
>>>
>>> On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:


 I recently had to set up a new environment (my desktop running Ubuntu 
 is dead) on my Windows laptop. I have a module called *qrcode *that 
 worked fine in my old environment and hasn't had an issue on 
 pythonanywhere. After I cloned the application, however, I received this 
 error. Is there something special about Windows? I am working on replacing 
 my desktop, but in the meantime I would love to get this working. Any help 
 would be much appreciated!

  No module named mqr.modules
 Version  
   
 web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)

 Traceback

 1.
 2.
 3.
 4.
 5.
 6.
 7.

 Traceback (most recent call last):
   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, 
 in restricted
   File "C:/web2py/applications/mqr/controllers/cms.py" 
 , line 
 105, in 
 import qrcode
   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 
 76, in custom_importer
 ImportError: No module named 



-- 
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/groups/opt_out.


[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 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, 2014 1:15:35 PM UTC-7, Niphlod wrote:
>>
>> 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 
>> you're probably guessing - its a non-existant module )
>>
>> On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:
>>>
>>>
>>> I recently had to set up a new environment (my desktop running Ubuntu is 
>>> dead) on my Windows laptop. I have a module called *qrcode *that worked 
>>> fine in my old environment and hasn't had an issue on pythonanywhere. After 
>>> I cloned the application, however, I received this error. Is there 
>>> something special about Windows? I am working on replacing my desktop, but 
>>> in the meantime I would love to get this working. Any help would be much 
>>> appreciated!
>>>
>>>  No module named mqr.modules
>>> Version  
>>>   
>>> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
>>> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>>>
>>> Traceback
>>>
>>> 1.
>>> 2.
>>> 3.
>>> 4.
>>> 5.
>>> 6.
>>> 7.
>>>
>>> Traceback (most recent call last):
>>>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, 
>>> in restricted
>>>   File "C:/web2py/applications/mqr/controllers/cms.py" 
>>> , line 
>>> 105, in 
>>> import qrcode
>>>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 
>>> 76, in custom_importer
>>> ImportError: No module named 
>>>
>>>

-- 
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/groups/opt_out.


[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, 2014 1:15:35 PM UTC-7, Niphlod wrote:
>
> 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 
> you're probably guessing - its a non-existant module )
>
> On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:
>>
>>
>> I recently had to set up a new environment (my desktop running Ubuntu is 
>> dead) on my Windows laptop. I have a module called *qrcode *that worked 
>> fine in my old environment and hasn't had an issue on pythonanywhere. After 
>> I cloned the application, however, I received this error. Is there 
>> something special about Windows? I am working on replacing my desktop, but 
>> in the meantime I would love to get this working. Any help would be much 
>> appreciated!
>>
>>  No module named mqr.modules
>> Version  
>>   
>> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
>> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>>
>> Traceback (most recent call last):
>>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, 
>> in restricted
>>   File "C:/web2py/applications/mqr/controllers/cms.py" 
>> , line 105, 
>> in 
>> import qrcode
>>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 76, 
>> in custom_importer
>> ImportError: No module named 
>>
>>

-- 
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/groups/opt_out.


[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, 2014 1:15:35 PM UTC-7, Niphlod wrote:
>
> 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 
> you're probably guessing - its a non-existant module )
>
> On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:
>>
>>
>> I recently had to set up a new environment (my desktop running Ubuntu is 
>> dead) on my Windows laptop. I have a module called *qrcode *that worked 
>> fine in my old environment and hasn't had an issue on pythonanywhere. After 
>> I cloned the application, however, I received this error. Is there 
>> something special about Windows? I am working on replacing my desktop, but 
>> in the meantime I would love to get this working. Any help would be much 
>> appreciated!
>>
>>  No module named mqr.modules
>> Version  
>>   
>> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
>> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>>
>> Traceback (most recent call last):
>>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, 
>> in restricted
>>   File "C:/web2py/applications/mqr/controllers/cms.py" 
>> , line 105, 
>> in 
>> import qrcode
>>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 76, 
>> in custom_importer
>> ImportError: No module named 
>>
>>

-- 
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/groups/opt_out.


[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 
you're probably guessing - its a non-existant module )

On Tuesday, February 11, 2014 9:09:32 PM UTC+1, Chris Hepworth wrote:
>
>
> I recently had to set up a new environment (my desktop running Ubuntu is 
> dead) on my Windows laptop. I have a module called *qrcode *that worked 
> fine in my old environment and hasn't had an issue on pythonanywhere. After 
> I cloned the application, however, I received this error. Is there 
> something special about Windows? I am working on replacing my desktop, but 
> in the meantime I would love to get this working. Any help would be much 
> appreciated!
>
>  No module named mqr.modules
> Version  
>   
> web2py™Version 2.8.2-stable+timestamp.2013.11.28.13.54.07PythonPython 
> 2.7.5: C:\web2py\web2py.exe (prefix: C:\Python27)
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
>
> Traceback (most recent call last):
>   File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in 
> restricted
>   File "C:/web2py/applications/mqr/controllers/cms.py" 
> , line 105, 
> in 
> import qrcode
>   File "/home/mdipierro/make_web2py/web2py/gluon/custom_import.py", line 76, 
> in custom_importer
> ImportError: No module named 
>
>

-- 
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/groups/opt_out.


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
> 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 source (version
>> 2.6.3-stable+timestamp.2013.09.15.17.01.20) and copied a app.yaml that
>> worked for me to it.
>>
>> When added this existing Application to GoogleAppEngine Laucher (Version
>> 1.8.4.1050) and started there this configuration.
>>
>> First everything looks ok, there no error messages. But calling the URL
>> there are a lot error messages (see below at the end)
>>
>> Perhaps this has to do with the new folder "handler" where gaehandler.py
>> is located now?
>>
>> With the "old" source folder everything worked fine.
>>
>> Is this a bug, or do I have to change something?
>>
>> Cheers!
>>
>> pw
>>
>>
>> -
>>
>> *** Running dev_appserver with the following flags:
>>
>> --skip_sdk_update_check=yes --port=8080 --admin_port=7000
>>
>> Python command: /usr/bin/python2.7
>>
>> INFO 2013-09-17 09:02:05,890 devappserver2.py:557] Skipping SDK update
>> check.
>>
>> WARNING  2013-09-17 09:02:05,911 api_server.py:327] Could not initialize
>> images API; you are likely missing the Python "PIL" module.
>>
>> INFO 2013-09-17 09:02:05,920 api_server.py:138] Starting API server
>> at: http://localhost:50187
>>
>> INFO 2013-09-17 09:02:05,928 dispatcher.py:164] Starting module
>> "default" running at: http://localhost:8080
>>
>> INFO 2013-09-17 09:02:05,938 admin_server.py:117] Starting admin
>> server at: http://localhost:7000
>>
>> ERROR2013-09-17 09:02:21,214 wsgi.py:262]
>>
>> Traceback (most recent call last):
>>
>>   File
>> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>> line 239, in Handle
>>
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>
>>   File
>> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>> line 298, in _LoadHandler
>>
>> handler, path, err = LoadObject(self._handler)
>>
>>   File
>> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>> line 84, in LoadObject
>>
>> obj = __import__(path[0])
>>
>> ImportError: No module named gaehandler
>>
>> INFO 2013-09-17 09:02:21,235 module.py:593] default: "GET / HTTP/1.1"
>> 500 -
>
> --
> 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/groups/opt_out.

-- 
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/groups/opt_out.


[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 source (version 
> 2.6.3-stable+timestamp.2013.09.15.17.01.20) and copied a app.yaml that 
> worked for me to it.
>
> When added this existing Application to GoogleAppEngine Laucher (Version 
> 1.8.4.1050) and started there this configuration.
>
> First everything looks ok, there no error messages. But calling the URL 
> there are a lot error messages (see below at the end)
>
> Perhaps this has to do with the new folder "handler" where gaehandler.py 
> is located now?
>
> With the "old" source folder everything worked fine.
>
> Is this a bug, or do I have to change something?
>
> Cheers!
>
> pw
>
>
> -
>
> *** Running dev_appserver with the following flags:
>
> --skip_sdk_update_check=yes --port=8080 --admin_port=7000
>
> Python command: /usr/bin/python2.7
>
> INFO 2013-09-17 09:02:05,890 devappserver2.py:557] Skipping SDK update 
> check.
>
> WARNING  2013-09-17 09:02:05,911 api_server.py:327] Could not initialize 
> images API; you are likely missing the Python "PIL" module.
>
> INFO 2013-09-17 09:02:05,920 api_server.py:138] Starting API server 
> at: http://localhost:50187
>
> INFO 2013-09-17 09:02:05,928 dispatcher.py:164] Starting module 
> "default" running at: http://localhost:8080
>
> INFO 2013-09-17 09:02:05,938 admin_server.py:117] Starting admin 
> server at: http://localhost:7000
>
> ERROR2013-09-17 09:02:21,214 wsgi.py:262] 
>
> Traceback (most recent call last):
>
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 239, in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 298, in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File 
> "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py",
>  
> line 84, in LoadObject
>
> obj = __import__(path[0])
>
> ImportError: No module named gaehandler
>
> INFO 2013-09-17 09:02:21,235 module.py:593] default: "GET / HTTP/1.1" 
> 500 -
>

-- 
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/groups/opt_out.


[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 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_messaging
>>>
>>> How can I solve the problem?
>>>
>>> Thanks.
>>>
>>>

-- 

--- 
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/groups/opt_out.




[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 procedures 
>> inside, but got the following error in ajax_form():
>>
>> ImportError: No module named gluon.contrib.comet_messaging
>>
>> How can I solve the problem?
>>
>> Thanks.
>>
>>

-- 

--- 
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/groups/opt_out.




[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_messaging
>
> How can I solve the problem?
>
> Thanks.
>
>

-- 

--- 
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/groups/opt_out.




[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 following error in ajax_form():
>
> ImportError: No module named gluon.contrib.comet_messaging
>
> How can I solve the problem?
>
> Thanks.
>
>

-- 

--- 
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/groups/opt_out.




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




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




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




[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.py with the same Python version you used
to install numpy.

Hope this helps.

On Jan 20, 11:45 pm, 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  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  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.




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




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

Massimo


On Jan 20, 5:34 am, kari  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.