Command line option --python-flag=static_hashes doesn't work
See original GitHub issue-
Nuitka version, full Python version and Platform (Windows, OSX, Linux …)
0.6.7 Python: 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52) OS: Darwin Arch: x86_64
-
How did you install Nuitka and Python (pip, anaconda, deb, rpm, from source, what is a virtualenv …), this is very important usually.
pip
-
If possible please supply a Short, Self Contained, Correct, Example that demonstrates the issue i.e a small piece of code which reproduces the issue and can be run with out any other (or as few as possible) external dependencies.
$ cat main.py print(hash('hello')) $ python -m nuitka main.py --standalone --python-flag=use_hash_seed $ ./main.dist/main -9128780370465225756 $ ./main.dist/main -800855256429713425
These hash values should be the same. Setting PYTHONHASHSEED works:
$ PYTHONHASHSEED=1 ./main.dist/main 4134408098142180803 $ PYTHONHASHSEED=1 ./main.dist/main 4134408098142180803
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Python returns error, but Command Line doesn't
When I run this in cmd it works and outputs everything to the specified file. When I try running this with Python I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The release 0.6.8 was just made and contains the correction.
This is now on develop, and going to be part of the next release. Works on Windows too.