Skip to content

Use sys.meta_path instead of our old-style import hook #727

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
filmor opened this issue Aug 30, 2018 · 1 comment
Closed

Use sys.meta_path instead of our old-style import hook #727

filmor opened this issue Aug 30, 2018 · 1 comment
Milestone

Comments

@filmor
Copy link
Member

filmor commented Aug 30, 2018

Python.NET as of now overrides __import__ directly which works, but has multiple nasty issues. Implementing a PEP302 compatible loader would allow us to keep __import__ alone, solving at least #559, #547. There's probably more issues due to this.

@ramik91
Copy link

ramik91 commented Mar 22, 2020

@filmor @denfromufa any update on this? I run into an issue using Kivy lib with pythonnet. Wondering if its worth trying to switch to different gui lib or moving to iron-python instead.

Update:

So I tried using tinker instead of kivy and it seems to load without problems on the first glance by just doing simple

from tinker import *

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