Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Config-less CoreCLR and improved runtime load message#1942

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 3 commits intopythonnet:releasefromfilmor:configless-coreclr
Sep 17, 2022

Conversation

filmor
Copy link
Member

@filmorfilmor commentedSep 16, 2022
edited
Loading

What does this implement/fix? Explain your changes.

  • Bump clr-loader dependency to 0.2.0 and adjust interface, allows to load a .NET Core Python.NET by just settingPYTHONNET_RUNTIME=coreclr orfrom pythonnet import set_runtime; set_runtime("coreclr")
  • Improve error message if the runtime fails to load

Does this close any currently open issues?

#1868

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Ensure you have signed the.NET Foundation CLA
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

@filmorfilmor changed the base branch frommaster toreleaseSeptember 16, 2022 19:35
@filmorfilmor closed thisSep 16, 2022
@filmorfilmor reopened thisSep 16, 2022
@filmor
Copy link
MemberAuthor

filmor commentedSep 16, 2022
edited
Loading

@lostmsu Do you have any idea why this one doesn't run the CI?

/edit: Sure, now it does :)

@lostmsu
Copy link
Member

Can you point to the corresponding change inclr_loader?

@lostmsu
Copy link
Member

I take it it is this one:pythonnet/clr-loader#31

@filmorfilmorforce-pushed theconfigless-coreclr branch 2 times, most recently from25db74b tocc81b31CompareSeptember 16, 2022 21:49
@filmor
Copy link
MemberAuthor

Meh, I'll have to test it tomorrow on a Windows machine, not really sure what I broke there (and why it works for the clr-loader CI).

@lostmsu
Copy link
Member

Have you seen the cause of the exception?

OSError: cannot load library 'c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\clr_loader\ffi\dlls\amd64\ClrLoader.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\clr_loader\ffi\dlls\amd64\ClrLoader.dll'

The above exception was the direct cause of the following exception:
...

@filmor
Copy link
MemberAuthor

Have you seen the cause of the exception?

OSError: cannot load library 'c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\clr_loader\ffi\dlls\amd64\ClrLoader.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\clr_loader\ffi\dlls\amd64\ClrLoader.dll'
The above exception was the direct cause of the following exception:
...

Nope, didn't see that one. Then I must have broken the wheel building somehow. I can see that the wheel does not include the file at all right now. So, 0.2.3 it will be ;)

@filmorfilmor merged commit43769f5 intopythonnet:releaseSep 17, 2022
@filmorfilmor deleted the configless-coreclr branchSeptember 17, 2022 08:52
@DareDevilDenis
Copy link

Hello. Does this change cause the following issue:pythonnet/clr-loader#35
See question:#1951

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@filmor@lostmsu@DareDevilDenis

[8]ページ先頭

©2009-2025 Movatter.jp