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
I am experiencing a problem with loading the pandas_profiling library. To provide some context, I was initially experiencing the same problem as detailed in discussion 1066 and then I realised I had to upgrade my pandas_profiling to a version higher than 3.2.0. Now, I am getting the below error with loading the library.
ImportError Traceback (most recent call last)
Cell In[3], line 1
----> 1 from pandas_profiling import ProfileReport
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/init.py:6
1 """Main module of pandas-profiling.
2
3 .. include:: ../../README.md
4 """
----> 6 from pandas_profiling.controller import pandas_decorator
7 from pandas_profiling.profile_report import ProfileReport
8 from pandas_profiling.version import version
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/controller/pandas_decorator.py:4
1 """This file add the decorator on the DataFrame object."""
2 from pandas import DataFrame
----> 4 from pandas_profiling.profile_report import ProfileReport
7 def profile_report(df: DataFrame, **kwargs) -> ProfileReport:
8 """Profile a DataFrame.
9
10 Args:
(...)
15 A ProfileReport of the DataFrame.
16 """
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/profile_report.py:16
14 from pandas_profiling.expectations_report import ExpectationsReport
15 from pandas_profiling.model.alerts import AlertType
---> 16 from pandas_profiling.model.describe import describe as describe_df
17 from pandas_profiling.model.sample import Sample
18 from pandas_profiling.model.summarizer import (
19 BaseSummarizer,
20 PandasProfilingSummarizer,
21 format_summary,
22 )
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/model/describe.py:18
16 from pandas_profiling.model.duplicates import get_duplicates
17 from pandas_profiling.model.missing import get_missing_active, get_missing_diagram
---> 18 from pandas_profiling.model.pairwise import get_scatter_plot, get_scatter_tasks
19 from pandas_profiling.model.sample import get_custom_sample, get_sample
20 from pandas_profiling.model.summarizer import BaseSummarizer
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/model/pairwise.py:6
3 import pandas as pd
5 from pandas_profiling.config import Settings
----> 6 from pandas_profiling.visualisation.plot import scatter_pairwise
9 def get_scatter_tasks(
10 config: Settings, continuous_variables: list
11 ) -> List[Tuple[Any, Any]]:
12 if not config.interactions.continuous:
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/visualisation/plot.py:14
12 from matplotlib.patches import Patch
13 from matplotlib.ticker import FuncFormatter
---> 14 from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
16 from pandas_profiling.config import Settings
17 from pandas_profiling.utils.common import convert_timestamp_to_datetime
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/graphics/init.py:1
----> 1 from statsmodels.tools._testing import PytestTester
3 test = PytestTester()
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/tools/init.py:1
----> 1 from .tools import add_constant, categorical
2 from statsmodels.tools._testing import PytestTester
4 all = ['test', 'add_constant', 'categorical']
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/tools/tools.py:6
4 import numpy as np
5 import pandas as pd
----> 6 import scipy.linalg
8 from statsmodels.tools.data import _is_using_pandas
9 from statsmodels.tools.validation import array_like
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/init.py:195
1 """
2 ====================================
3 Linear algebra (:mod:scipy.linalg)
(...)
192
193 """ # noqa: E501
--> 195 from .misc import *
196 from .basic import *
197 from .decomp import *
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/misc.py:3
1 import numpy as np
2 from numpy.linalg import LinAlgError
----> 3 from .blas import get_blas_funcs
4 from .lapack import get_lapack_funcs
6 all = ['LinAlgError', 'LinAlgWarning', 'norm']
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/blas.py:213
210 import numpy as _np
211 import functools
--> 213 from scipy.linalg import _fblas
214 try:
215 from scipy.linalg import _cblas
ImportError: dlopen(/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/_fblas.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/liblapack.3.dylib
Referenced from: <4435CCCD-C642-3284-A6BA-EFC6306D206B> /Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/_fblas.cpython-39-darwin.so
Reason: tried: '/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/../../../../liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/../../../../liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/bin/../lib/liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/bin/../lib/liblapack.3.dylib' (no such file), '/usr/local/lib/liblapack.3.dylib' (no such file), '/usr/lib/liblapack.3.dylib' (no such file, not in dyld cache)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
I am experiencing a problem with loading the pandas_profiling library. To provide some context, I was initially experiencing the same problem as detailed in discussion 1066 and then I realised I had to upgrade my pandas_profiling to a version higher than 3.2.0. Now, I am getting the below error with loading the library.
I would very much appreciate any help.
My environment details:
python 3.9
pandas 1.5.3
pandas-profiling 3.4.0
conda 22.9.0
Full stacktrace:
ImportError Traceback (most recent call last)
Cell In[3], line 1
----> 1 from pandas_profiling import ProfileReport
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/init.py:6
1 """Main module of pandas-profiling.
2
3 .. include:: ../../README.md
4 """
----> 6 from pandas_profiling.controller import pandas_decorator
7 from pandas_profiling.profile_report import ProfileReport
8 from pandas_profiling.version import version
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/controller/pandas_decorator.py:4
1 """This file add the decorator on the DataFrame object."""
2 from pandas import DataFrame
----> 4 from pandas_profiling.profile_report import ProfileReport
7 def profile_report(df: DataFrame, **kwargs) -> ProfileReport:
8 """Profile a DataFrame.
9
10 Args:
(...)
15 A ProfileReport of the DataFrame.
16 """
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/profile_report.py:16
14 from pandas_profiling.expectations_report import ExpectationsReport
15 from pandas_profiling.model.alerts import AlertType
---> 16 from pandas_profiling.model.describe import describe as describe_df
17 from pandas_profiling.model.sample import Sample
18 from pandas_profiling.model.summarizer import (
19 BaseSummarizer,
20 PandasProfilingSummarizer,
21 format_summary,
22 )
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/model/describe.py:18
16 from pandas_profiling.model.duplicates import get_duplicates
17 from pandas_profiling.model.missing import get_missing_active, get_missing_diagram
---> 18 from pandas_profiling.model.pairwise import get_scatter_plot, get_scatter_tasks
19 from pandas_profiling.model.sample import get_custom_sample, get_sample
20 from pandas_profiling.model.summarizer import BaseSummarizer
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/model/pairwise.py:6
3 import pandas as pd
5 from pandas_profiling.config import Settings
----> 6 from pandas_profiling.visualisation.plot import scatter_pairwise
9 def get_scatter_tasks(
10 config: Settings, continuous_variables: list
11 ) -> List[Tuple[Any, Any]]:
12 if not config.interactions.continuous:
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/pandas_profiling/visualisation/plot.py:14
12 from matplotlib.patches import Patch
13 from matplotlib.ticker import FuncFormatter
---> 14 from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
16 from pandas_profiling.config import Settings
17 from pandas_profiling.utils.common import convert_timestamp_to_datetime
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/graphics/init.py:1
----> 1 from statsmodels.tools._testing import PytestTester
3 test = PytestTester()
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/tools/init.py:1
----> 1 from .tools import add_constant, categorical
2 from statsmodels.tools._testing import PytestTester
4 all = ['test', 'add_constant', 'categorical']
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/statsmodels/tools/tools.py:6
4 import numpy as np
5 import pandas as pd
----> 6 import scipy.linalg
8 from statsmodels.tools.data import _is_using_pandas
9 from statsmodels.tools.validation import array_like
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/init.py:195
1 """
2 ====================================
3 Linear algebra (:mod:
scipy.linalg
)(...)
192
193 """ # noqa: E501
--> 195 from .misc import *
196 from .basic import *
197 from .decomp import *
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/misc.py:3
1 import numpy as np
2 from numpy.linalg import LinAlgError
----> 3 from .blas import get_blas_funcs
4 from .lapack import get_lapack_funcs
6 all = ['LinAlgError', 'LinAlgWarning', 'norm']
File ~/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/blas.py:213
210 import numpy as _np
211 import functools
--> 213 from scipy.linalg import _fblas
214 try:
215 from scipy.linalg import _cblas
ImportError: dlopen(/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/_fblas.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/liblapack.3.dylib
Referenced from: <4435CCCD-C642-3284-A6BA-EFC6306D206B> /Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/_fblas.cpython-39-darwin.so
Reason: tried: '/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/../../../../liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/lib/python3.9/site-packages/scipy/linalg/../../../../liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/bin/../lib/liblapack.3.dylib' (no such file), '/Users/username/opt/anaconda3/envs/DS_env/bin/../lib/liblapack.3.dylib' (no such file), '/usr/local/lib/liblapack.3.dylib' (no such file), '/usr/lib/liblapack.3.dylib' (no such file, not in dyld cache)
Beta Was this translation helpful? Give feedback.
All reactions