rougier / freetype-py

Python binding for the freetype library
Other
304 stars 88 forks source link

Pyinstaller cannot import module #181

Open hubernikus opened 9 months ago

hubernikus commented 9 months ago

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

HinTak commented 9 months ago

It might be good for you to review https://github.com/rougier/freetype-py/pull/180

hubernikus commented 9 months ago

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

HinTak commented 9 months ago

@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

Korijn commented 9 months ago

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 commented 7 months ago

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