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 — Core "grpc" extra not found by setuptools · Issue #4186 · googleapis/google-cloud-python

Core "grpc" extra not found by setuptools #4186

New issue
Copy link
New issue
Copy link
Closed
Closed
Core "grpc" extra not found by setuptools#4186
Copy link
Assignees
dhermes
Labels
api: coreapi: pubsubIssues related to the Pub/Sub API.packagingpriority: p0Highest priority. Critical issue. P0 implies highest priority.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@markcwhitfield
markcwhitfield
opened on Oct 13, 2017
Issue body actions

google-cloud-pubsub==0.28.4 requires google-cloud-core[grpc] > 0.27.1, <0.28dev. I can see from the core library's setuptools build that the grpc extra is declared; however, setuptools does not seem to be able to locate it from the published PyPi package for whatever reason:

$ docker run python:3 bash -c "pip install google-cloud-core[grpc]"  # python:2 no different
Collecting google-cloud-core[grpc]
  Downloading google_cloud_core-0.27.1-py2.py3-none-any.whl (50kB)
  google-cloud-core 0.27.1 does not provide the extra 'grpc'
...
Successfully installed cachetools-2.0.1 certifi-2017.7.27.1 chardet-3.0.4 google-auth-1.1.1 google-cloud-core-0.27.1 googleapis-common-protos-1.5.3 idna-2.6 protobuf-3.4.0 pyasn1-0.3.7 pyasn1-modules-0.1.5 requests-2.18.4 rsa-3.4.2 six-1.11.0 urllib3-1.22

When installing via pip this is not really an issue, so long as grpcio is included somewhere in the dependency tree, as pip will happily ignore it. Setuptools itself will not, however, and including google-cloud-pubsub==0.28.4 as a requirement in a setuptools build is currently impossible, so far as I can tell.

Activity

  1. dhermes commented on Oct 13, 2017

    @dhermes
    dhermes
    on Oct 13, 2017
    Contributor
    More actions

    @markcwhitfield Sorry about that! The issue is that we haven't released the updated google-cloud-core that requires that yet!

    Thanks a ton for reporting!

  2. dhermes
    added
    api: pubsubIssues related to the Pub/Sub API.
    api: core
    packaging
    priority: p0Highest priority. Critical issue. P0 implies highest priority.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Oct 13, 2017
  3. markcwhitfield commented on Oct 13, 2017

    @markcwhitfield
    markcwhitfield
    on Oct 13, 2017
    Author
    More actions

    Oh, haha. Hadn't even noticed that 0.28.4 was only 3 hours old. Just poor timing on my part, I suppose.

  4. dhermes commented on Oct 13, 2017

    @dhermes
    dhermes
    on Oct 13, 2017
    Contributor
    More actions

    And poor something else on our part!

  5. theacodes commented on Oct 13, 2017

    @theacodes
    theacodes
    on Oct 13, 2017
    Contributor
    More actions

    i'd prefer we hold off on releasing core (it's a big release) and just release a patch of pubsub that fixes this.

  6. dhermes commented on Oct 13, 2017

    @dhermes
    dhermes
    on Oct 13, 2017
    Contributor
    More actions

    SGTM. @lukesneeringer SGTY?

  7. dhermes commented on Oct 13, 2017

    @dhermes
    dhermes
    on Oct 13, 2017
    Contributor
    More actions

    Can I propose we add .devN suffixes to all version numbers? This way we can accurately reflect, e.g. that google-cloud-pubsub depends on google-cloud-core >= 0.28.0.dev1.

    Ref: https://snarky.ca/how-i-manage-package-version-numbers/

  8. lukesneeringer commented on Oct 17, 2017

    @lukesneeringer
    lukesneeringer
    on Oct 17, 2017
    Contributor
    More actions

    Oh wow, fail on me for not seeing a p0 ticket.
    Yes, releasing an update to pubsub to solve the immediate problem is fine.

  9. noamt commented on Oct 19, 2017

    @noamt
    noamt
    on Oct 19, 2017
    More actions

    So how can we actually resolve this in the meantime?
    My setup.py declares google-cloud-storage==1.5.0 and google-cloud-pubsub==0.28.4 but it failes with

    Traceback (most recent call last):
      File "setup.py", line 15, in <module>
        install_requires=['google-cloud-storage==1.5.0', 'google-cloud-pubsub==0.28.4', 'backoff==1.4.3'],
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/Library/Python/2.7/site-packages/setuptools/command/install.py", line 67, in run
        self.do_egg_install()
      File "/Library/Python/2.7/site-packages/setuptools/command/install.py", line 117, in do_egg_install
        cmd.run()
      File "/Library/Python/2.7/site-packages/setuptools/command/easy_install.py", line 411, in run
        self.easy_install(spec, not self.no_deps)
      File "/Library/Python/2.7/site-packages/setuptools/command/easy_install.py", line 653, in easy_install
        return self.install_item(None, spec, tmpdir, deps, True)
      File "/Library/Python/2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
        self.process_distribution(spec, dist, deps)
      File "/Library/Python/2.7/site-packages/setuptools/command/easy_install.py", line 745, in process_distribution
        [requirement], self.local_index, self.easy_install
      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 875, in resolve
        new_requirements = dist.requires(req.extras)[::-1]
      File "/Library/Python/2.7/site-packages/pkg_resources/__init__.py", line 2683, in requires
        "%s has no such extra feature %r" % (self, ext)
    pkg_resources.UnknownExtra: google-cloud-core 0.27.1 has no such extra feature 'grpc'```
    
  10. dhermes commented on Nov 3, 2017

    @dhermes
    dhermes
    on Nov 3, 2017
    Contributor
    More actions

    Sorry for not following up but this has been resolved by the latest set of releases (mentioned in https://github.com/GoogleCloudPlatform/google-cloud-python/releases/tag/0.28.0)

  11. dhermes
    closed this as completedon Nov 3, 2017
  12. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: coreapi: pubsubIssues related to the Pub/Sub API.packagingpriority: p0Highest priority. Critical issue. P0 implies highest priority.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.