Description of problem: On Fedora's bpython I cannot import six.moves.urllib, so working interactively with fedora.client or bodhi.client is not possible Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. sudo dnf install bpython python3-{fedora,bodhi-client} 2. bpython 3. import six.moves.urllib 4. from fedora import client 5. from bodhi import client Actual results: ``` ~ ❯ bpython bpython version unknown on top of Python 3.9.0 /usr/bin/python3 >>> from fedora import client Traceback (most recent call last): File "<input>", line 1, in <module> from fedora import client File "/usr/lib/python3.9/site-packages/fedora/client/__init__.py", line 157, in <module> from fedora.client.proxyclient import ProxyClient File "/usr/lib/python3.9/site-packages/fedora/client/proxyclient.py", line 39, in <module> from six.moves.urllib.parse import quote, urljoin, urlparse ModuleNotFoundError: No module named 'six.moves.urllib' >>> import six >>> from six.moves import urllib Traceback (most recent call last): File "<input>", line 1, in <module> from six.moves import urllib File "/usr/lib/python3.9/site-packages/six.py", line 92, in __get__ result = self._resolve() File "/usr/lib/python3.9/site-packages/six.py", line 115, in _resolve return _import_module(self.mod) File "/usr/lib/python3.9/site-packages/six.py", line 82, in _import_module __import__(name) ModuleNotFoundError: No module named 'six.moves.urllib' >>> from bodhi import client Traceback (most recent call last): File "<input>", line 1, in <module> from bodhi import client File "/usr/lib/python3.9/site-packages/bodhi/client/__init__.py", line 30, in <module> from fedora.client import AuthError, openidproxyclient File "/usr/lib/python3.9/site-packages/fedora/client/__init__.py", line 157, in <module> from fedora.client.proxyclient import ProxyClient File "/usr/lib/python3.9/site-packages/fedora/client/proxyclient.py", line 39, in <module> from six.moves.urllib.parse import quote, urljoin, urlparse ModuleNotFoundError: No module named 'six.moves.urllib' >>> ``` Expected results: These should succeed Additional info: The imports succeed using `python3`. It fails using bpython installed into a venv so it seems like an upstream issue.
Verified: $ python3 Python 3.9.1 (default, Dec 8 2020, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import six.moves.urllib >>> $ bpython bpython version unknown on top of Python 3.9.1 /usr/bin/python3 >>> import six.moves.urllib Traceback (most recent call last): File "<input>", line 1, in <module> import six.moves.urllib ModuleNotFoundError: No module named 'six.moves.urllib'
FEDORA-2021-d722e538be has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-d722e538be
FEDORA-2021-9d363d098e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-9d363d098e
Please try the new update, it contains an attempt to backport the upstream fix to bpython 0.20.1.
FEDORA-2021-d722e538be has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-d722e538be` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-d722e538be See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-9d363d098e has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-9d363d098e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9d363d098e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-d722e538be has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-9d363d098e has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
Hi Michel, can you review: https://bugzilla.redhat.com/show_bug.cgi?id=1925940 so bpython 0.21 with proper fix can be imported into Fedora?