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

Issue on docs #1398

Open
ninalty opened this issue Oct 18, 2024 · 2 comments
Open

Issue on docs #1398

ninalty opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ninalty
Copy link

ninalty commented Oct 18, 2024

Path: /intro

After using 'pip install pandasai', import pandasai in python send me back error. I tried python 3.9, 3.10. 3.11 and 3.12. Same error.
Also, can't join the discord group through the link provided.

here is the error message:

import pandasai
Traceback (most recent call last):
File "", line 1, in
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandasai/init.py", line 6, in
from pandasai.smart_dataframe import SmartDataframe
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandasai/smart_dataframe/init.py", line 26, in
import pandasai.pandas as pd
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandasai/pandas/init.py", line 13, in
from pandas import *
File "/opt/miniconda3/envs/myenv2/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 "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandas/compat/init.py", line 18, in
from pandas.compat.numpy import (
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandas/compat/numpy/init.py", line 4, in
from pandas.util.version import Version
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandas/util/init.py", line 2, in
from pandas.util._decorators import ( # noqa:F401
File "/opt/miniconda3/envs/myenv2/lib/python3.11/site-packages/pandas/util/_decorators.py", line 14, in
from pandas._libs.properties import cache_readonly
File "/opt/miniconda3/envs/myenv2/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

Copy link

dosubot bot commented Oct 18, 2024

Hey @ninalty! I'm here to help you with any bugs, questions, or contribute to the project. Let's figure this out together!

The error you're encountering is related to a binary incompatibility issue between numpy and pandas. A similar issue was reported, and the suggested solution is to downgrade numpy to version 1.26.4. You can do this by running the following command:

pip install numpy==1.26.4 pyyaml

This should resolve the binary incompatibility issue you're facing [1].

Regarding the Discord link issue, I wasn't able to find any specific information about known issues with the Discord link in the documentation. It might be worth checking if there are any updates or alternative links provided elsewhere.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Oct 18, 2024
@ninalty
Copy link
Author

ninalty commented Oct 18, 2024

Thanks. It works

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