Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934224 - dev-embedded/libftdi-1.5-r6: ModuleNotFoundError: No module named 'distutils'
Summary: dev-embedded/libftdi-1.5-r6: ModuleNotFoundError: No module named 'distutils'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-06-14 03:48 UTC by Michael Moon
Modified: 2024-06-14 03:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (libftdi-1.5-r6_build-log.txt,7.58 KB, text/plain)
2024-06-14 03:48 UTC, Michael Moon
Details
emerge --info (emerge-info.txt,12.50 KB, text/plain)
2024-06-14 03:48 UTC, Michael Moon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Moon 2024-06-14 03:48:09 UTC
Created attachment 895787 [details]
build.log

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'
CMake Error at python/CMakeLists.txt:49 (get_filename_component):
  get_filename_component called with incorrect number of arguments


-- Configuring incomplete, errors occurred!

Missing dep or something? dev-python/python-distutils-extra::gentoo perhaps?
Comment 1 Michael Moon 2024-06-14 03:48:26 UTC
Created attachment 895788 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 03:53:08 UTC
(In reply to Michael Moon from comment #0)
> Created attachment 895787 [details]
> build.log
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ModuleNotFoundError: No module named 'distutils'
> CMake Error at python/CMakeLists.txt:49 (get_filename_component):
>   get_filename_component called with incorrect number of arguments
> 
> 
> -- Configuring incomplete, errors occurred!
> 
> Missing dep or something? dev-python/python-distutils-extra::gentoo perhaps?

setuptools (for >=py3.12), but we can backport http://developer.intra2net.com/git/?p=libftdi;a=commit;h=abd19b721f7e9b4d514ed319ece173ebc7b1ea72 instead.
Comment 3 Larry the Git Cow gentoo-dev 2024-06-14 03:57:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=438dbc8c314630574457430a3e0e3aa44273a9b7

commit 438dbc8c314630574457430a3e0e3aa44273a9b7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-14 03:55:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-14 03:55:12 +0000

    dev-embedded/libftdi: patch out distutils use
    
    Closes: https://bugs.gentoo.org/934224
    Bug: https://bugs.gentoo.org/929394
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-embedded/libftdi/files/libftdi-1.5-py312.patch | 25 ++++++++++++++++++++++
 dev-embedded/libftdi/libftdi-1.5-r6.ebuild         |  4 ++++
 2 files changed, 29 insertions(+)