man-group / arctic

High performance datastore for time series and tick data
https://arctic.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
3.06k stars 583 forks source link

ImportError: cannot import name 'Panel' from 'pandas' #880

Closed pxlogpx closed 3 years ago

pxlogpx commented 3 years ago

Arctic Version

# 1.79.3 and 1.8.0

Arctic Store

# VersionStore, TickStore, or ChunkStore

Platform and version

Anaconda3-2020.11 Python : 3.7.9 and 3.8.5 numpy: 1.19.2 pandas: 1.2.0

Description of problem and/or code sample that reproduces the issue

Put Here

Steps : Installed Anaconda3-2020.11 Created a new environment with python 3.8.5 installed artic using : conda install -c conda-forge arctic open a terminal on the new enviroment

`>>> from arctic import Arctic

Traceback (most recent call last):

File "", line 1, in

File "C:\anaconda3\envs\gauss37\lib\site-packages\arctic__init__.py", line 6, in

from .store._pandas_ndarray_store import PandasDataFrameStore, PandasSeriesStore, PandasPanelStore

File "C:\anaconda3\envs\gauss37\lib\site-packages\arctic\store_pandas_ndarray_store.py", line 6, in

from pandas import DataFrame, Series, Panel

ImportError: cannot import name 'Panel' from 'pandas' (C:\anaconda3\envs\gauss37\lib\site-packages\pandas__init__.py)`

Tried the same process with a python 3.7 env and installing arctic via : pip install git+https://github.com/manahl/arctic.git, same error in all situations. Update Installing using a python 3.6.12 environment works in Anaconda

pxlogpx commented 3 years ago

Just saw the documentation that it works until python 3.6 :)

bmoscon commented 3 years ago

it works fine in 3.7, the issue is pandas, you need to downgrade pandas

iamdionysus commented 3 years ago

For your information, I just had this issue and have tested with different pandas version. pandas version from 1.0 to 1.1 has worked.