New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile standalone, incorrect __file__ variable #2813
Comments
Without an example code there is nothing to do here, it certainly isn't universally true, the file value is usually correct. |
Thank you for the answer!
file has wrong value and function return None |
That's an indication of missing data files. Do you have like a minimal example of If you are available to do a PR, this can be fixed by adding to the yaml configuration, described here: https://nuitka.net/doc/nuitka-package-config.html And here is more of a walk through style post: https://nuitka.net/posts/nuitka-package-config-kickoff.html Here are a example PRs for other packages: |
Ok, thank you! |
https://nuitka.net/user-documentation/nuitka-package-config.html the website has been going some changes so a few links might not be working properly |
Yeah, it was moved, I added a redirect, breaking old links is not good. |
With no example and no improvements coming forth, lets consider this one as invalid. |
Hi all,
I use nuitka with follow command:
python -m nuitka --standalone --follow-imports main.py
I use nuitka:
2.1.5
Commercial: None
Python: 3.11.8 | packaged by conda-forge | (main, Feb 16 2024, 20:40:50) [MSC v.1937 64 bit (AMD64)]
Flavor: Anaconda Python
Executable: ..\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
It compiled, after that I run .exe file, when I send a request I have an error, in the compiled code a variable
__file__ is None
Could you provide to me some information, how to fix this, please?
The text was updated successfully, but these errors were encountered: