Bug 2229533 - [abrt] nutty: closestServers(): speedtest-cli:448:closestServers:NameError: name 'DOM' is not defined
Summary: [abrt] nutty: closestServers(): speedtest-cli:448:closestServers:NameError: n...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: nutty
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Artem
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:260610e64a9f0d5756488f66409...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-06 20:17 UTC by zsolt.janosi
Modified: 2024-05-28 13:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-28 13:41:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (1.40 KB, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: open_fds (309 bytes, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: namespaces (171 bytes, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: os_info (698 bytes, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: backtrace (3.89 KB, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: cpuinfo (2.87 KB, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details
File: mountinfo (3.30 KB, text/plain)
2023-08-06 20:18 UTC, zsolt.janosi
no flags Details

Description zsolt.janosi 2023-08-06 20:17:58 UTC
Version-Release number of selected component:
nutty-1.1.1-12.fc38

Additional info:
reporter:       libreport-2.17.11
crash_function: closestServers
interpreter:    python3-3.11.4-1.fc38.x86_64
reason:         speedtest-cli:448:closestServers:NameError: name 'DOM' is not defined
kernel:         6.4.7-200.fc38.x86_64
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
exception_type: AttributeError
runlevel:       N 5
executable:     /usr/share/com.github.babluboy.nutty/scripts/speedtest-cli
type:           Python3
package:        nutty-1.1.1-12.fc38
uid:            1000
cmdline:        /usr/bin/python3 /usr/share/com.github.babluboy.nutty/scripts/speedtest-cli --simple --bytes

Truncated backtrace:
speedtest-cli:448:closestServers:NameError: name 'DOM' is not defined

Traceback (most recent call last):
  File "/usr/share/com.github.babluboy.nutty/scripts/speedtest-cli", line 446, in closestServers
    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/share/com.github.babluboy.nutty/scripts/speedtest-cli", line 796, in <module>
    main()
  File "/usr/share/com.github.babluboy.nutty/scripts/speedtest-cli", line 790, in main
    speedtest()
  File "/usr/share/com.github.babluboy.nutty/scripts/speedtest-cli", line 641, in speedtest
    servers = closestServers(config['client'])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/com.github.babluboy.nutty/scripts/speedtest-cli", line 448, in closestServers
    root = DOM.parseString(''.join(serversxml))
           ^^^
NameError: name 'DOM' is not defined

Local variables in innermost frame:
client: {'ip': '188.36.100.104', 'lat': '46.2296', 'lon': '17.3579', 'isp': 'Magyar Telekom', 'isprating': '3.7', 'rating': '0', 'ispdlavg': '0', 'ispulavg': '0', 'loggedin': '0', 'country': 'HU'}
all: False
urls: ['://www.speedtest.net/speedtest-servers-static.php', '://c.speedtest.net/speedtest-servers-static.php', '://www.speedtest.net/speedtest-servers.php', '://c.speedtest.net/speedtest-servers.php']
errors: []
servers: {}
url: '://www.speedtest.net/speedtest-servers-static.php'
request: <urllib.request.Request object at 0x7fa5dd061910>
uh: <http.client.HTTPResponse object at 0x7fa5dca276a0>
e: False
serversxml: [b'<?xml version="1.0" encoding="UTF-8"?>\n<settings>\n<servers><server url="http://speedtest.fonira.at:8080/speedtest/upload.php" lat="48.2082" lon="16.3738" name="Vienna" country="Austria" cc="AT" sponsor="fonira Telekom GmbH" id="15152"  host="speedtest.fonira.at:8080" />\n<server url="http://speedtest.ama-networx.net:8080/speedtest/upload.php" lat="48.2088" lon="16.3726" name="Vienna" country="Austria" cc="AT" sponsor="AMA netwoRX GmbH" id="16472"  host="speedtest.ama-networx.net:8080" />\n<server url="http://at.blackhost.network:8080/speedtest/upload.php" lat="48.2088" lon="16.3726" name="Vienna" country="Austria" cc="AT" sponsor="BlackHOST Ltd." id="46058"  host="at.blackhost.network:8080" />\n<server url="http://speedtest.kapper.net:8080/speedtest/upload.php" lat="48.2088" lon="16.3726" name="Vienna" country="Austria" cc="AT" sponsor="kapper.net" id="7412"  host="speedtest.kapper.net:8080" />\n<server url="http://speedtest1.o2bs.sk:8080/speedtest/upload.php" lat="48.1485" lon="17.1067" name="Bratislava" country="Slovakia" cc="SK" sponsor="O2 Business Services, a.s." id="11213"  host="speedtest1.o2bs.sk:8080" />\n<server url="http://speedtest.yellownet.sk:8080/speedtest/upload.php" lat="48.6799" lon="17.3610" name="Senica" country="Slovakia" cc="SK" sponsor="YellowNET, s. r. o." id="40285"  host="speedtest.yellownet.sk:8080" />\n<server url="http://ip-net.sk:8080/speedtest/upload.php" lat="48.3775" lon="17.5883" name="Trnava" country="Slovakia" cc="SK" sponsor="IP-Net s.r.o." id="4625"  host="ip-net.sk:8080" />\n<server url="http://saskia.net-connect.cz:8080/speedtest/upload.php" lat="48.8529" lon="17.1260" name="Hodon\xc3\xadn" country="Czechia" cc="CZ" sponsor="Net-connect s.r.o." id="38785"  host="saskia.net-connect.cz:8080" />\n<server url="http://speedtest.vivo.cz:8080/speedtest/upload.php" lat="49.1533" lon="16.8765" name="Slavkov u Brna" country="Czechia" cc="CZ" sponsor="VIVO CONNECTION spol. s r.o." id="15684"  host="speedtest.vivo.cz:8080" />\n<server url="http://speedtest.dkm.cz:8080/speedtest/upload.php" lat="49.1953" lon="16.6083" name="Brno" country="Czechia" cc="CZ" sponsor="Vodafone CZ" id="1363"  host="speedtest.dkm.cz:8080" />\n</servers>\n</settings>\n', b'']
root: <Element 'settings' at 0x7fa5dca3f9c0>

Potential duplicate: bug 1886995

Comment 1 zsolt.janosi 2023-08-06 20:18:02 UTC
Created attachment 1982005 [details]
File: environ

Comment 2 zsolt.janosi 2023-08-06 20:18:04 UTC
Created attachment 1982006 [details]
File: open_fds

Comment 3 zsolt.janosi 2023-08-06 20:18:05 UTC
Created attachment 1982007 [details]
File: namespaces

Comment 4 zsolt.janosi 2023-08-06 20:18:07 UTC
Created attachment 1982008 [details]
File: os_info

Comment 5 zsolt.janosi 2023-08-06 20:18:09 UTC
Created attachment 1982009 [details]
File: backtrace

Comment 6 zsolt.janosi 2023-08-06 20:18:11 UTC
Created attachment 1982010 [details]
File: cpuinfo

Comment 7 zsolt.janosi 2023-08-06 20:18:12 UTC
Created attachment 1982011 [details]
File: mountinfo

Comment 8 Aoife Moloney 2024-05-28 13:41:44 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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