python 3 web2py2.15.3 url lib has no get proxies

33 views
Skip to first unread message

Ben Lawrence

unread,
Aug 15, 2017, 2:26:28 AM8/15/17
to web...@googlegroups.com

HI

trying to use python 3 because I am having a lot of ascii decode issues...


python 2.17.12 can run the scheduler no problem, but not python 3.5


I was wondering how can I install getproxies attribute into the urllib module ?



ben@x1:/home/www-data/web2py$ python3 /home/www-data/web2py/web2py.py -K app-name

web2py Web Framework

Created by Massimo Di Pierro, Copyright 2007-2017

Version 2.15.3-stable+timestamp.2017.08.07.07.32.04

Database drivers available: pymysql, imaplib, psycopg2, sqlite3, pg8000

Traceback (most recent call last):

  File "/home/www-data/web2py/web2py.py", line 33, in <module>

    gluon.widget.start(cron=True)

  File "/home/www-data/web2py/gluon/widget.py", line 1170, in start

    start_schedulers(options)

  File "/home/www-data/web2py/gluon/widget.py", line 1080, in start_schedulers

    urllib.getproxies()

AttributeError: module 'urllib' has no attribute 'getproxies'



Leonel Câmara

unread,
Aug 15, 2017, 7:10:15 AM8/15/17
to web2py-users
Please submit an issue in github so we can track this, we need to use urllib.request.getproxies() for python 3.
Reply all
Reply to author
Forward
0 new messages