Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@jeffbryner

Description

@jeffbryner
Issue body actions

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.Issues related to the googleapis/python-bigquery-dataframes API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important 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.Error 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.