Skip to content

Packaging python app using the packaging command raising an error on windows 11 #12

Description

@russell-mrr

When using the packaging command:
"dart run serious_python:main package app/src"

There is an error in windows as following:
Python has already downloaded to C:\Users\itsru\AppData\Local\Temp\hostpython3.10
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
Python runtime state: preinitialized

I did these stuff correctlly:

  • Creating a main.py file inside the "src" of "app" folder.
  • Put "app" in the root.
  • Call the command, then the error raise.

Screenshot 2023-08-05 175546

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions