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 1891213
Summary: | speedtest-cli does not run successfully after installation. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Heðin <hmoller> | ||||
Component: | speedtest-cli | Assignee: | Matías Kreder <mkreder> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 33 | CC: | besser82, cristionciu, deadgnom32, dgilmore, dustymabe, henrique, kamal, mihai, mike, mkreder, nobody+435980, olegon, steve.morgan, vascom2 | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | speedtest-cli-2.1.2-1.fc33 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-12-06 03:04:16 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Heðin
2020-10-24 12:45:02 UTC
Commenting on this one since it seems most focused and useful. tl;dr: Upgrading from 2.1.1 -> 2.1.2 should fix this. The initial error appears to be a result of upgrading to 3.9: > Deprecated since version 3.2, will be removed in version 3.9: Use method Element.iter() instead. https://docs.python.org/3.8/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getiterator The further errors are a result of an imprecise fallback to another XML API. It looks like this was fixed in a commit that made it into v2.1.2: https://github.com/sivel/speedtest-cli/commit/81bba6070c9069f8770212f119232d0622ddb111 Indeed, testing with that version downloaded from github works just fine: $ wget --quiet https://raw.githubusercontent.com/sivel/speedtest-cli/v2.1.2/speedtest.py $ chmod +x speedtest.py $ ./speedtest.py --list | head -3 Retrieving speedtest.net configuration... 911) Fibrenoire Internet (Montreal, QC, Canada) [2.46 km] 16754) Bell Mobility (Montreal, QC, Canada) [2.46 km] *** Bug 1875396 has been marked as a duplicate of this bug. *** *** Bug 1883534 has been marked as a duplicate of this bug. *** *** Bug 1895221 has been marked as a duplicate of this bug. *** @Matías, could you push a 2.1.2 update? I could also do it if you need help. FEDORA-2020-2fa0fafc0f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-2fa0fafc0f FEDORA-2020-2fa0fafc0f has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-2fa0fafc0f` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-2fa0fafc0f See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Similar problem has been detected: install speedtest-cli run speedtest-cli I think it has something to do with newer python versions, than those it has been written for. reporter: libreport-2.14.0 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.9.11-200.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 FEDORA-2020-2fa0fafc0f has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. It looks like as a duplicated bug: https://bugzilla.redhat.com/show_bug.cgi?id=1948086 Fedora 33 package speedtest-cli-2.1.2-1.fc33.noarch. Retrieving speedtest.net configuration... Traceback (most recent call last): File "/usr/bin/speedtest-cli", line 33, in <module> sys.exit(load_entry_point('speedtest-cli==2.1.2', 'console_scripts', 'speedtest-cli')()) File "/usr/lib/python3.9/site-packages/speedtest.py", line 1985, in main shell() File "/usr/lib/python3.9/site-packages/speedtest.py", line 1871, in shell speedtest = Speedtest( File "/usr/lib/python3.9/site-packages/speedtest.py", line 1090, in __init__ self.get_config() File "/usr/lib/python3.9/site-packages/speedtest.py", line 1172, in get_config ignore_servers = list( ValueError: invalid literal for int() with base 10: '' Why is the bug reference locked? |