Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ‘humanize’ distribution was not found and is required by the application #4833

Closed
pengyanbing84 opened this issue Apr 24, 2020 · 8 comments

Comments

@pengyanbing84
Copy link

pengyanbing84 commented Apr 24, 2020

The ‘humanize’ distribution was not found and is required by the application
Pyinstaller == 3.6
humanize == 2.4
Please answer my question, thanks
python3.7

@Legorooj
Copy link
Member

Which repo is humanize? What's the full traceback?

@pengyanbing84
Copy link
Author

snipaste20200424_102732

How can I solve this problem?

@Legorooj
Copy link
Member

@pengyanbing84 you need to write a hook for pyinstaller. See https://pyinstaller.readthedocs.io/en/stable/hooks.html

@pengyanbing84
Copy link
Author

@ pengyanbing84,您需要为pyinstaller编写一个钩子。参见https://pyinstaller.readthedocs.io/en/stable/hooks.html

Hello, I am using pyinstaller for the first time, how to construct hooks, there are examples? Can you give me an example, thank you, thank you very much, for my hook example of this question. Thank you very much

@pengyanbing84 pengyanbing84 reopened this Apr 24, 2020
@Legorooj
Copy link
Member

- myprogram.py
- hooks
  - hook-humanize.py

And inside hook-humanize.py:

from PyInstaller.utils.hooks import collect_all

datas, binaries, hiddenimports = collect_all('humanize')

Then build with --additional-hooks-dir=hooks.

@pengyanbing84
Copy link
Author

- myprogram.py
- hooks
  - hook-humanize.py

And inside hook-humanize.py:

from PyInstaller.utils.hooks import collect_all

datas, binaries, hiddenimports = collect_all('humanize')

Then build with --additional-hooks-dir=hooks.

- myprogram.py
- hooks
  - hook-humanize.py

And inside hook-humanize.py:

from PyInstaller.utils.hooks import collect_all

datas, binaries, hiddenimports = collect_all('humanize')

Then build with --additional-hooks-dir=hooks.

Thank you very much

@Legorooj
Copy link
Member

@pengyanbing84 did it work?

@abmaymic
Copy link

same problem here, hook did work. Many thanks!

@pyinstaller pyinstaller locked as resolved and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants