Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1883534 - [abrt] speedtest-cli: get_servers(): speedtest.py:1268:get_servers:NameError: name 'ExpatError' is not defined
Summary: [abrt] speedtest-cli: get_servers(): speedtest.py:1268:get_servers:NameError:...
Keywords:
Status: CLOSED DUPLICATE of bug 1891213
Alias: None
Product: Fedora
Classification: Fedora
Component: speedtest-cli
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matías Kreder
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:16f697c4e407b5ab6401b8ae846...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-29 13:56 UTC by Persona non grata
Modified: 2020-12-03 01:04 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-14 19:20:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (44.66 KB, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details
File: cpuinfo (2.37 KB, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details
File: environ (3.30 KB, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details
File: mountinfo (2.93 KB, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details
File: namespaces (172 bytes, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details
File: open_fds (269 bytes, text/plain)
2020-09-29 13:56 UTC, Persona non grata
no flags Details

Description Persona non grata 2020-09-29 13:56:34 UTC
Description of problem:
The problem occured after downloading, installing and running 'speedtest-cli-2.1.1-6.fc33.noarch'.

Simply running the command 'speedtest-cli' caused the problem.

Not sure if the log is automatically uploaded but here is the output after running the program:

---
Retrieving speedtest.net configuration...
Testing from <my-isp> (<my-ip>)...
Retrieving speedtest.net server list...
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1264, in get_servers
    elements = root.getiterator('server')
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1267, in get_servers
    root = DOM.parseString(serversxml)
NameError: name 'DOM' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/speedtest-cli", line 33, in <module>
    sys.exit(load_entry_point('speedtest-cli==2.1.1', 'console_scripts', 'speedtest-cli')())
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1929, in main
    shell()
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1849, in shell
    speedtest.get_servers(servers=args.server, exclude=args.exclude)
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1268, in get_servers
    except ExpatError:
NameError: name 'ExpatError' is not defined
---

Version-Release number of selected component:
speedtest-cli-2.1.1-6.fc33

Additional info:
reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-cc997ec7-1473-4816-b60a-967d4dab4ce7.scope
cmdline:        /usr/bin/python3 /usr/bin/speedtest-cli
crash_function: get_servers
exception_type: AttributeError
executable:     /usr/bin/speedtest-cli
interpreter:    python3-3.9.0~rc2-1.fc33.x86_64
kernel:         5.8.11-300.fc33.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 [/usr/lib/python3.9/site-packages/speedtest.py:1264] get_servers

Comment 1 Persona non grata 2020-09-29 13:56:41 UTC
Created attachment 1717550 [details]
File: backtrace

Comment 2 Persona non grata 2020-09-29 13:56:44 UTC
Created attachment 1717551 [details]
File: cpuinfo

Comment 3 Persona non grata 2020-09-29 13:56:48 UTC
Created attachment 1717552 [details]
File: environ

Comment 4 Persona non grata 2020-09-29 13:56:51 UTC
Created attachment 1717553 [details]
File: mountinfo

Comment 5 Persona non grata 2020-09-29 13:56:53 UTC
Created attachment 1717554 [details]
File: namespaces

Comment 6 Persona non grata 2020-09-29 13:56:54 UTC
Created attachment 1717555 [details]
File: open_fds

Comment 7 Francis Sebastian 2020-10-11 17:22:43 UTC
*** Bug 1887191 has been marked as a duplicate of this bug. ***

Comment 8 Derek Cordeiro 2020-10-13 05:27:27 UTC
Similar problem has been detected:

simply ran speedtest-cli without any arguments.

speedtest-cli in a virtualenvironment works as expected.

reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-2cd92257-9c87-4715-97d5-5985076d55b0.scope
cmdline:        /usr/bin/python3 /usr/bin/speedtest-cli
crash_function: get_servers
exception_type: AttributeError
executable:     /usr/bin/speedtest-cli
interpreter:    python3-3.9.0-1.fc33.x86_64
kernel:         5.8.14-300.fc33.x86_64
package:        speedtest-cli-2.1.1-6.fc33
reason:         speedtest.py:1268:get_servers:NameError: name 'ExpatError' is not defined
runlevel:       N 5
type:           Python3
uid:            1000

Comment 9 Angie 2020-10-19 01:26:06 UTC
Similar problem has been detected:

tried to run speedtest-cli

got this...

$ speedtest-cli 
Retrieving speedtest.net configuration...

Retrieving speedtest.net server list...
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1264, in get_servers
    elements = root.getiterator('server')
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1267, in get_servers
    root = DOM.parseString(serversxml)
NameError: name 'DOM' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/speedtest-cli", line 33, in <module>
    sys.exit(load_entry_point('speedtest-cli==2.1.1', 'console_scripts', 'speedtest-cli')())
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1929, in main
    shell()
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1849, in shell
    speedtest.get_servers(servers=args.server, exclude=args.exclude)
  File "/usr/lib/python3.9/site-packages/speedtest.py", line 1268, in get_servers
    except ExpatError:
NameError: name 'ExpatError' is not defined

reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-452c6eb4-20ac-44f4-b988-2f45264cef65.scope
cmdline:        /usr/bin/python3 /usr/bin/speedtest-cli
crash_function: get_servers
exception_type: AttributeError
executable:     /usr/bin/speedtest-cli
interpreter:    python3-3.9.0-1.fc33.x86_64
kernel:         5.8.15-301.fc33.x86_64
package:        speedtest-cli-2.1.1-6.fc33
reason:         speedtest.py:1268:get_servers:NameError: name 'ExpatError' is not defined
runlevel:       N 5
type:           Python3
uid:            1000

Comment 10 Alexandre Fernandez 2020-10-21 12:34:35 UTC
Similar problem has been detected:

I am using Fedora 33 Workstation with python3.9.
I installed speedtest-cli with dnf and ran the executable.

reporter:       libreport-2.14.0
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-d9894b34-1729-4e85-b17c-0e80f4dfd3aa.scope
cmdline:        /usr/bin/python3 /usr/bin/speedtest-cli
crash_function: get_servers
exception_type: AttributeError
executable:     /usr/bin/speedtest-cli
interpreter:    python3-3.9.0-1.fc33.x86_64
kernel:         5.8.15-301.fc33.x86_64
package:        speedtest-cli-2.1.1-6.fc33
reason:         speedtest.py:1268:get_servers:NameError: name 'ExpatError' is not defined
runlevel:       N 5
type:           Python3
uid:            1000

Comment 11 jun 2020-10-28 23:31:15 UTC
*** Bug 1892497 has been marked as a duplicate of this bug. ***

Comment 12 Matteo 2020-11-09 19:07:34 UTC
*** Bug 1896124 has been marked as a duplicate of this bug. ***

Comment 13 Lars K. Hansen 2020-11-12 07:21:42 UTC
*** Bug 1897042 has been marked as a duplicate of this bug. ***

Comment 14 Michael Cronenworth 2020-11-14 19:20:06 UTC
Closing dupes. The new, parent bug has a fix. Upgrading to 2.1.2.

*** This bug has been marked as a duplicate of bug 1891213 ***

Comment 15 yasoo4253 2020-11-18 15:46:42 UTC
*** Bug 1899143 has been marked as a duplicate of this bug. ***

Comment 16 james.peterson 2020-11-21 15:27:38 UTC
*** Bug 1900225 has been marked as a duplicate of this bug. ***

Comment 17 Norm Rossiter 2020-11-23 13:17:58 UTC
*** Bug 1900640 has been marked as a duplicate of this bug. ***

Comment 18 james.peterson 2020-11-25 12:54:49 UTC
*** Bug 1901500 has been marked as a duplicate of this bug. ***

Comment 19 Arne 2020-12-01 16:31:15 UTC
*** Bug 1903220 has been marked as a duplicate of this bug. ***

Comment 20 Matteo Croce 2020-12-03 01:04:59 UTC
I have the same on FC33


Note You need to log in before you can comment on or make changes to this bug.