Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatibility between pandas and numpy in 1.2.1 #37

Open
nimzodisaster opened this issue Oct 28, 2024 · 3 comments
Open

incompatibility between pandas and numpy in 1.2.1 #37

nimzodisaster opened this issue Oct 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@nimzodisaster
Copy link

Describe the bug
seems like there is an incompatibility between pandas and numpy

(HSF) jlee38@mothership:/mnt/colony/ds/HSF$ hsf -h
Traceback (most recent call last):
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/bin/hsf", line 5, in
from hsf.factory import start
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/hsf/factory.py", line 5, in
import ants
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/ants/init.py", line 4, in
from .core import *
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/ants/core/init.py", line 1, in
from .ants_image_io import (image_header_info,
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/ants/core/ants_image_io.py", line 24, in
from ants.decorators import image_method
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/ants/decorators.py", line 2, in
from ants.core.ants_image import ANTsImage
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/ants/core/ants_image.py", line 17, in
import pandas as pd
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/init.py", line 22, in
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/compat/init.py", line 18, in
from pandas.compat.numpy import (
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/compat/numpy/init.py", line 4, in
from pandas.util.version import Version
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/util/init.py", line 2, in
from pandas.util._decorators import ( # noqa:F401
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/util/_decorators.py", line 14, in
from pandas._libs.properties import cache_readonly
File "/mnt/colony/pythonENVS/anaconda3/envs/HSF/lib/python3.11/site-packages/pandas/_libs/init.py", line 13, in
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. Debian]
  • Python: [e.g. 3.9.1]
  • HSF Version: [e.g. 0.1.1]
  • Relevant settings: [e.g. segmentation=bagging_fast]

Additional context
Add any other context about the problem here.

@nimzodisaster nimzodisaster added the bug Something isn't working label Oct 28, 2024
@nimzodisaster
Copy link
Author

It seems that antspyx==0.5.4 is not compatible with ROILoc; downgraded antspyx to 0.4.2 and it started running.

@clementpoiret
Copy link
Owner

Thanks for your issue. I'll update roiloc asap 👍

@clementpoiret
Copy link
Owner

Should be solved by v1.2.2 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants