Jump to content
30960 posts in this topic

Recommended Posts

On 10/7/2025 at 6:37 PM, Max.1974 said:

 

Thanks my friend 

 

 

Hi my friend you can copy and use for everything as you wish ;) 

 

https://github.com/maxpicelli/Clover-Compiler-Builder 

 

curl -fsSL https://raw.githubusercontent.com/maxpicelli/Clover-Compiler-Builder/main/setup.sh | bash

 

 

Enjoy it 🇮🇱 

Error Here

Python reported: "No module named 'distutils.util"

  • Like 1

Actually I Really Don't See The Point Of Compiling A New

Version Of. Clover/Opencore Seeing As Tahoe Is The Last

Supported Intel OS IMHO

  • Like 2
5 minutes ago, STLVNUB said:

Error Here

Python reported: "No module named 'distutils.util"

 

Hi my friend, I recommend install Anaconda Python  with this Clover Builder or try use release 

 

You can download in git hub links 

 

 

https://github.com/maxpicelli/Clover-Compiler-Builder 

 

image.png.a7ba424638ef2d826261e61a0ef9d2a9.png

 

 

Or use Release works fine with Terminal 

 

curl -fsSL https://raw.githubusercontent.com/maxpicelli/Clover-Compiler-Builder/main/setup.sh | bash

 

https://github.com/maxpicelli/Clover-Compiler-Builder/releases/tag/Clover 

 

 

 

Here in Terminal works fine git clone but compile applications is better results for you hardware, but its not essential. 

 

 

 

 

 

 

  • Like 1
19 minutes ago, STLVNUB said:

Actually I Really Don't See The Point Of Compiling A New

Version Of. Clover/Opencore Seeing As Tahoe Is The Last

Supported Intel OS IMHO

 

Hi! I see you encountered the "No module named 'distutils.util'" error. This is a common issue with newer Python versions (3.12+). Here's what you can do:
🔧 Quick Fix (Recommended):
Download the updated version of the CloverCompilerBuilder - I just added automatic detection and fixing for this exact error
Run the app again - it will now automatically detect and fix the distutils issue

 

Automatic distutils.util error detection and fixing
Installs setuptools automatically when needed
Better Python compatibility handling
Clear status messages about what's being fixed

 

🐍 Python Version Recommendations:

For best compatibility:
Python 3.9.6 (Intel Macs) - most stable
Python 3.9.13 (ARM64 Macs) - most stable
Python 3.13.x - now with automatic fixes
📥 How to Update:
Download the latest version from the repository
Run ./setup.sh again
The app will be recreated with the new fixes
The script now automatically handles this error, so you shouldn't see it again! Let me know if you need any help.

 

 

Using Xcode 16.4 more stable and Tahoe 26.1 beta 2 

 

I show on this video: 

 

 

Spoiler

 

 

Edited by Max.1974
  • Like 4

⚠ distutils.util not found - this is common in Python 3.12+

ℹ Attempting to fix by installing setuptools...

⚠ Failed to install setuptools automatically

ℹ User may need to run: python3.13 -m pip install setuptools

  • Like 3
1 minute ago, STLVNUB said:

⚠ distutils.util not found - this is common in Python 3.12+

ℹ Attempting to fix by installing setuptools...

⚠ Failed to install setuptools automatically

ℹ User may need to run: python3.13 -m pip install setuptools

 

Im think the original repo fixing GCC 152 so need back use old code, so I will update  Clover Builder now back to v14 ;) im update git now 

image.thumb.png.8a7d9a799b5fc945d2538608994ab206.png

 

Its working with version v14 my friend I will update soon 

 

 

  • Like 3
2 minutes ago, STLVNUB said:

Anyway, Nice App, Not Really That Fussed In Compiling, Just Wanted To See How It Went

 

 

Very cool to compile with them, they make things a lot easier. Try the repository again with Clover Builder v14, if you’d like.

  • Like 3

Python reported: "No module named 'distutils.util"

 

make[1]: *** [test] Error 1

make: *** [Tests] Error 2

✘ BaseTools compilation failed

 

Don't appear to like me

that's on V14

Edited by STLVNUB
  • Like 3

 

I tested the same v14 twice, and it worked fine with GCC 152. The modification to the original repository is good. ;) 

 

 

27 minutes ago, STLVNUB said:

Python reported: "No module named 'distutils.util"

 

make[1]: *** [test] Error 1

make: *** [Tests] Error 2

✘ BaseTools compilation failed

 

Don't appear to like me

 

 

To resolve this error in Clover Compiler Builder, the person needs to install the setuptools package, since the distutils.utilmodule was removed from Python 3.12+.

Here are the steps to fix it:

Run the following command in the terminal:

python3.13 -m pip install setuptools

Or, depending on how Python is configured on your system:

python -m pip install setuptools

If the above command doesn't work

1. Check if pip is installed:

python3.13 -m ensurepip --upgrade

2. Try installing with administrator privileges (if needed):

 

* * * :  python3.13 -m pip install setuptools

 

3. User-level installation:

python3.13 -m pip install --user setuptools

Verification

After installing, you can verify it was installed correctly:

python3.13 -c "import setuptools; print(setuptools.__version__)"

Important Notes

  • distutils was deprecated and removed starting from Python 3.12
  • setuptools provides a compatible replacement
  • If you're using a virtual environment (venv/virtualenv), activate it before installing
  • On some systems, the command might be python instead of python3.13

After installing setuptools, try running Clover Compiler Builder again and the error should be resolved.

 

I recomende use Anaconda Python ;)  

 

https://repo.anaconda.com/archive/Anaconda3-2021.11-MacOSX-x86_64.pkg

 

Anaconda Python 3.9.6 still includes the full distutils module within the standard package — meaning:

 

👉 You won’t get any “No module named ‘distutils.util’” errors in this version.

 

 

💡 Why it works:

 

  • The removal of distutils only started from Python 3.12 onward.

  • Python 3.9.x (such as Anaconda’s 3.9.6) remains fully compatible with older projects like Clover / EDK2 / BaseTools.

  • It also works well with GCC 152 and make scripts.

 

 

 

 

Edited by Max.1974
  • Like 1
28 minutes ago, Max.1974 said:

python3.13 -m pip install setuptools

 

Last login: Thu Oct  9 04:23:20 on ttys018

(base) m4pro@Mac-mini-de-Christian ~ % python3.13 -m pip install setuptools

Requirement already satisfied: setuptools in /opt/anaconda3/lib/python3.13/site-packages (72.1.0)

(base) m4pro@Mac-mini-de-Christian ~ %

 

8 hours ago, chris1111 said:

GCC152 Is ready

Anyone want testing the Build

Thanks to All ✌️

rm -rf ~/src
mkdir -p ~/src
cd ~/src
git clone --branch GCC-152 https://github.com/CloverHackyColor/CloverBootloader.git
cd ~/src/CloverBootloader && ./buildme

 

 

7 hours ago, chris1111 said:

Ok now the branch is merge

You can build

 

 

Hi @chris1111 I will try GCC152 but I do not find any merge in master branch on Github. Sorry I don't understand. 

Edited by Matgen84
  • Like 2
9 hours ago, Matgen84 said:

 

 

Hi @chris1111 I will try GCC152 but I do not find any merge in master branch on Github. Sorry I don't understand. 

Yes its not merge Waiting for Slice Approve ✌️

If you want GCC152

you have to build the branch --GCC-152

 

14 hours ago, Max.1974 said:

image.png.a00fae2f6e96e884f69db71fafffc4d0.png:thumbsup_anim: image.png.b402e41bd23bf7a205d933fe35fa8008.png

Thanks my friend, works!!! :hyper:

You Got It :wink_anim: Thanks my freind  

Edited by chris1111
  • Thanks 2
15 hours ago, chris1111 said:

GCC152 Is ready

Anyone want testing the Build

Thanks to All ✌️

rm -rf ~/src
mkdir -p ~/src
cd ~/src
git clone --branch GCC-152 https://github.com/CloverHackyColor/CloverBootloader.git
cd ~/src/CloverBootloader && ./buildme

 

@chris1111 There you go, filled out

 

Spoiler

Screenshot-2025-10-09-alle-17-16-35.png

 

thanks

  • Like 3
  • Thanks 1
21 hours ago, chris1111 said:

GCC152 Is ready

Anyone want testing the Build

Thanks to All ✌️

rm -rf ~/src
mkdir -p ~/src
cd ~/src
git clone --branch GCC-152 https://github.com/CloverHackyColor/CloverBootloader.git
cd ~/src/CloverBootloader && ./buildme

 

Thanks chris1111! All tests have passed and all your changes have been included in my branch.

  • Like 3
20 hours ago, Max.1974 said:

 

I tested the same v14 twice, and it worked fine with GCC 152. The modification to the original repository is good. ;) 

 

 

 

 

To resolve this error in Clover Compiler Builder, the person needs to install the setuptools package, since the distutils.utilmodule was removed from Python 3.12+.

Here are the steps to fix it:

Run the following command in the terminal:

python3.13 -m pip install setuptools

Or, depending on how Python is configured on your system:

python -m pip install setuptools

If the above command doesn't work

1. Check if pip is installed:

python3.13 -m ensurepip --upgrade

2. Try installing with administrator privileges (if needed):

 

* * * :  python3.13 -m pip install setuptools

 

3. User-level installation:

python3.13 -m pip install --user setuptools

Verification

After installing, you can verify it was installed correctly:

python3.13 -c "import setuptools; print(setuptools.__version__)"

Important Notes

  • distutils was deprecated and removed starting from Python 3.12
  • setuptools provides a compatible replacement
  • If you're using a virtual environment (venv/virtualenv), activate it before installing
  • On some systems, the command might be python instead of python3.13

After installing setuptools, try running Clover Compiler Builder again and the error should be resolved.

 

I recomende use Anaconda Python ;)  

 

https://repo.anaconda.com/archive/Anaconda3-2021.11-MacOSX-x86_64.pkg

 

Anaconda Python 3.9.6 still includes the full distutils module within the standard package — meaning:

 

👉 You won’t get any “No module named ‘distutils.util’” errors in this version.

 

 

💡 Why it works:

 

  • The removal of distutils only started from Python 3.12 onward.

  • Python 3.9.x (such as Anaconda’s 3.9.6) remains fully compatible with older projects like Clover / EDK2 / BaseTools.

  • It also works well with GCC 152 and make scripts.

 

 

 

 

Password:

WARNING: The directory '/Users/Library/Caches/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.

error: externally-managed-environment

 

× This environment is externally managed

╰─> To install Python packages system-wide, try brew install

    xyz, where xyz is the package you are trying to

    install.

    

    If you wish to install a Python library that isn't in Homebrew,

    use a virtual environment:

    

    python3 -m venv path/to/venv

    source path/to/venv/bin/activate

    python3 -m pip install xyz

    

    If you wish to install a Python application that isn't in Homebrew,

    it may be easiest to use 'pipx install xyz', which will manage a

    virtual environment for you. You can install pipx with

    

    brew install pipx

    

    You may restore the old behavior of pip by passing

    the '--break-system-packages' flag to pip, or by adding

    'break-system-packages = true' to your pip.conf file. The latter

    will permanently disable this error.

    

    If you disable this error, we STRONGLY recommend that you additionally

    pass the '--user' flag to pip, or set 'user = true' in your pip.conf

    file. Failure to do this can result in a broken Homebrew installation.

    

    Read more about this behavior here: <https://peps.python.org/pep-0668/>

 

note: If you belie

Edited by STLVNUB
  • Like 2
56 minutes ago, STLVNUB said:

@Max.1974

Thanks For Your Help, BUT

I'll Stick With What I've Got, It Does The Job

Thanks for feedback my friend, I think command provided by Chris1111  will work too!! God bless you!! 

Clover direct from Action or GitHub release works awesome too!! ;)  

If you wish could be useful try this

 

brew install pipx
pipx ensurepath
pipx install httpie

More informations about Python you can find here: 

 

https://peps.python.org/pep-0668/ 

 

 

Edited by Max.1974
  • Like 1
×
×
  • Create New...