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

BUG: numpy has no attribute bool - for numpy versions less than 1.24 and pandas 1.0.5 #78

Open
marcelcaraciolo opened this issue Dec 28, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@marcelcaraciolo
Copy link
Contributor

marcelcaraciolo commented Dec 28, 2022

Problem description

Since the release of numpy 1.24 the. old releases from pandas such as 1.0.5 doesn't work with new releases.

THe workaround was to hard-code the pip-install numpy with pip install "numpy<1.24" lxml in pypi-installer.sh

Code Sample, a copy-pastable example

pypi-installer.sh

python -m pip install --upgrade pip
pip install "numpy<1.24" lxml
pip install -r requirements-dev.txt
pip install -r requirements.txt

Expected Output

  • Need to investigate if we need to update all pandas to new releases with this fix OR to force to install old versions of numpy (that was my case).

Output of CI-Actions with numpy 1.24.1

Link for output of the action

eturned Python scalars in past versions.
import pandas._libs.testing as _testing
Traceback (most recent call last):
File "", line 1, in
File "/home/runner/work/runpandas/runpandas/runpandas/init.py", line 1, in
from runpandas.reader import _read_file as read_file # noqa
File "/home/runner/work/runpandas/runpandas/runpandas/reader.py", line 6, in
import pandas as pd
File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pandas/init.py", line 180, in
import pandas.testing
File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pandas/testing.py", line 5, in
from pandas._testing import (
File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/pandas/_testing.py", line 24, in
import pandas._libs.testing as _testing
File "pandas/_libs/testing.pyx", line 10, in init pandas._libs.testing
File "/opt/hostedtoolcache/Python/3.8.15/x64/lib/python3.8/site-packages/numpy/init.py", line 284, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'bool'
Error: Process completed with exit code 1.

@marcelcaraciolo marcelcaraciolo added the bug Something isn't working label Dec 28, 2022
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

1 participant