Replies: 1 comment 3 replies
-
At a quick glance it doesn't look like this is pingouin's fault. It seems like it relates to an import buried within. Have you tried creating a new minimal conda environment and re-importing from there? If you still get the same issue in a new conda environment, maybe export the conda environment details and post them here so someone can try to replicate the issue on a separate system. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I am not sure this is a bug related to Pingouin or my environment (this is why I did not start a new issue) but I get a type error when importing:
File "<ipython-input-5-7fb0a28d427d>", line 6, in <module> import pingouin as pg File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/pingouin/__init__.py", line 7, in <module> from .equivalence import * File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/pingouin/equivalence.py", line 5, in <module> from pingouin.parametric import ttest File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/pingouin/parametric.py", line 7, in <module> import pandas_flavor as pf File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/pandas_flavor/__init__.py", line 8, in <module> from .xarray import ( File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/pandas_flavor/xarray.py", line 2, in <module> from xarray import register_dataarray_accessor, register_dataset_accessor File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/__init__.py", line 3, in <module> from xarray import testing, tutorial File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/testing/__init__.py", line 2, in <module> from xarray.testing.assertions import ( # noqa: F401 File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/testing/assertions.py", line 11, in <module> from xarray.core import duck_array_ops, formatting, utils File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/core/duck_array_ops.py", line 37, in <module> from xarray.core import dask_array_ops, dtypes, nputils File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/core/dask_array_ops.py", line 3, in <module> from xarray.core import dtypes, nputils File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/core/nputils.py", line 14, in <module> if module_available("numpy", minversion="2.0.0.dev0"): File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/xarray/namedarray/utils.py", line 62, in module_available return Version(version) >= Version(minversion) File "/Users/oliviers/miniforge3/envs/analysis/lib/python3.10/site-packages/packaging/version.py", line 198, in __init__ match = self._regex.search(version) TypeError: expected string or bytes-like object
Beta Was this translation helpful? Give feedback.
All reactions