ANTsX / ANTsPy

A fast medical imaging analysis library in Python with algorithms for registration, segmentation, and more.
https://antspyx.readthedocs.io
Apache License 2.0
585 stars 161 forks source link

cannot import name 'Int64Index' from 'pandas' (deprecated) #508

Open Abhinav-Ganesh opened 8 months ago

Abhinav-Ganesh commented 8 months ago

Describe the bug ImportError: cannot import name 'Int64Index' from 'pandas'

To Reproduce Steps to reproduce the behavior:

pd.version '2.1.1'

import ants ImportError: cannot import name 'Int64Index' from 'pandas'

Side note: (having higher version of numpy causes separate error)

np.version '1.23.5'

Expected behavior import ants with no errors

Desktop (please complete the following information):

cookpa commented 7 months ago

Thanks - how did you install ANTsPy?

Abhinav-Ganesh commented 7 months ago

I believe I installed ANTsPy with pip install antspyx. I could work around the issue by downgrading my numpy and scipy versions to numpy-1.22.4 scipy-1.7.3.

On Thu, Nov 16, 2023 at 8:51 AM Philip Cook @.***> wrote:

Thanks - how did you install ANTsPy?

— Reply to this email directly, view it on GitHub https://github.com/ANTsX/ANTsPy/issues/508#issuecomment-1814608144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVSULYXMRJ3NYNXNC35TUV3YEYR5VAVCNFSM6AAAAAA5XITUQKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGYYDQMJUGQ . You are receiving this because you authored the thread.Message ID: @.***>