No Looks like pypyodbc is not installed properly

On Saturday, 21 October 2017 08:12:29 UTC-5, mweissen wrote:
>
> 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
>
>

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

Reply via email to