Skip to content

Ubuntu env #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Oceania2018 opened this issue Jun 27, 2019 · 10 comments
Closed

Ubuntu env #5

Oceania2018 opened this issue Jun 27, 2019 · 10 comments
Assignees

Comments

@Oceania2018
Copy link
Member

Can't run in Ubuntu.

An unhandled exception of type 'System.DllNotFoundException' occurred in Python.Runtime.NETStandard.dll: 'Unable to load shared library 'python36' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libpython36: cannot open shared object file: No such file or directory'

Related issue #2.

@Oceania2018
Copy link
Member Author

Just run it successfully. make sure the pythonnet_standard is compiled with following condition:
pythonnet/src/runtime/Python.Runtime.csproj
TRACE;DEBUG;PYTHON3;PYTHON36;UCS4;MONO_LINUX;PYTHON_WITH_PYMALLOC

@Oceania2018
Copy link
Member Author

@henon Could you make a corss-platform NuGet package for pythonnet_standard ? https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-multiplatform-libraries/single-codebase

@henon
Copy link
Contributor

henon commented Jul 1, 2019

awesome, please try the nuget once it is published: https://www.nuget.org/packages/Python.Runtime.Mono/3.6.0

@henon
Copy link
Contributor

henon commented Jul 1, 2019

@Oceania2018
Copy link
Member Author

Oceania2018 commented Jul 1, 2019

It works, thanks.

@henon Is it possible combine them in one package ?

@henon
Copy link
Contributor

henon commented Jul 1, 2019

why?

epignatelli referenced this issue in BHoM/Numpy_Toolkit Nov 21, 2019
MergeNumpy_Toolkit and Numpy.Net to simplify the development procedures
@musa-atlihan
Copy link

I am trying to run Numpy.Net with Anaconda. I had the same issue, updated the LD_LIBRARY_PATH to the conda env solved this issue for me but now I am getting undefined symbol: _PyObject_NextNotImplemented error. Which part I am doing wrong? posted the details here https://stackoverflow.com/questions/61101282/getting-undefined-symbol-pyobject-nextnotimplemented-error-when-trying-to-ru

@henon
Copy link
Contributor

henon commented Apr 8, 2020

I don't know. To me it looks like a problem with pythonnet

@musa-atlihan
Copy link

I didn't install pythonnet. I suppose I need to, right? What is the correct way of doing it via Anaconda env?

@henon
Copy link
Contributor

henon commented Apr 8, 2020

With pythonnet I mean this (my .NET Standard version of it):
https://www.nuget.org/packages/Python.Runtime.Mono

With Anaconda you should use this:
https://www.nuget.org/packages/Numpy.Bare.Mono

But I have never had time to try Numpy.Bare with Anaconda on Linux so you'll have to do trial and error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants