CLI is not compatible with Python3

Bug #1978123 reported by Ekaterina Chernova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BaGPipe
Fix Released
Undecided
Lajos Katona

Bug Description

Since urllib library changes in Python3 the following error occurred while executing bagpipe-looking-glass bgp routes:

Traceback (most recent call last):
  File "/var/lib/openstack/lib/python3.6/site-packages/networking_bagpipe/bagpipe_bgp/cli/looking_glass.py", line 156, in main
    response = urllib.request.urlopen(target_url)
AttributeError: module 'urllib' has no attribute 'request'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/var/lib/openstack/bin/bagpipe-looking-glass", line 8, in <module>
    sys.exit(main())
  File "/var/lib/openstack/lib/python3.6/site-packages/networking_bagpipe/bagpipe_bgp/cli/looking_glass.py", line 171, in main
    except urllib.error.HTTPError as e:
AttributeError: module 'urllib' has no attribute 'error'

Tags: py3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-bagpipe (master)
Changed in networking-bagpipe:
status: New → In Progress
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Thanks for reporting, could you please check if the above patch solves all the issue with py3? I tried to change all urllib imports to new format

tags: added: py3
Changed in networking-bagpipe:
assignee: nobody → Lajos Katona (lajos-katona)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-bagpipe (master)

Change abandoned by "Lajos Katona <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/networking-bagpipe/+/846156
Reason: https://review.opendev.org/c/openstack/networking-bagpipe/+/845271 covers the same issue and older than this one :-)

Changed in networking-bagpipe:
status: In Progress → Fix Released
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.