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 — Only installing namespaced packages, can't run system tests · Issue #2316 · googleapis/google-cloud-python

Only installing namespaced packages, can't run system tests #2316

New issue
Copy link
New issue
Copy link
Closed
Closed
Only installing namespaced packages, can't run system tests#2316
Copy link
Labels
api: bigqueryIssues related to the BigQuery API.testing

Description

@waprin
waprin
opened on Sep 14, 2016
Issue body actions

I am trying to rebase my PR and get it all up to date.

I am having trouble running the system tests. Usually I do:

pip install -e . 

To install the package locally in 'editable' mode. However, that's only installing logging and pubsub (those marked as namespaced_packages in `setup.py) into my virtualenv. So when I run the system tests, it can't import bigquery.

Not sure if the repo needs to be fixed or my workflow do, still wrapping my head around how the namespaced pacakges are supposed to work. Is there a reason it's only logging and pubsub in there currently?

Activity

  1. tseaver
    added
    testing
    api: bigqueryIssues related to the BigQuery API.
    on Sep 14, 2016
  2. tseaver commented on Sep 14, 2016

    @tseaver
    tseaver
    on Sep 14, 2016
    Contributor
    More actions

    @waprin is this in a "fresh" virtualenv?

  3. tseaver commented on Sep 14, 2016

    @tseaver
    tseaver
    on Sep 14, 2016
    Contributor
    More actions

    Since #2304 was merged, if you have tox installed on your path, you can now run just the BigQuery system tests via:

    $ tox -e system-tests -- bigquery
  4. daspecster commented on Sep 14, 2016

    @daspecster
    daspecster
    on Sep 14, 2016
    Contributor
    More actions

    @tseaver, @dhermes I'm also running into the same issue now.

    Earlier this week I had to change a test script I have to from google.cloud import vision.
    This doesn't seem to work now, and I'm having the same issue as @waprin. I tried several new venvs and I haven't found the cause yet.

  5. daspecster commented on Sep 14, 2016

    @daspecster
    daspecster
    on Sep 14, 2016
    Contributor
    More actions

    I think I figured it out.

    Reference: http://stackoverflow.com/questions/38918246/why-does-setup-py-sweeps-the-content-of-the-namespace-before-installing/38919020#38919020

    I'm making a PR for this now.

  6. daspecster commented on Sep 14, 2016

    @daspecster
    daspecster
    on Sep 14, 2016
    Contributor
    More actions

    Actually nevermind, my idea didn't work to solve this.

    @waprin I believe the pubsub and logging namespaces appear because of the gax and grpc dependencies get installed for them.

  7. waprin commented on Sep 14, 2016

    @waprin
    waprin
    on Sep 14, 2016
    ContributorAuthor
    More actions

    Ok the system test can be run that way so that works though I'm still a bit confused as to how it all gets installed, will figure it out, thanks!

  8. waprin
    closed this as completedon Sep 14, 2016
  9. dhermes commented on Sep 15, 2016

    @dhermes
    dhermes
    on Sep 15, 2016
    Contributor
    More actions

    I'd be interested what the PyPA member has to say.

    @jonparrott It seems impossible to install namespace packages in "development" / "editable" mode. Is this not the case?


    @waprin I don't personally use "editable" mode, but did notice that system tests were becoming more difficult to run, hence #2304. Sorry for the problem and thanks for bringing it up. I think it's out of our hands (in the sense that setuptools / namespace packages / "editable" mode are the b0rken thing), but hope @jonparrott will contradict me on that.

  10. theacodes commented on Sep 15, 2016

    @theacodes
    theacodes
    on Sep 15, 2016
    Contributor
    More actions

    Correct - setuptools does not handle editable installs for namespace packages correctly. This is tracked here with a legendary issue on pip here (not surprised to see @tseaver there).

    I've offered to do the work to fix this but I need some guidance from PyPA before I start hacking at it.

    Reacted by Thomas Schultz
  11. tseaver commented on Sep 16, 2016

    @tseaver
    tseaver
    on Sep 16, 2016
    Contributor
    More actions

    @jonparrott it is arguable that pip is broken in general about installing distributions with namespace packages (coercing them into a single, shared tree). It has never worked to mix installations between pip and setuptools when packages installed by each share a namespace.

  12. theacodes commented on Sep 16, 2016

    @theacodes
    theacodes
    on Sep 16, 2016
    Contributor
    More actions

    @tseaver fair. :)

  13. JustinBeckwith
    assigned
    waprin
    on Feb 1, 2021
  14. waprin
    removed their assignment
    on Feb 2, 2021
  15. parthea
    added a commit that references this issue on Sep 22, 2023

    docs: add samples from python-docs-samples/tasks (#36)

    19a15ff
  16. parthea
    added 2 commits that reference this issue on Apr 1, 2026

    revert: DataFrame display uses IPython's `_repr_mimebundle_` (#2316)

    e58cd20

    chore: librarian release pull request: 20251210T234907Z (#2324)

    5e1741d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the BigQuery API.testing

    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.