GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — samples.to_dataframe.jupyter_test: test_jupyter_tutorial failed · Issue #69 · googleapis/python-bigquery-storage

This repository was archived by the owner on Nov 12, 2025. It is now read-only.
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

samples.to_dataframe.jupyter_test: test_jupyter_tutorial failed #69

Copy link
Copy link
Closed
#72
Closed
samples.to_dataframe.jupyter_test: test_jupyter_tutorial failed#69
#72
Copy link
Assignees
tswast
Labels
api: bigquerystorageIssues related to the googleapis/python-bigquery-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@flaky-bot
flaky-bot
bot
opened on Sep 30, 2020
Issue body actions

This test failed!

To configure my behavior, see the Build Cop Bot documentation.

If I'm commenting on this issue too often, add the buildcop: quiet label and
I will stop commenting.


commit: 6254bf2
buildURL: Build Status, Sponge
status: failed

Test output
use_bqstorage_api = True
credentials = 
def _make_bqstorage_client(use_bqstorage_api, credentials):
    if not use_bqstorage_api:
        return None

    try:
      from google.cloud import bigquery_storage_v1beta1

E ImportError: cannot import name 'bigquery_storage_v1beta1'

.nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:606: ImportError

The above exception was the direct cause of the following exception:

ipython = <IPython.terminal.interactiveshell.TerminalInteractiveShell object at 0x7f15efda1828>

def test_jupyter_tutorial(ipython):
    ip = IPython.get_ipython()
    ip.extension_manager.load_extension("google.cloud.bigquery")

    # This code sample intentionally queries a lot of data to demonstrate the
    # speed-up of using the BigQuery Storage API to download the results.
    sample = """
    # [START bigquerystorage_jupyter_tutorial_query]
    %%bigquery tax_forms --use_bqstorage_api
    SELECT * FROM `bigquery-public-data.irs_990.irs_990_2012`
    # [END bigquerystorage_jupyter_tutorial_query]
    """
    result = ip.run_cell(_strip_region_tags(sample))
  result.raise_error()  # Throws an exception if the cell failed.

jupyter_test.py:91:


.nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:331: in raise_error
raise self.error_in_exec
.nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:3319: in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
:1: in
get_ipython().run_cell_magic('bigquery', 'tax_forms --use_bqstorage_api', 'SELECT * FROM bigquery-public-data.irs_990.irs_990_2012\n\n')
.nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:2352: in run_cell_magic
result = fn(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:506: in _cell_magic
args.use_bqstorage_api or context.use_bqstorage_api, context.credentials
.nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:612: in _make_bqstorage_client
six.raise_from(customized_error, err)


value = None
from_value = ImportError("cannot import name 'bigquery_storage_v1beta1'",)

???
E ImportError: Install the google-cloud-bigquery-storage and pyarrow packages to use the BigQuery Storage API.

:3: ImportError

Activity

  1. flaky-bot
    added
    buildcop: issue
    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.
    on Sep 30, 2020
  2. product-auto-label
    added
    api: bigquerystorageIssues related to the googleapis/python-bigquery-storage API.
    samplesIssues that are directly related to samples.
    on Sep 30, 2020
  3. plamut commented on Sep 30, 2020

    @plamut
    plamut
    on Sep 30, 2020
    Contributor
    More actions

    Will be fixed when BigQuery v2.0 is released (PR).

  4. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Oct 5, 2020
  5. meredithslota
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Oct 5, 2020
  6. tswast
    closed this as completedin #72on Oct 16, 2020
  7. flaky-bot commented on Oct 17, 2020

    @flaky-bot
    flaky-botBot
    on Oct 17, 2020
    Author
    More actions

    Looks like this issue is flaky. 😟

    I'm going to leave this open and stop commenting.

    A human should fix and close this.


    commit: a7fe762
    buildURL: Build Status, Sponge
    status: failed

    Test output
    use_bqstorage_api = True
    credentials = 
    
    def _make_bqstorage_client(use_bqstorage_api, credentials):
        if not use_bqstorage_api:
            return None
    
        try:
    
          from google.cloud import bigquery_storage_v1beta1
    

    E ImportError: cannot import name 'bigquery_storage_v1beta1'

    .nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:606: ImportError

    The above exception was the direct cause of the following exception:

    ipython = <IPython.terminal.interactiveshell.TerminalInteractiveShell object at 0x7fa31c972828>

    def test_jupyter_tutorial(ipython):
        ip = IPython.get_ipython()
        ip.extension_manager.load_extension("google.cloud.bigquery")
    
        # This code sample intentionally queries a lot of data to demonstrate the
        # speed-up of using the BigQuery Storage API to download the results.
        sample = """
        # [START bigquerystorage_jupyter_tutorial_query]
        %%bigquery tax_forms --use_bqstorage_api
        SELECT * FROM `bigquery-public-data.irs_990.irs_990_2012`
        # [END bigquerystorage_jupyter_tutorial_query]
        """
        result = ip.run_cell(_strip_region_tags(sample))
    
      result.raise_error()  # Throws an exception if the cell failed.
    

    jupyter_test.py:91:


    .nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:331: in raise_error
    raise self.error_in_exec
    .nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:3319: in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
    :1: in
    get_ipython().run_cell_magic('bigquery', 'tax_forms --use_bqstorage_api', 'SELECT * FROM bigquery-public-data.irs_990.irs_990_2012\n\n')
    .nox/py-3-6/lib/python3.6/site-packages/IPython/core/interactiveshell.py:2352: in run_cell_magic
    result = fn(*args, **kwargs)
    .nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:506: in _cell_magic
    args.use_bqstorage_api or context.use_bqstorage_api, context.credentials
    .nox/py-3-6/lib/python3.6/site-packages/google/cloud/bigquery/magics.py:612: in _make_bqstorage_client
    six.raise_from(customized_error, err)


    value = None
    from_value = ImportError("cannot import name 'bigquery_storage_v1beta1'",)

    ???
    E ImportError: Install the google-cloud-bigquery-storage and pyarrow packages to use the BigQuery Storage API.

    :3: ImportError

  8. flaky-bot
    reopened this on Oct 17, 2020
  9. flaky-bot
    added
    buildcop: flaky
    on Oct 17, 2020
  10. tswast
    closed this as completedon Oct 21, 2020
  11. JustinBeckwith
    assigned
    tswast
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tswast
    tswast

Labels

api: bigquerystorageIssues related to the googleapis/python-bigquery-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.