question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, May 11, 2020

The release 0.6.8 was just made and contains the correction.

1reaction
kayhayencommented, Feb 27, 2020

This is now on develop, and going to be part of the next release. Works on Windows too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found