Python3: module 'socket' has no attribute '_fileobject'

Bug #1812525 reported by Cyril Roelandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Triaged
Medium
Cyril Roelandt

Bug Description

In glanceclient/common/https.py, OpenSSLConnectionDelegator.makefile uses socket._fileobject, which does not exist in Python3:

$ python3
>>> import socket
>>> socket._fileobject
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'socket' has no attribute '_fileobject'

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

Alternate is to use socket.SocketIO class instead of _fileobject, verifying if it will cause any regression.

Changed in python-glanceclient:
status: New → Triaged
importance: Undecided → Medium
Changed in python-glanceclient:
assignee: nobody → Triveni Gurram (triveni12)
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

@Triveni: sorry, I stole this from you since I saw no patch under review.

I proposed https://review.opendev.org/c/openstack/python-glanceclient/+/784465

Changed in python-glanceclient:
assignee: Triveni Gurram (triveni12) → Cyril Roelandt (cyril-roelandt)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.