[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-08 Thread Leonel Câmara
Suhas can you try these changes: https://github.com/web2py/web2py/pull/1944/files > -- 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

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-07 Thread Suhas Jadhav
Even if I use below code in the controller. Just the import I am getting error Traceback (most recent call last): File "C:\WEB2PY\web2py\gluon\custom_import.py", line 77, in custom_importer return NATIVE_IMPORTER(oname, globals, locals, fromlist, level) ModuleNotFoundError: No module named

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Dave S
On Monday, June 4, 2018 at 10:54:01 AM UTC-7, Suhas Jadhav wrote: > > Yes, I say the documentation. But issues here is urllib2 works well from > my python console. > the error happens when web2py tries to call it. > My code is not calling it directly. I believe ldap_auth library calling > urlli

Re: [web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta
2018-06-04 14:54 GMT-03:00 Suhas Jadhav : > > Yes, I say the documentation. But issues here is urllib2 works well from my > python console. The Python3 console? Unless you have done something weird, urllib2 cannot work in the Python3 console *because the module does not exist*. The proper course

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Suhas Jadhav
Yes, I say the documentation. But issues here is urllib2 works well from my python console. the error happens when web2py tries to call it. My code is not calling it directly. I believe ldap_auth library calling urllib2 internally and faile. Thanks, Suhas On Monday, 4 June 2018 06:44:37 UTC-7,

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread Marcelo Huerta
El lunes, 4 de junio de 2018, 10:44:37 (UTC-3), Suhas Jadhav escribió: > > > web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 > > PYTHON Python 3.6.2 > > > Any solution or workaround? > Using proper Python3 code? Module urllib2 does not exist in Python 3. -- Resources: - http://web2p

[web2py] Re: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-04 Thread 黄祥
ref: https://docs.python.org/2/library/urllib2.html https://stackoverflow.com/questions/2792650/import-error-no-module-name-urllib2 best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl