Pyinstaller cannot import module
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
It might be good for you to review https://github.com/rougier/freetype-py/pull/180
Thanks for pointing out. As it's already discussed there, I'll close this issue.
@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
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!
with #180 merged, we now need a new stable release for this to be fixed