Skip to content

Running under Debian Linux - python37 not found #28

Closed

Description

@alishchytovych

I'm trying to run the sample program under the Debian Linux and get the error:

Unhandled exception. System.DllNotFoundException: Unable to load shared library 'python37' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libpython37: cannot open shared object file: No such file or directory
   at Python.Runtime.Runtime.Py_IsInitialized()

Also I've checked that in the ~/.local/share I have python3.7 but this is Windows distribution. Debian itself has python3.7 installed as well.

Is it possible to have Linux python distribution included into Python.Included?

Activity

  1. henon commented on May 11, 2021

    @henon
    Owner

    yes. others have done so successfully. you'll find a closed thread on linux / mac support which might give you hints. anyhow, I am not a linux user. I just merged the linux support others have donated and taken their word that it works. you might want to look under the hood. the code is not complicated and you'll probably quickly find why it doesn't work for you.

    PS: you'll have to use the installer part of python.included in namespace Python.Deployment and install a linux python distri i.e. via download source or by manually packing it into the assembly. There are a few examples showing how to use the various install routines.

  2. henon commented on May 13, 2021

    @henon
    Owner

    Can you send a Pull Request with the change? I'll merge and update the nuget.

    Edit: Whoops, I think you deleted your reply.

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