196 questions
1
vote
1
answer
85
views
Nuitka & PyQt6 specifying imports to reducing exe size (currently ~1gb)
I'm working on a project to develop a simple app, based on a Python script for data analysis, using PyQt6 to format the app, and using Nuitka to create an exe. (Yes, I've tried using PyInstaller. My ...
0
votes
1
answer
134
views
How to make nuitka generate the same binary on GitHub Actions as locally?
I was trying to compile my python program to the smallest executable and I was pleased with this
nuitka --python-flag=-OO --onefile updater.py
As it produced this on my machine
-rwxrwxrwx 1 filip ...
1
vote
0
answers
52
views
Getting "ImportError: DLL load failed" after building an .exe in Python
I use Python 3.10 and OpenCV, building from sources with CUDA enabled and it worked. Then I try to build the .exe using Pyinstaller this also worked.
Problem:
When I try to run the EXE file, the ...
0
votes
0
answers
157
views
python - nuitka: Using --onefile together with --windows-onefile-tempdir-spec
could anybody please help me with this. (Windows 10 environment)
I am trying to compile a python program (hello.py) with the --onefile option.
python -m nuitka --onefile hello.py
This works very ...
0
votes
0
answers
94
views
How do i compile a python code that uses pywebview into a single-file using nuitka
When i compile my code using Nuika using this command:
nuitka --onefile --enable-plugin=tk-inter --windows-console-mode=disable ^
--include-data-files=bg.jpg=bg.jpg ^
--include-data-files=credentials....
0
votes
0
answers
98
views
Nuitka onefile can't find directory for dynamic extension loading
I'm working on a Pycord bot project, and I'm using Nuitka to compile it. My goal is to compile the main script as a single file (--onefile) for distribution, but still be able to dynamically load ...
1
vote
1
answer
395
views
How can I use Nuitka to import all script's modules?
I try to turn a .py file into a .bin file with Nuitka.
Since it have to work on machine without python installed, I use the --standalone option that comes with --follow-imports and --python-flag=...
0
votes
0
answers
527
views
Can nuitka/cython programs be reversed technically
As is known to all, Nuitka and Cython compiles Python bytecodes to C/C++.
Technically, can Python applications nuitka/cython programs be reversed?
1
vote
1
answer
68
views
VSCode Intellisense does not suggest base class methods after installing Nuitka-compiled package with stubgen-generated .pyi files
I'm distributing a Python library compiled with Nuitka and generating .pyi stub files using:
stubgen --parse-only --include-docstrings <my_project> -o .
After compiling the project with Nuitka ...
1
vote
0
answers
161
views
How to preserve autocompletion and docstrings when building a .whl with Nuitka?
I'm building a .whl package for a Python library using Nuitka.
To generate the wheel, I use the following command:
python setup.py bdist_nuitka
The wheel is created successfully, and after installing ...
2
votes
1
answer
194
views
Can I customize compile options in Nuitka?
Can I customize the compile options for GCC in Nuitka (e.g. -O2, -static)?
Update: I read the user manual but found nothing. I also checked the command line options of nuitka and found --generate-c-...
1
vote
2
answers
384
views
Does Nuitka onefile mode displays my python code in tracebacks?
Here is an example code:
while True: # here is a comment
pass
Here is my Python and Nuitka version:
D:\test>py -m nuitka --version
2.6.8
Commercial: None
Python: 3.8.2 (tags/v3.8.2:7b3ab59, ...
0
votes
1
answer
118
views
Compiling multiple .py files into one .pyd
I have a project written in Python and consisting of several files. I need to compile all the files into a single .pyd file.
I used Cython, but it compiled each .py file into a separate .pyd file.
Is ...
0
votes
0
answers
22
views
Nuitka cant unset WIN 32 build option : CPPDEFINE for _WIN32_WINNT=0x0601
Running W10 pro X64, python 3.12.3, nuitka 2.6.7
Recently in a hurry I tried many things to build a WIN32 exe using nuitka, never successful, even though I was previously building x64 exe's without ...
0
votes
1
answer
44
views
Not able to use Smartsheet python api when packaging project using Nuitka
I wrote a python project that automates tasks and makes use of the smartsheet api but when I package this project into an executable with nuitka I get the error:
ImportError! Could not load api or ...