Repository navigation
Closed
Labels
api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
- Search the issues already opened: https://github.com/googleapis/python-bigquery-dataframes/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version:
- Python version:
python --version - pip version:
pip --version bigframesversion:pip show bigframes
import sys
import bigframes
import google.cloud.bigquery
import ibis
import pandas
import pyarrow
import sqlglot
print(f"Python: {sys.version}")
print(f"bigframes=={bigframes.__version__}")
print(f"google-cloud-bigquery=={google.cloud.bigquery.__version__}")
print(f"ibis=={ibis.__version__}")
print(f"pandas=={pandas.__version__}")
print(f"pyarrow=={pyarrow.__version__}")
print(f"sqlglot=={sqlglot.__version__}")Python: 3.10.9 (main, Mar 1 2023, 12:33:47) [Clang 14.0.6 ]
bigframes==1.5.0
google-cloud-bigquery==3.22.0
ibis==8.0.0
pandas==1.5.3
pyarrow==12.0.1
sqlglot==20.11.0
Steps to reproduce
- Running https://github.com/googleapis/python-bigquery-dataframes/blob/main/notebooks/generative_ai/large_language_models.ipynb
- Gets module 'numpy' has no attribute 'dtypes' in cell 5
Code example
df = pd.DataFrame(
{
"prompt": ["What is BigQuery?", "What is BQML?", "What is BigQuery DataFrame?"],
})
bf_df = bigframes.pandas.read_pandas(df)
Stack trace
# example
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Activity
wazi55 commentedon May 14, 2024
Genesis929 commentedon May 15, 2024
Hello,
It seems that the issue might be related to specific environmental factors since setting up an identical package version environment did not reproduce the issue. To better diagnose and potentially resolve the problem, could you please provide additional information?
Complete Traceback: The provided traceback appears to be truncated, missing some crucial details. A full traceback would be very helpful as it contains the complete sequence of calls that led to the error, including all files and line numbers involved.
NumPy Version: Knowing the exact version of NumPy you are using could be useful, since this error is related to NumPy.
These details will greatly aid in pinpointing the root cause of the issue. Thank you for your cooperation!
shobsi commentedon Aug 19, 2024
Hi @wazi55, are you able to provide these details. In addition, it would help if you could share which operating system you are running on? Thanks.
wazi55 commentedon Aug 19, 2024
Hey that was resolved a while back! We can close this ticket.
shobsi commentedon Aug 19, 2024
That's great to know, @wazi55! We would appreciate if you could post the resolution steps here, to help in future re-occurrence of this issue. Thank you!
tswast commentedon Aug 27, 2024
I'm able to reproduce this issue after updating my local test environment on Python 3.9. It doesn't appear to affect fresh environments. My requirements.txt:
Failure:
tswast commentedon Aug 27, 2024
Since we are using numpy directly, we need to add it here: https://github.com/googleapis/python-bigquery-dataframes/blob/main/setup.py and also make sure that our minimum acceptable version is pinned here: https://github.com/googleapis/python-bigquery-dataframes/blob/main/testing/constraints-3.9.txt
tswast commentedon Aug 27, 2024
Per https://numpy.org/neps/nep-0029-deprecation_policy.html, we should support at least numpy 1.24.x+