Project

General

Profile

Tâche #30645

Scénario #30519: Nombreux "DeprecationWarning" dans pyeole.log signalés sur EOLE 2.8

pyeole.httprequest n'est pas compatible avec python3

Added by Joël Cuissinat about 1 year ago. Updated 12 months ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
09/14/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

J'ai effectué une première passe de correction sur les imports mais on commente les exceptions présentes dans le script diag.py, on voit que ça ne passe toujours pas :

root@thot:~# /usr/share/creole/diag.py
Traceback (most recent call last):
  File "/usr/share/creole/diag.py", line 86, in <module>
    req = HTTPRequest()
  File "/usr/lib/python3/dist-packages/pyeole/httprequest.py", line 74, in __init__
    self.make_opener()
  File "/usr/lib/python3/dist-packages/pyeole/httprequest.py", line 81, in make_opener
    handlers.append(get_proxy_handler(self.proxy))
  File "/usr/lib/python3/dist-packages/pyeole/httprequest.py", line 48, in get_proxy_handler
    return urllib2.ProxyHandler(proxy)
AttributeError: module 'urllib3' has no attribute 'ProxyHandler'

Associated revisions

Revision 5af08bdf (diff)
Added by Joël Cuissinat about 1 year ago

Compat (partielle) python3 pour pyeole.httprequest

Ref: #30645
Ref: #30643

Revision a676e7d0 (diff)
Added by Joël Cuissinat about 1 year ago

Finalisation du portage pyeole.httprequest en python3 (ref: #30645)

Revision 7ef19f41 (diff)
Added by Joël Cuissinat about 1 year ago

Correction (définitive?) des pbs liés à l'encodage dans pyeole.pkg

Ref: #30104
Ref: #17436
Ref: #30645

History

#1 Updated by Joël Cuissinat about 1 year ago

  • Description updated (diff)

#2 Updated by Joël Cuissinat about 1 year ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Joël Cuissinat

#3 Updated by Joël Cuissinat about 1 year ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#4 Updated by Joël Cuissinat 12 months ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF