websocket_messaging incompatible in web2py 2.15.4?

44 views
Skip to first unread message

Martin Weissenboeck

unread,
Oct 21, 2017, 9:12:29 AM10/21/17
to web2py-users
Some months ago I have written a test application for gluon/contrib/websocket_messaging.py and it worked very well. Now (after an update to 2.15.4) I tried it again and I got some errors.

I started with 

python /home/www-data/web2py/gluon/contrib/websocket_messaging.py -k mykey -p 8888 -s /etc/nginx/ssl/web2py.key -c /etc/nginx/ssl/web2py.crt

and I got the message, that gluon.contrib was not found.

I added the line 

sys.path.append('/home/www-data/web2py/')

before import gluon.contrib and this solved the problem. Maybe not the best solution, but it worked.

I tried it again and got:


Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/contrib/websocket_messaging.py", line 97, in <module>
    import gluon.utils
  File "/home/www-data/web2py/gluon/__init__.py", line 23, in <module>
    import pydal
  File "/home/www-data/web2py/gluon/packages/dal/pydal/__init__.py", line 3, in <module>
    from .base import DAL
  File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 147, in <module>
    from .adapters.base import BaseAdapter, NullAdapter
  File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 73, in <module>
    from .postgres import Postgre, PostgrePsyco, PostgrePG8000
  File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 4, in <module>
    from ..drivers import psycopg2_adapt
  File "/home/www-data/web2py/gluon/packages/dal/pydal/drivers.py", line 71, in <module>
    import pypyodbc as pyodbc
  File "/home/www-data/web2py/gluon/contrib/pypyodbc.py", line 439, in <module>
    raise OdbcNoLibrary('ODBC Library is not found. Is LD_LIBRARY_PATH set?')
pypyodbc.OdbcNoLibrary: 'ODBC Library is not found. Is LD_LIBRARY_PATH set?'

Is there anything new in 2.15.4, which ​is responsible for this message? I think that nothing else has changed.

Version: 2.15.4-stable+timestamp.2017.09.02.04.02.22
(läuft auf nginx/1.10.0, Python 2.7.12)

Regards, Martin

Massimo Di Pierro

unread,
Nov 1, 2017, 7:43:38 PM11/1/17
to web2py-users
No Looks like pypyodbc is not installed properly
Reply all
Reply to author
Forward
0 new messages