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

ValueError: The 'ydata_profiling' package was not installed in a way that PackageLoader understands. #1434

Open
3 tasks done
VERISBABY opened this issue Sep 7, 2023 · 1 comment
Labels
bug 🐛 Something isn't working

Comments

@VERISBABY
Copy link

VERISBABY commented Sep 7, 2023

Current Behaviour

i compile an APP use Pyinstaller and got this error when open the compiled .exe file:

Traceback (most recent call last):
  File "myuniverse.py", line 133, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\__init__.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\compare_reports.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\profile_report.py", line 33, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\report\presentation\flavours\html\__init__.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\report\presentation\flavours\html\alerts.py", line 2, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module
  File "ydata_profiling\report\presentation\flavours\html\templates.py", line 11, in <module>
  File "jinja2\loaders.py", line 323, in __init__
ValueError: The 'ydata_profiling' package was not installed in a way that PackageLoader understands.

Expected Behaviour

Work after compiled use pyinstaller.

Data Description

NONE

Code that reproduces the bug

from ydata_profiling import ProfileReport
profile = ProfileReport(df)

pandas-profiling version

v4.5.1

Dependencies

numpy-1.25.2
pandas-2.1.0

OS

windows 10

Checklist

  • There is not yet another bug report for this issue in the issue tracker
  • The problem is reproducible from this bug report. This guide can help to craft a minimal bug report.
  • The issue has not been resolved by the entries listed under Common Issues.
@fabclmnt
Copy link
Contributor

fabclmnt commented Sep 19, 2023

Hi @VERISBABY ,

this is a know error and related with the following past issues: #175, #246, #706 and #942 .

In #942 there is a solution suggested. Let me know if that works for you.

@fabclmnt fabclmnt added bug 🐛 Something isn't working and removed needs-triage labels Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants