-
Notifications
You must be signed in to change notification settings - Fork 8
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
Certain PyObjC frameworks are not properly imported #22
Comments
This might be related to PyObjC's lazy loader which does some things that can confuse import lib. I'll have to debug to know for sure. |
This does seem to correlate with use of |
My current plan is to fix this on both ends (if possible):
I'm saying this without having tried to reproduce this yet, should have some time tonight. |
This is what I get:
This is with python 3.10 installed from python.org, modulegraph2 is the tip of the tree and pyobjc was installed using pip. With python3.11 modulegraph2 hits a false assertion, haven't tried to debug that yet. UPDATE: just committed a fix for that, unrelated to this issue. |
Looks like homebrew is relevant here as well. Did you install pyobjc through homebrew as well? |
I did reproduce this using Homebrew, but this was also affecting an internal deployment of PyObjC that does not use Homebrew (something resembling a venv). I think the important factor is that a wheel is in use and on the Python path. |
What do you mean with "a wheel is in use and on the Python path"? I finally got around to installing homebrew in a VM and cannot reproduce the issue there. What I did:
I get the following output:
This looks correct to me. |
We've been testing migrating from
modulegraph
tomodulegraph2
for the build tool that produces our embedded Python package, and we stumbled across what seems to be a regression frommodulegraph
. It seems that in some cases, the modules within certain PyObjC frameworks are not fully discovered. This can be reproduced with the latest version ofmodulegraph2
.Here's an example with the
Quartz
framework:pyobjc-framework-Quartz
andmodulegraph2
.There are no references to its source modules in the report, or of its extensions (e.g.
Quartz/CoreGraphics/_inlines.abi3.so
). This issue does not affectmodulegraph
.The text was updated successfully, but these errors were encountered: