addressing pandas import error, specified numpy version#49
Open
zencodess wants to merge 2 commits intowhchien:mainfrom
Open
addressing pandas import error, specified numpy version#49zencodess wants to merge 2 commits intowhchien:mainfrom
zencodess wants to merge 2 commits intowhchien:mainfrom
Conversation
|
The latest version of pandas worked for me (2.2.3 as of today), I just had to re-install it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolved #48
The latest version of numpy seems to be causing problems like,
Traceback (most recent call last):
File "/home/sathyasravya/repos/funda-scraper/tests/test_preprocess.py", line 1, in
import pandas as pd
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/site-packages/pandas/init.py", line 22, in
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/site-packages/pandas/compat/init.py", line 25, in
from pandas.compat.numpy import (
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/site-packages/pandas/compat/numpy/init.py", line 4, in
from pandas.util.version import Version
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/site-packages/pandas/util/init.py", line 2, in
from pandas.util._decorators import ( # noqa:F401
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/site-packages/pandas/util/_decorators.py", line 14, in
from pandas._libs.properties import cache_readonly
File "/home/sathyasravya/repos/funda-scraper/funda_venv/lib/python3.10/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
I have looked into it and found that downgrading the version is the solution