freetype-py icon indicating copy to clipboard operation
freetype-py copied to clipboard

Pyinstaller cannot import module

Open hubernikus opened this issue 2 years ago • 5 comments

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

hubernikus avatar Dec 13 '23 07:12 hubernikus

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

HinTak avatar Dec 13 '23 07:12 HinTak

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

hubernikus avatar Dec 15 '23 08:12 hubernikus

@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 avatar Dec 15 '23 12:12 HinTak

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!

Korijn avatar Dec 15 '23 12:12 Korijn

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

anthrotype avatar Mar 08 '24 15:03 anthrotype