bcm-uga / Loter

A software package for local ancestry inference and haplotype phasing
Other
38 stars 7 forks source link

Error while import loter.locanc.local_ancestry as lc #19

Closed paulocecco closed 2 years ago

paulocecco commented 3 years ago

import loter.locanc.local_ancestry as lc Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/loter-0.1-py2.7-linux-x86_64.egg/loter/locanc/local_ancestry.py", line 3, in import pandas as pd File "/usr/local/lib/python2.7/dist-packages/pandas/init.py", line 42, in from pandas.core.api import * File "/usr/local/lib/python2.7/dist-packages/pandas/core/api.py", line 7, in from pandas.core.arrays.integer import ( File "/usr/local/lib/python2.7/dist-packages/pandas/core/arrays/init.py", line 2, in from .base import (ExtensionArray, # noqa File "/usr/local/lib/python2.7/dist-packages/pandas/core/arrays/base.py", line 21, in from pandas.core import ops File "/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py", line 17, in import pandas.compat as compat AttributeError: 'module' object has no attribute 'compat'

gdurif commented 3 years ago

Hi, I guess the problem is with Python 2.7. We do not support it since Python 2.7 is not maintained anymore. I would recommend to upload to Python3.X, you can either use the Python3 distribution available for your system or Anaconda distribution.

gdurif commented 3 years ago

Please, tell me if the problem remains after upgrading.