Skip to content

Can't pip install google-cloud ? #2298

Closed

Description

@jgeewax

(from a customer)

Hi-

I tried installing the newly renamed google-cloud libraries via pip but it doens't look like the python repo got updated.

What this basically means you'd have to use the older gcloud-python version...which is fine but anyone going through our install instructions is in for a surprise (and a pretty miserable experience)

https://github.com/GoogleCloudPlatform/google-cloud-python#quick-start
https://googlecloudplatform.github.io/google-cloud-python/

(env)srashid@srashid-glaptop2:~/Desktop/emulators/pyapp$ pip install google-cloud
Downloading/unpacking google-cloud
Could not find any downloads that satisfy the requirement google-cloud
Cleaning up...
No distributions at all found for google-cloud
Storing debug log for failure in /home/srashid/.pip/pip.log

in pip.log

Downloading/unpacking google-cloud
Getting page https://pypi.python.org/simple/google-cloud/
URLs to search for versions for google-cloud:

  • https://pypi.python.org/simple/google-cloud/
    Analyzing links from page https://pypi.python.org/simple/google-cloud/
    Could not find any downloads that satisfy the requirement google-cloud
    Cleaning up...
    Removing temporary dir /home/srashid/Desktop/emulators/pyapp/env/build...
    No distributions at all found for google-cloud
    Exception information:
    Traceback (most recent call last):
    File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
    File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
    File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
    File "/home/srashid/Desktop/emulators/pyapp/env/local/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
    DistributionNotFound: No distributions at all found for google-cloud

gcloud's references shows:
https://pypi.python.org/simple/gcloud/

bug google-cloud is empty:
https://pypi.python.org/simple/google-cloud/

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Sep 12, 2016
  2. daspecster commented on Sep 12, 2016

    @daspecster
    Contributor

    I believe once the 0.19.0 release gets cut, that this will be resolved.

    See: #2270.

    @dhermes, maybe until that release get's cut we should revert the README?

  3. dhermes commented on Sep 12, 2016

    @dhermes
    Contributor

    Indeed. Was planning on getting it in on Thursday but there was some pushback. If we don't have movement on it today we can make those temporary edits.

  4. ofek commented on Sep 12, 2016

    @ofek
    Contributor

    If so, you can re-open/merge this PR https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2264 and revert it when the migration is complete.

  5. dhermes commented on Sep 12, 2016

    @dhermes
    Contributor

    Thanks for being alert on this @Ofekmeister

  6. bjwatson commented on Sep 12, 2016

    @bjwatson

    @dhermes I doubt #2258 will be done today, so it's your choice what release you would like to cut (0.18.2 or 0.19.0) to address this immediate concern, knowing that the namespace breaking change will be available in another couple days.

  7. dhermes commented on Sep 12, 2016

    @dhermes
    Contributor

    @bjwatson The "immediate concern" can be addressed by just fixing up some docs / README

  8. bjwatson commented on Sep 13, 2016

    @bjwatson

    Awesome. Thanks @dhermes.

  9. dhermes commented on Sep 13, 2016

    @dhermes
    Contributor

    The pressing issue is fixed by #2264 but we still need to cut a final monolithic release and then I'll start work in the release-by-service approach.

  10. ryanmcdowell commented on Sep 15, 2016

    @ryanmcdowell

    The issue of the install command being wrong was fixed but all of the imports in the examples are still wrong which will cause just as much confusion.

  11. jorvis commented on Sep 15, 2016

    @jorvis

    This is helpful to see. Is this why after installing the modules and following the example for Google Storage I get this?

    from google.cloud import storage
    

    which returns:

    ImportError: cannot import name storage
    
  12. jorvis commented on Sep 15, 2016

    @jorvis

    For those of us just finding this, can someone point out the proper place for an example of accessing Google Storage until the fix is done? I just installed from the GitHub trunk and the problem persists.

  13. dhermes commented on Sep 15, 2016

    @dhermes
    Contributor
  14. dhermes commented on Sep 19, 2016

    @dhermes
    Contributor

    Pre-emptively closing since once the tag builds this will be on PyPI. (The build has been waiting to start for 40+ minutes, so hopefully soon.)

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

Metadata

Metadata

Assignees

Labels

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