Skip to content

Pyinstaller cannot import module #181

@hubernikus

Description

@hubernikus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions