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

No module named 'ydata_profiling' #1530

Closed
3 tasks done
makgul1 opened this issue Jan 26, 2024 · 4 comments
Closed
3 tasks done

No module named 'ydata_profiling' #1530

makgul1 opened this issue Jan 26, 2024 · 4 comments

Comments

@makgul1
Copy link

makgul1 commented Jan 26, 2024

Current Behaviour

after installing ydata using the following command

conda install -c conda-forge ydata-profiling

I can use

from ydata_profiling import ProfileReport

in the python cmd window. However, in the jupyter notebook I get the

following error:

ModuleNotFoundError: No module named 'ydata_profiling'

Expected Behaviour

the import

from ydata_profiling import ProfileReport

in jupyter notebook should work

Data Description

NA

Code that reproduces the bug

from ydata_profiling import ProfileReport

pandas-profiling version

ydata-profiling 4.1.1

Dependencies

jupyter                   1.0.0                    pypi_0    pypi
jupyter-client            8.3.0                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              5.3.1                    pypi_0    pypi
jupyter-events            0.6.3                    pypi_0    pypi
jupyter-lsp               2.2.0                    pypi_0    pypi
jupyter-server            2.7.0                    pypi_0    pypi
jupyter-server-terminals  0.4.4                    pypi_0    pypi
jupyterlab                4.0.3                    pypi_0    pypi

ydata-profiling           4.1.1            py38haa95532_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

Hi @makgul1
make sure that you are using this package: https://anaconda.org/conda-forge/ydata-profiling

conda install main::ydata-profiling

We have no control on Anaconda distributions, and unfortunately there is a replicated repo (by another entity) that does not work properly .

@simonespa
Copy link

hi @fabclmnt, can this package be installed with pip too?

I'm using pip and up until ydata-profiling version 4.7.0, I could do

from ydata_profiling import ProfileReport

# Load the data
df = pd.read_csv("some_data.csv")

# Produce and save the profiling report
profile = ProfileReport(df, title="Some Data Profile Report")
profile.to_file("report.html")

and it was working fine. Now that I've updated to version 4.8.3 I get ModuleNotFoundError: No module named 'ydata_profiling'

I'm running on

  • Python 3.11.7
  • notebook==7.2.0
  • jupyterlab==4.2.0

@fabclmnt
Copy link
Contributor

fabclmnt commented Jul 9, 2024

Yes, the package can be installed with pip.

I'll need more detail given that the team is not being able to reproduce the error mentioned with even the latest versions of the package - (https://pypi.org/project/ydata-profiling/).

Screenshots below:
image

image

@Diego-Oliveiras
Copy link

I had this same problem, I installed the libraries:

pip install ipywidgets
pip install ipython
pip install configuration tools

it will probably work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants