Skip to content

'_thread._local' object has no attribute 'bigquery_options' #739

@jeffbryner

Description

@jeffbryner

After v1.5 I started getting:
"'_thread._local' object has no attribute 'bigquery_options'"
while using bigframes to upload a pandas data frame to bigquery ala:

   bf.options.bigquery.project = PROJECT_ID
   bf.options.bigquery.location = "us-central1"
   bdf = bf.bigframes.pandas.read_pandas(df)

    # dataframe to bigquery
    bdf.to_gbq(
        f"{PROJECT_ID}.dataset-name.table-name",
        if_exists="replace",
    )

I noticed that v1.5 included this change:
#652

I'm running this in cloud run in a python container using gunicorn with threading and wondering if it's related?

If I revert to bigframes==1.4.0 I no longer have the issue.

Metadata

Metadata

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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions