Nuitka/Nuitka

Nuitka 2.6 not prompting for download of gcc compiler

Open

#3 309 ouverte le 23 janv. 2025

Voir sur GitHub
 (3 commentaires) (0 réactions) (1 assigné)Python (565 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (10 351 stars)
Métriques de merge PR
 (Merge moyen 5j 12h) (6 PRs mergées en 30 j)

Description

I've tried installing nuitka on a new windows installation. Instead of prompting me to download the gcc compiler it directly printed "FATAL: Only this specific gcc is supported with Nuitka. Make sure to allow downloading it when prompted." After specifically installing nuitka 2.5.9 it prompted me just fine. So this looks like a regression to me.

2.6
Commercial: None
Python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Program Files\Python311\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 11
FATAL: Only this specific gcc is supported with Nuitka. Make sure to allow downloading it when prompted.

I used pip to install nuitka.

Underneath is the log of the attempted install of nuitka 2.6 where I did not get prompted for install of the compiler:

PS C:\Users\GPUVM> python -m pip install nuitka
Defaulting to user installation because normal site-packages is not writeable
Collecting nuitka
  Downloading Nuitka-2.6.tar.gz (3.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.9/3.9 MB 9.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting ordered-set>=4.1.0 (from nuitka)
  Downloading ordered_set-4.1.0-py3-none-any.whl.metadata (5.3 kB)
Collecting zstandard>=0.15 (from nuitka)
  Downloading zstandard-0.23.0-cp311-cp311-win_amd64.whl.metadata (3.0 kB)
Downloading ordered_set-4.1.0-py3-none-any.whl (7.6 kB)
Downloading zstandard-0.23.0-cp311-cp311-win_amd64.whl (495 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 495.4/495.4 kB 15.7 MB/s eta 0:00:00
Building wheels for collected packages: nuitka
  Building wheel for nuitka (pyproject.toml) ... done
  Created wheel for nuitka: filename=Nuitka-2.6-cp311-cp311-win_amd64.whl size=3566843 sha256=964a8cb420757f0261aa37baa71fc5d93b3b4f3f114fcfdd1081b5c544347e15
  Stored in directory: c:\users\gpuvm\appdata\local\pip\cache\wheels\f2\5d\85\e6390d2f2238db127602704ddf849f786ccc87e0376929522e
Successfully built nuitka
Installing collected packages: zstandard, ordered-set, nuitka
Successfully installed nuitka-2.6 ordered-set-4.1.0 zstandard-0.23.0

[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Users\GPUVM> python -m nuitka --version
2.6
Commercial: None
Python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Program Files\Python311\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 11
FATAL: Only this specific gcc is supported with Nuitka. Make sure to allow downloading it when prompted.
PS C:\Users\GPUVM> python -m nuitka --version
2.6
Commercial: None
Python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Program Files\Python311\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 11
FATAL: Only this specific gcc is supported with Nuitka. Make sure to allow downloading it when prompted.

Here is the log of installing nuitka 2.5.9, where i was prompted as expected.

PS C:\Users\GPUVM> python -m pip install nuitka==2.5.9
Defaulting to user installation because normal site-packages is not writeable
Collecting nuitka==2.5.9
  Downloading Nuitka-2.5.9.tar.gz (3.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 16.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: ordered-set>=4.1.0 in c:\users\gpuvm\appdata\roaming\python\python311\site-packages (from nuitka==2.5.9) (4.1.0)
Requirement already satisfied: zstandard>=0.15 in c:\users\gpuvm\appdata\roaming\python\python311\site-packages (from nuitka==2.5.9) (0.23.0)
Building wheels for collected packages: nuitka
  Building wheel for nuitka (pyproject.toml) ... done
  Created wheel for nuitka: filename=Nuitka-2.5.9-cp311-cp311-win_amd64.whl size=3480022 sha256=af8fdd334849e59cf41756cb5d7e1e59be3a1d662877679f68a2bf275d110d75
  Stored in directory: c:\users\gpuvm\appdata\local\pip\cache\wheels\09\5e\de\2559d130da9523ea7b3710ae61e8d722697a99480485aa5d89
Successfully built nuitka
Installing collected packages: nuitka
Successfully installed nuitka-2.5.9

[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Users\GPUVM> python -m nuitka --version
2.5.9
Commercial: None
Python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Program Files\Python311\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 11
Nuitka will use gcc from MinGW64 of winlibs to compile on Windows.

Is it OK to download and put it in 'C:\Users\GPUVM\AppData\Local\Nuitka\Nuitka\Cache\DOWNLO~1\gcc\x86_64\14.2.0posix-19.1.1-12.0.0-msvcrt-r2'.

Fully automatic, cached. Proceed and download? [Yes]/No : Yes
Nuitka: Downloading
Nuitka: 'https://github.com/brechtsanders/winlibs_mingw/releases/download/14.2.0posix-19.1.1-12.0.0-msvcrt-r2/winlibs-x86_64-posix-seh-gcc-14.2.0-llvm-19.1.1-mingw-w64msvcrt-12.0.0-r2.zip'.
Nuitka: Extracting to 'C:\Users\GPUVM\AppData\Local\Nuitka\Nuitka\Cache\DOWNLO~1\gcc\x86_64\14.2.0posix-19.1.1-12.0.0-msvcrt-r2\mingw64\bin\gcc.exe'
Version C compiler: ~\AppData\Local\Nuitka\Nuitka\Cache\DOWNLO~1\gcc\x86_64\14.2.0posix-19.1.1-12.0.0-msvcrt-r2\mingw64\bin\gcc.exe (gcc 14.2.0).
PS C:\Users\GPUVM> python -m nuitka --version
2.5.9
Commercial: None
Python: 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Program Files\Python311\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 11
Version C compiler: ~\AppData\Local\Nuitka\Nuitka\Cache\DOWNLO~1\gcc\x86_64\14.2.0posix-19.1.1-12.0.0-msvcrt-r2\mingw64\bin\gcc.exe (gcc 14.2.0).

Guide contributeur