# Fatal Python error: \_Py\_HashRandomization\_Init

**URL:** <https://travis-ci.community/t/fatal-python-error-py-hashrandomization-init/9615>\
**Category:** Windows\
**Tags:** python\
**Created:** [August 14, 2020, 10:13am UTC](https://travis-ci.community/t/fatal-python-error-py-hashrandomization-init/9615 "2020-08-14T10:13:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chipaca](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/chipaca/32/3839_2.png) [@chipaca](https://travis-ci.community/u/chipaca)\
**Post date:** [August 14, 2020, 10:13am UTC](https://travis-ci.community/t/fatal-python-error-py-hashrandomization-init/9615/1 "2020-08-14T10:13:42Z")

</div>

Hello!

This might be a silly one; I have exactly zero Windows dev experience so pointers to documentation or the like that I should know about for this are more than welcome.

I’m trying to get our project to run its unit tests on Windows (it already passes on linux and macos). Running the suite fails for a number of platform-specific things (this I expected, and is what I need to fix myself), but the part that worries me is that the log is filled with

```
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
Python runtime state: preinitialized

```

the bit of my `.travis.yml` for windows is

```auto
        - os: windows
          language: shell
          before_install:
            - choco install python --version 3.8
            - python -m pip install --upgrade pip
          env: PATH=/c/Python38:/c/Python38/Scripts:$PATH

```

[here](https://travis-ci.org/github/canonical/operator/jobs/717866876) is one such run, with `PYTHONVERBOSE=1` in case that sheds any light.

any pointers?

thanks!
