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

Pyinstaller cannot import module #181

Open
hubernikus opened this issue Dec 13, 2023 · 5 comments
Open

Pyinstaller cannot import module #181

hubernikus opened this issue Dec 13, 2023 · 5 comments

Comments

@hubernikus
Copy link

hubernikus commented Dec 13, 2023

When trying to create an executable file including the freetype library, I get following error:

WARNING: discover_hook_directories: Failed to process hook entry point 'EntryPoint(name='hook-dirs', value='freetype.__pyinstaller:get_hook_dirs', group='pyinstaller40')': ModuleNotFoundError: No module named 'freetype.__pyinstaller'

I saw that in the setup.py this entry-point hook is specifically defined to

    entry_points={
        "pyinstaller40": [
            "hook-dirs = freetype.__pyinstaller:get_hook_dirs",
            "tests = freetype.__pyinstaller:get_test_dirs",
        ],

Could this cause that issue? And how can I resolve it?

I'm using

  • PyInstaller 6.3.0
  • freetype-py 2.4.0
@HinTak
Copy link
Collaborator

HinTak commented Dec 13, 2023

It might be good for you to review #180

@hubernikus
Copy link
Author

Thanks for pointing out. As it's already discussed there, I'll close this issue.

@HinTak
Copy link
Collaborator

HinTak commented Dec 15, 2023

@hubernikus I meant you could help test/improve that pull, which seems to have a number of issues and isn't going to be merged in its current state.

Cc @Korijn

@HinTak HinTak reopened this Dec 15, 2023
@Korijn
Copy link
Contributor

Korijn commented Dec 15, 2023

Thank you for pinging me, I was not aware of the issue and work to address it in #180. I just took some time to review it carefully. Hope we can land the fix soon!

@anthrotype
Copy link
Collaborator

with #180 merged, we now need a new stable release for this to be fixed

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