Skip to content
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

WARNING message from PyInstaller about ignoring AppKit.framework/AppKit imported from _mac_detect.py #40

Open
Gdalik opened this issue Mar 11, 2024 · 1 comment

Comments

@Gdalik
Copy link

Gdalik commented Mar 11, 2024

Hi!

I'm working on the Dark Mode support for my OSS app.
When building with PyInstaller, the following WARNING message appears:

WARNING: Ignoring AppKit.framework/AppKit imported from [project folder]/venv/lib/python3.10/site-packages/darkdetect/_mac_detect.py - only basenames are supported with ctypes imports!

Everything seems to work fine though...

Thanks!

@Gdalik
Copy link
Author

Gdalik commented Mar 11, 2024

UPD:
when I change appkit = ctypes.cdll.LoadLibrary('AppKit.framework/AppKit') to appkit = ctypes.cdll.LoadLibrary('AppKit.framework'), this WARNING message disappears...

I have created a pull request

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

1 participant