Public bug reported:
On Eoan with ubuntu-dev-tools 0.171
$ /usr/bin/pull-debian-source
Traceback (most recent call last):
File "/usr/bin/pull-debian-source", line 22, in <module>
import urllib.request
ImportError: No module named request
Root cause: despite the "/usr/bin/python3" shebang in the source,
setuptools modifies this to "/usr/bin/python" because setup.py ran with
Python 2 during the build, and so the "build" pull-debian-source tool no
longer works.
I'm not sure how to fix this while moving towards Python 3 without
porting everything else or making pull-debian-source (and incrementally
everything else until the porting is done) dual 2/3.
Workaround: hack your /usr/bin/pull-debian-source shebang to use Python
3. I also noticed that there's no dependency on python3-ubuntutools, so
you may need to install that.
This bug is my fault. I had assumed that testing pull-debian-source by
running it straight from the source tree would be sufficient when I
ported it to Python 3 in the process of fixing a different bug.
** Affects: ubuntu-dev-tools (Ubuntu)
Importance: High
Status: Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1841127
Title:
pull-debian-source fails with "ImportError: No module named request"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1841127/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs