Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No module named 'distutils'
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
g0rg0n
Tux's lil' helper
Tux's lil' helper


Joined: 18 Feb 2006
Posts: 90

PostPosted: Sat Jun 15, 2024 4:50 am    Post subject: No module named 'distutils' Reply with quote

[Administrator note: this post, and the first response, were originally attached to the solved topic SOLVED python 3.12 fontforge No module named 'distutils'. As logrusx notes, this is not appropriate, so I split it out. -Hu]

dev-libs/gobject-introspection-1.78.1 also fails due to missing distutils.

Code:
  File "/var/tmp/portage/dev-libs/gobject-introspection-1.78.1/work/gobject-introspection-1.78.1-build/giscanner/utils.py", line 385, in <module>
    import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'


Code:

❯ emerge -vp setuptools

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.45 s (backtrack: 0/20).

[ebuild   R    ] dev-python/setuptools-70.0.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 python3_12* -pypy3 -python3_10 -python3_13" 0 KiB
[ebuild   R    ] dev-python/setuptools-scm-8.1.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 python3_12* -pypy3 -python3_10 -python3_13" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB

~ took 4s
❯ python --version
Python 3.12.3



thought emerge -uDU @world would take care of updated python targets.. running emerge -D python first now
_________________
nicewarm.coffee
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1757

PostPosted: Sat Jun 15, 2024 5:44 am    Post subject: Reply with quote

g0rg0n wrote:
dev-libs/gobject-introspection-1.78.1 also fails due to missing distutils.



File a bug. It's not a good idea to post to other threads, it convollutes the thread as well as decreases the chance your problem will get the attention it needs.
Last but not least, it's not a good manner.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21924

PostPosted: Sat Jun 15, 2024 1:44 pm    Post subject: Reply with quote

To extend on what logrusx said, posting to a SOLVED thread is a particularly poor choice, because some people will not read a thread that has been SOLVED, and so will miss your post completely.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum