You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: ModuleNotFoundError: No module named 'numpy.char' #27135
numpy.char is not an importable module on NumPy 1.x, as you saw. That's because there isn't actually a char.py file or char folder with an __init__.py inside the numpy module - it all gets set up dynamically when you import numpy the first time.
In NumPy 2.x, this does work, because we added an actual char module that's importable.
Closing this because this isn't a problem with NumPy. Please follow up if you have some problem that you need help with that this has something to do with.
Well, i actually simplified the error description.
The original problem is that ydata_profiling raises such the error while profiling a pandas dataframe. It uses internally numpy. @ngoldbaum please take a look
from ydata_profiling import ProfileReport
profile = ProfileReport(df, title="Pandas Profiling Report")
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[27], [line 1](vscode-notebook-cell:?execution_count=27&line=1)
----> [1](vscode-notebook-cell:?execution_count=27&line=1) from ydata_profiling import ProfileReport
[3](vscode-notebook-cell:?execution_count=27&line=3) profile = ProfileReport(candidates_df, title="Pandas Profiling Report")
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:14
[10](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:10) warnings.simplefilter("ignore", category=NumbaDeprecationWarning)
[12](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:12) import importlib.util # isort:skip # noqa
---> [14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:14) from ydata_profiling.compare_reports import compare # isort:skip # noqa
[15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:15) from ydata_profiling.controller import pandas_decorator # isort:skip # noqa
[16](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/__init__.py:16) from ydata_profiling.profile_report import ProfileReport # isort:skip # noqa
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:12
[10](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:10) from ydata_profiling.model import BaseDescription
[11](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:11) from ydata_profiling.model.alerts import Alert
---> [12](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:12) from ydata_profiling.profile_report import ProfileReport
[15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:15) def _should_wrap(v1: Any, v2: Any) -> bool:
[16](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/compare_reports.py:16) if isinstance(v1, (list, dict)):
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:31
[29](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:29) from ydata_profiling.model import BaseDescription
[30](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:30) from ydata_profiling.model.alerts import AlertType
---> [31](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:31) from ydata_profiling.model.describe import describe as describe_df
[32](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:32) from ydata_profiling.model.sample import Sample
[33](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:33) from ydata_profiling.model.summarizer import (
[34](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:34) BaseSummarizer,
[35](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:35) PandasProfilingSummarizer,
[36](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:36) format_summary,
[37](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:37) redact_summary,
[38](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/profile_report.py:38) )
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:20
[18](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:18) from ydata_profiling.model.duplicates import get_duplicates
[19](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:19) from ydata_profiling.model.missing import get_missing_active, get_missing_diagram
---> [20](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:20) from ydata_profiling.model.pairwise import get_scatter_plot, get_scatter_tasks
[21](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:21) from ydata_profiling.model.sample import get_custom_sample, get_sample
[22](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/describe.py:22) from ydata_profiling.model.summarizer import BaseSummarizer
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:6
[3](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:3) import pandas as pd
[5](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:5) from ydata_profiling.config import Settings
----> [6](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:6) from ydata_profiling.visualisation.plot import scatter_pairwise
[9](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:9) def get_scatter_tasks(
[10](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:10) config: Settings, continuous_variables: list
[11](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:11) ) -> List[Tuple[Any, Any]]:
[12](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/model/pairwise.py:12) if not config.interactions.continuous:
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:15
[13](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:13) from matplotlib.patches import Patch
[14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:14) from matplotlib.ticker import FuncFormatter, MaxNLocator
---> [15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:15) from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
[16](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:16) from typeguard import typechecked
[17](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/ydata_profiling/visualisation/plot.py:17) from wordcloud import WordCloud
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/__init__.py:1
----> [1](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/__init__.py:1) from statsmodels.compat.patsy import monkey_patch_cat_dtype
[3](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/__init__.py:3) from statsmodels._version import __version__, __version_tuple__
[5](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/__init__.py:5) __version_info__ = __version_tuple__
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:1
----> [1](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:1) from statsmodels.tools._testing import PytestTester
[3](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:3) from .python import (
[4](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:4) asunicode,
[5](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:5) asbytes,
(...)
[10](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:10) lfilter,
[11](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:11) )
[13](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:13) __all__ = [
[14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:14) "asunicode",
[15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:15) "asbytes",
(...)
[21](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:21) "test",
[22](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/compat/__init__.py:22) ]
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/__init__.py:1
----> [1](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/__init__.py:1) from .tools import add_constant, categorical
[2](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/__init__.py:2) from statsmodels.tools._testing import PytestTester
[4](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/__init__.py:4) __all__ = ['test', 'add_constant', 'categorical']
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:6
[4](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:4) import numpy as np
[5](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:5) import pandas as pd
----> [6](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:6) import scipy.linalg
[8](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:8) from statsmodels.tools.data import _is_using_pandas
[9](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/statsmodels/tools/tools.py:9) from statsmodels.tools.validation import array_like
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:205
[203](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:203) from ._misc import *
[204](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:204) from ._cythonized_array_utils import *
--> [205](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:205) from ._basic import *
[206](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:206) from ._decomp import *
[207](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/__init__.py:207) from ._decomp_lu import *
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:13
[11](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:11) from .lapack import get_lapack_funcs, _compute_lwork
[12](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:12) from ._misc import LinAlgError, _datacopied, LinAlgWarning
---> [13](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:13) from ._decomp import _asarray_validated
[14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:14) from . import _decomp, _decomp_svd
[15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_basic.py:15) from ._solve_toeplitz import levinson
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:26
[22](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:22) from numpy import (array, isfinite, inexact, nonzero, iscomplexobj,
[23](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:23) flatnonzero, conj, asarray, argsort, empty,
[24](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:24) iscomplex, zeros, einsum, eye, inf)
[25](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:25) # Local imports
---> [26](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:26) from scipy._lib._util import _asarray_validated
[27](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:27) from ._misc import LinAlgError, _datacopied, norm
[28](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/linalg/_decomp.py:28) from .lapack import get_lapack_funcs, _compute_lwork
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:18
[10](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:10) from typing import (
[11](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:11) Optional,
[12](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:12) Union,
[13](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:13) TYPE_CHECKING,
[14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:14) TypeVar,
[15](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:15) )
[17](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:17) import numpy as np
---> [18](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:18) from scipy._lib._array_api import array_namespace
[21](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:21) AxisError: type[Exception]
[22](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_util.py:22) ComplexWarning: type[Warning]
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:17
[14](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:14) import numpy as np
[16](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:16) from scipy._lib import array_api_compat
---> [17](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:17) from scipy._lib.array_api_compat import (
[18](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:18) is_array_api_obj,
[19](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:19) size,
[20](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:20) numpy as np_compat,
[21](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:21) )
[23](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:23) __all__ = ['array_namespace', '_asarray', 'size']
[26](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/_array_api.py:26) # To enable array API and strict array-like input validation
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/array_api_compat/numpy/__init__.py:1
----> [1](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/array_api_compat/numpy/__init__.py:1) from numpy import *
[3](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/array_api_compat/numpy/__init__.py:3) # from numpy import * doesn't overwrite these builtin names
[4](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/scipy/_lib/array_api_compat/numpy/__init__.py:4) from numpy import abs, max, min, round
File ~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:367, in __getattr__(attr)
[365](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:365) raise AssertionError()
[366](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:366) except AssertionError:
--> [367](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:367) msg = ("The current Numpy installation ({!r}) fails to "
[368](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:368) "pass simple sanity checks. This can be caused for example "
[369](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:369) "by incorrect BLAS library being linked in, or by mixing "
[370](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:370) "package managers (pip, conda, apt, ...). Search closed "
[371](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:371) "numpy issues for similar problems.")
[372](https://file+.vscode-resource.vscode-cdn.net/home/kvdm/Projects/Work/tmate.ru/empl-db-research/empl-db-research/~/.pyenv/versions/epml-db-research/lib/python3.11/site-packages/numpy/__init__.py:372) raise RuntimeError(msg.format(__file__)) from None
ModuleNotFoundError: No module named 'numpy.char'
Probably, the error derives from scipy due it's dependency version numpy>=2.0.0rc1
When ydata_profiling dependency version is numpy>=1.16.0, <2
@4l1fe Thanks for the debugging, indeed scipy was the issue, encountered the same error as well while installing the latest version of PaddleOCR. Got fixed by installing 1.2 version of scipy
Activity
ngoldbaum commentedon Aug 7, 2024
numpy.charis not an importable module on NumPy 1.x, as you saw. That's because there isn't actually achar.pyfile orcharfolder with an__init__.pyinside thenumpymodule - it all gets set up dynamically when you import numpy the first time.In NumPy 2.x, this does work, because we added an actual
charmodule that's importable.Closing this because this isn't a problem with NumPy. Please follow up if you have some problem that you need help with that this has something to do with.
4l1fe commentedon Aug 7, 2024
Well, i actually simplified the error description.
The original problem is that ydata_profiling raises such the error while profiling a pandas dataframe. It uses internally numpy. @ngoldbaum please take a look
Probably, the error derives from scipy due it's dependency version
numpy>=2.0.0rc1When ydata_profiling dependency version is
numpy>=1.16.0, <24l1fe commentedon Aug 7, 2024
I downgraded
scipyfrom1.14to1.12and got the error fixedngoldbaum commentedon Aug 7, 2024
Not sure how that error message is getting generated, notably it doesn't agree with the traceback you shared.
Seems like an issue with the profiler library you're using? Or maybe how you set up your Python environment? I don't think we can help much here.
4l1fe commentedon Aug 8, 2024
Understand. Yeah, the issue is of profiler, of the
scipyversion to be precise.The environment is simply a
pyenvenv withydata_profilinginstalled in that depends onnumpy, scipyetc.Anyway, the issue is solved. Scipy version has to be
1.12insted of1.13+. Thx for paying your timerushi-the-neural-arch commentedon Sep 14, 2024
@4l1fe Thanks for the debugging, indeed scipy was the issue, encountered the same error as well while installing the latest version of PaddleOCR. Got fixed by installing 1.2 version of scipy