cili icon indicating copy to clipboard operation
cili copied to clipboard

pandas issue

Open ozika opened this issue 5 years ago • 2 comments

Hey, I cloned the most recent code and get the following error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-623cfe8c446f> in <module>
      3     #pylink documentation https://www.sr-support.com/forums/showthread.php?t=14
      4 # https://pypi.org/project/cili/
----> 5 from cili.util import *
      6 #file = "../task/data/pb1p1/pb1p11.edf"
      7 samps, events = load_eyelink_dataset("../task/data/pb1p1/pb1p11.edf")

~/.conda/envs/python3.7/lib/python3.7/site-packages/cili/util.py in <module>
      6 import numpy as np
      7 
----> 8 from .models import Samples, Events
      9 
     10 ASC_SFIELDS_EYE = {

~/.conda/envs/python3.7/lib/python3.7/site-packages/cili/models.py in <module>
      1 import pandas as pd
      2 import pandas.io.pytables as pt
----> 3 from pandas.compat import u_safe as u, string_types, isidentifier
      4 
      5 

ImportError: cannot import name 'u_safe' from 'pandas.compat' (/home/ondrej/.conda/envs/python3.7/lib/python3.7/site-packages/pandas/compat/__init__.py)

ozika avatar Nov 29 '19 17:11 ozika

It's a problem with pandas after version after 0.24.2 reverting to it (pip install pandas==0.24.2) seems to do the trick. I quickly browsed the later release notes, but couldn't find any information about whether they (re-)moved pandas.compat somewhere else.

SRSteinkamp avatar Dec 05 '19 14:12 SRSteinkamp

Ok, thanks, I will have a go at it!

ozika avatar Dec 09 '19 10:12 ozika