[web2py] ImportError: No module named utils on websocket_messaging

2019-10-10 Thread Luis Sucuc

I am trying to use sockets as follows

python gluon/contrib/websocket_messaging.py -k 123 -p 

but I receive the following error

Traceback (most recent call last):
  File "gluon/contrib/websocket_messaging.py", line 96, in 
import gluon.utils
ImportError: No module named utils
luis@luissucuc:~/Documents/Innovare/




SO: Ubuntu 18.04.3 LTS

Version

2.18.5-stable+timestamp.2019.04.08.04.22.03
(Running on Rocket 1.2.6, Python 2.7.15+)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/71f99f60-ede3-4752-a45c-f5d7de660337%40googlegroups.com.


[web2py] ImportError: No module named

2017-02-20 Thread Daniel Dos Santos Guilhermino
Hello Everybody,

I have a little problem with my application... I searched on the forum, but 
I don't see any solution...

Follow the error:

Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 227, in restricted
exec ccode in environment
  File "C:\web2py\applications\xml\controllers/default.py", line 3, in 
import extrairprodutos
  File "C:\web2py\gluon\custom_import.py", line 85, in custom_importer
modules_prefix, globals, locals, [itemname], level)
ImportError: No module named xml.modules


P.s: Application work fine on the server and my computer... But the error apper 
in another computers...

Informations:

Web2py work on Windows 2008 R2
I put __init__ file on module folder.

Thanks!

-- 
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] ImportError: No module named

2015-09-07 Thread lenin . martinez
 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] ImportError: No module named duplicity.tarfile

2015-03-01 Thread Ramkrishan Bhatt
HIi Everyone,
After deploying in the server i got this issue. 

-- 
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] ImportError: No module named myapp.modules

2014-10-01 Thread Alex


I've added a file to the modules folder, in a controller I import this 
module which works fine locally (Windows). When I deploy my application to 
the server (linux, apache) I get the following error when I try to import 
my module:

File web2pypath/gluon/custom_import.py, line 82, in custom_importer
modules_prefix, globals, locals, [itemname], level)
ImportError: No module named myapp.modules

I did not activate the custom importer (track_changes) and there is a file 
__init__.py (which is empty) in the modules folder. Does someone have an 
idea what could be wrong or what I could try to fix this?


thanks, Alex

-- 
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] ImportError: No module named myapp.modules

2014-04-20 Thread weheh
I'm in the process of installing a new version of my app and getting this 
error message right off the bat. My modules folder does contain an 
__init__.py file, so it should be OK. But I'm getting this traceback. This 
has got me dead in the water, so any quick help would be much appreciated. 
Should be obvious, but I don't see it.

Traceback (most recent call last):
  File C:\web2py\gluon\restricted.py, line 212, in restricted
exec ccode in environment
  File C:/web2py/applications/myapp/models/0_db_1_user.py 
http://127.0.0.1:8000/admin/edit/YAKiToMe/models/0_db_1_user.py, line 18, in 
module
import yak_globs
  File C:\web2py\gluon\custom_import.py, line 73, in custom_importer
modules_prefix, globals, locals, [itemname], level)
  File C:\web2py\gluon\custom_import.py, line 124, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ImportError: No module named myapp.modules


-- 
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] ImportError - no module named...

2014-02-11 Thread Chris Hepworth

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!

type 'exceptions.ImportError' 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 
http://127.0.0.1:8000/admin/default/edit/mqr/controllers/cms.py, line 105, in 
module
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] ImportError: No module named gaehandler

2013-09-17 Thread Python Webdev
 

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] ImportError: No module named gluon.contrib.comet_messaging

2013-03-08 Thread surfnet3


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] ImportError: No module named google.appengine.ext

2011-11-20 Thread Constantine Vasil
 Are you doing anything with sys.path?

No - I do not. It seems to me it is a path issue
in the Eclipse+PyDev debugging environment.

Still it is not clear to me how web2py finds it in
gaehandler.py but not in my db.py? 


Re: [web2py] ImportError: No module named google.appengine.ext

2011-11-20 Thread Jonathan Lundell
On Nov 20, 2011, at 8:50 AM, Constantine Vasil wrote:

  Are you doing anything with sys.path?
 
 No - I do not. It seems to me it is a path issue
 in the Eclipse+PyDev debugging environment.
 
 Still it is not clear to me how web2py finds it in
 gaehandler.py but not in my db.py? 

Try logging sys.path.

[web2py] ImportError: No module named google.appengine.ext

2011-11-19 Thread Constantine Vasil
In my db.py I am importing:
from google.appengine.ext import db as google_db

But got the following error:

ImportError: No module named *google.appengine.ext*


I see in gaehandler.py there is *google.appengine.ext:*

from *google.appengine.ext* import webapp
from *google.appengine.ext*.webapp.util import run_wsgi_app


But I don't get this error there.

What is wrong?


Re: [web2py] ImportError: No module named google.appengine.ext

2011-11-19 Thread Jonathan Lundell
On Nov 19, 2011, at 12:56 AM, Constantine Vasil wrote:

 In my db.py I am importing:
 from google.appengine.ext import db as google_db
 
 But got the following error:
 ImportError: No module named google.appengine.ext
 
 I see in gaehandler.py there is google.appengine.ext:
 from google.appengine.ext import webapp
 from google.appengine.ext.webapp.util import run_wsgi_app
 
 But I don't get this error there.
 
 What is wrong?

I have:

import google.appengine.ext.db as gds

...in my db.py and it works OK. Are you doing anything with sys.path?

[web2py] ImportError: No module named ...

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