Groups
Groups
Sign in
Groups
Groups
comp.lang.python
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
ModuleNotFoundError: No module named 'DistUtilsExtra'
522 views
Skip to first unread message
hongy...@gmail.com
unread,
Jan 2, 2022, 7:23:56 AM
1/2/22
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On Ubuntu 20.04.3 LTS, I try to install pdfarranger [1] as follows but failed:
$ sudo apt-get install python3-pip python3-distutils-extra \
python3-wheel python3-gi python3-gi-cairo \
gir1.2-gtk-3.0 gir1.2-poppler-0.18 python3-setuptools
$ git clone
https://github.com/pdfarranger/pdfarranger.git
pdfarranger.git
$ cd pdfarranger.git
$ pyenv shell 3.8.3
$ pyenv virtualenv --system-site-packages pdfarranger
$ pyenv shell pdfarranger
$ pip install -U pip
$ ./setup.py build
Traceback (most recent call last):
File "./setup.py", line 24, in <module>
from DistUtilsExtra.command import (
ModuleNotFoundError: No module named 'DistUtilsExtra'
See the following for the package list installed in this virtualenv:
$ pip list
Package Version
---------- ------------
pip 21.3.1
pyfiglet 0.8.post1
setuptools 41.2.0
vtk 9.0.20200612
Any hints for fixing this problem? Also see here [2-3] for relevant discussions.
[1]
https://github.com/pdfarranger/pdfarranger
[2]
https://github.com/pdfarranger/pdfarranger/issues/604
[3]
https://discuss.python.org/t/modulenotfounderror-no-module-named-distutilsextra/12834
Regards,
HZ
Marco Sulla
unread,
Jan 2, 2022, 5:15:53 PM
1/2/22
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
https://askubuntu.com/questions/584857/distutilsextra-problem
> --
>
https://mail.python.org/mailman/listinfo/python-list
hongy...@gmail.com
unread,
Jan 2, 2022, 7:30:47 PM
1/2/22
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On Monday, January 3, 2022 at 6:15:53 AM UTC+8, Marco Sulla wrote:
>
https://askubuntu.com/questions/584857/distutilsextra-problem
I found its Git repository using the following method:
$ for i in python-distutils-extra python3-distutils-extra; do apt showsrc $i |& grep git; done | sort -u
Vcs-Git:
https://salsa.debian.org/python-team/modules/python-distutils-extra.git
Therefore, for developers, the more robust and reasonable pdfarranger installation steps should be as follows:
#
https://github.com/pdfarranger/pdfarranger#install-from-source
$ sudo apt install gir1.2-gtk-3.0 gir1.2-poppler-0.18
$ git clone
https://github.com/pdfarranger/pdfarranger.git
pdfarranger.git
$ cd pdfarranger.git
$ pyenv shell 3.8.3
$ pyenv virtualenv --system-site-packages pdfarranger
$ pyenv shell pdfarranger
$ pip install -U pip
$ pip install git+
https://salsa.debian.org/python-team/modules/python-distutils-extra.git
$ pip install img2pdf pygobject
$ pip install .
Another note: the python-distutils-extra or python3-distutils-extra is only a dependency in the installation process, once the package is installed, it will no longer be needed.
For a more detailed discussion, please see here [1].
[1]
https://github.com/pdfarranger/pdfarranger/issues/604#issuecomment-1003801361
Regards,
HZ
0 new messages