You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
I have been using websocket_messaging.py without problems in version 2.14.6. After upgrading to 2.15.4 i can not start websocket_messaging anymore, iget this error : ImportError: No module named gluon.utils
Any help ? Thanks
黄祥
unread,
Nov 1, 2017, 9:00:30 AM11/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
had you try:
from gluon import utils
best regards,
stifan
Omicron VT
unread,
Nov 1, 2017, 9:19:02 AM11/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
Yes, but no solution.
I think this lines(96-97) in messaging_websocket.py are the problem : import gluon.utils from gluon._compat import to_native, to_bytes, urlencode, urlopen
and if i try to import /gluon/utils.py from python console i get a similar error: File "utils.py", line 30, in <module> from gluon._compat import basestring, pickle, PY2, xrange, to_bytes, to_native ImportError: No module named gluon._compat
Massimo Di Pierro
unread,
Nov 1, 2017, 7:57:21 PM11/1/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py-users
make sure web2py is in PYTHON_PATH
Luciano Bovio
unread,
Nov 2, 2017, 8:20:14 AM11/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
El 01/11/17 a las 20:57, Massimo Di Pierro escribió:
To reproduce my problem :
Fresh Debian 9
Download web2py sources for normal users
Unzip web2py to some folder
Install tornado with pip
Cd to web2py folder
Run gluon/contrib/websocket_messaging.py -k mykey -p 8888
This is console output:
root@debian9:~/web2py# python gluon/contrib/websocket_messaging.py -k
mykey -p 8888
Traceback (most recent call last):
File "gluon/contrib/websocket_messaging.py", line 96, in <module>
import gluon.utils
ImportError: No module named gluon.utils
On my Ubuntu working desktop the problem is the same.
If i use an older version of web2py, websocket_messaging works.
Omicron VT
unread,
Nov 3, 2017, 7:39:52 PM11/3/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message