El 01/11/17 a las 20:57, Massimo Di Pierro escribió:
make sure web2py is in PYTHON_PATH

On Wednesday, 1 November 2017 08:19:02 UTC-5, Omicron VT wrote:



    El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT
    escribió:

        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


    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


--
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 a topic in the Google Groups "web2py-users" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/A3kbW7AZS7g/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

Thanks, but no solution.



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.




--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to