rougier / freetype-py

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

Pyinstaller cannot import module #181

Open hubernikus opened 11 months ago

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

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

hubernikus commented 11 months ago

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

HinTak commented 11 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 11 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 8 months ago

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