[web2py] Re: modules: NameError("name 'reload' is not defined",)
same error, though with a lot more than 3 lines On Wednesday, June 24, 2020 at 5:36:36 AM UTC-5 serge.bo...@gmail.com wrote: > > I have an issue saving my modues with the last version of web2py. > Is there something I do wrong? > > Context: Ubuntu 18.04 / web2py version 2.20.4 / python 3.6.9 > > How to reproduce this issue (a bug??) with a simple example: > > In the applications examples, create a module (for instance empty.py) > > Then open it, > => url: > 127.0.0.1:8000/admin/default/edit/examples/modules/empty.py?id=modules__empty__py > The file contains 3 lines: > #!/usr/bin/env python > # -*- coding: utf-8 -*- > from gluon import * > > do not change anything and save it (ctrl + S)... > > => Since the last version, I get the following message: > > Impossible de recharger le module car: > NameError("name 'reload' is not defined",) > > Thanks for any advise... > -- 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/beb7c0d2-dd93-4b03-b16f-34545e952a02n%40googlegroups.com.
[web2py] URI for mssql
Is it correct this uri to connect to mssql server 2016? uri = mssql4://user:password@servername\instance/databasename or uri = mssql4://user:password@servername/databasename (without instance) Do I have to use "/" for all separations or even "\"? how can I be sure to use pyodbc or pypyodbc? Thank you -- 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/31b69416-068a-408a-a623-42ccfb79dc4fo%40googlegroups.com.
[web2py] Re: Server SQL non existent or access denied
Hello Villas, first thanks so much. You are gently. I will have possibility tomorrow to test. I just installed ODBC driver 17 in my client, so tomorrow I will test first of all if with a windows DSN connection it's possible to connect to SQL server 2016. After it I will try using web2py...But I don't know the implication about windows ODBC driver, pyodbc (it's another odbc driver...so independent from windows ODBC driver I think), and I don't know exactly if my DAL syntax is correct or not, because I found different syntax in the web. If there will be anyone who could help me I will be very grateful. Thank you so much Villas!! Il giorno sabato 15 agosto 2020 17:27:41 UTC+2, villas ha scritto: > > >> Do I have to install any ODBC SQL Server Driver on my client? > > Hi Andrea > I feel your frustration and, although I do not use mssql, I believe you > will certainly require a suitable ODBC driver installed so you can then > connect to that datasource using pyobc. > Maybe this will help https://github.com/mkleehammer/pyodbc/wiki > Note that you should be able to use the pyodbc library independently from > web2py. > I hope that other mssql users can give better advice. > All the best > > -- 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/a3fd7654-838e-416b-b7f6-8c531388979ao%40googlegroups.com.