8000 Does pythonnet work with .NET Core · Issue #1178 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Does pythonnet work with .NET Core #1178

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
jeffzi19 opened this issue Jul 6, 2020 · 6 comments
Closed

Does pythonnet work with .NET Core #1178

jeffzi19 opened this issue Jul 6, 2020 · 6 comments

Comments

@jeffzi19
Copy link
jeffzi19 commented Jul 6, 2020

I'm developing a platform that uses .NET as a "backend" and python as the front-end user driven language. Users will write python scripts that will access a handful of objects written in .NET.

This works fine on windows and with .NET framework compiled binaries. I can get the .NET binaries to compile in .NET Core and they're running fine on linux.

What I cannot do is get pythonnet to load .NET libraries written for .NET Core. In reading through the various posts I can't determine if this is something that is supported or should work. I don't have a specific tie to a version of python or pythonnnet. At the moment I'm using python 3.6.7 and just updated to the latest pythonnet (2.5.1).

When I make a normal console app using .NET Core and try and import I'm getting the following error:

Traceback (most recent call last):
File "test.py", line 10, in
from LinuxNetCoreTest import *
ModuleNotFoundError: No module named 'LinuxNetCoreTest'

when running everything the same but using a .NET Framework compiled binary this is working fine. I've tried this with and without clr.AddReference - neither are working.

At this point I just need to know if this is possible or if I need to look at a completely different path to solve this problem.

Thanks in advance.

@lostmsu
Copy link
Member
lostmsu commented Jul 6, 2020

The issue about .NET Core support is actually pinned at the top.

@lostmsu lostmsu closed this as completed Jul 6, 2020
@jeffzi19
Copy link
Author
jeffzi19 commented Jul 7, 2020

Thanks for the link - after posting this I did see that and was wondering if that was the official word / issue to track.

That said - what do you mean by "pinned at the top"? The top of what?

@lostmsu
Copy link
Member
lostmsu commented Jul 7, 2020

@jeffzi19 when you got to https://github.com/pythonnet/pythonnet/issues , it is pinned above the search.

Actually, I think this GitHub feature does not work as intended. I never paid attention to them to be honest 😀

@jeffzi19
Copy link
Author
jeffzi19 commented Jul 7, 2020

HA - I see it now. Thanks - I figured I was missing something.

Thanks for the link and the heads-up on where to find hot issues! Take care.

@iamtorchstack
Copy link

It would be nice to know what the answer was though. If you don''t mind posting ti here. We would be glad.

@filmor
Copy link
Member
filmor commented Jul 12, 2022

@torch016 Please stop necro-posting or you will be banned from commenting here for a while. Either you actually start reading the existing information (I gave you two links on another issue you commented on) or you will have to wait for official documentation.

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

4 participants
0