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 — cannot import name timestamp_pb2 when running on local ubuntu machine · Issue #1620 · googleapis/google-cloud-python

cannot import name timestamp_pb2 when running on local ubuntu machine #1620

New issue
Copy link
New issue
Copy link
Closed
Closed
cannot import name timestamp_pb2 when running on local ubuntu machine#1620
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.packaging

Description

@vsubramani
vsubramani
opened on Mar 16, 2016
Issue body actions

Importing gcloud barfs on my local machine. Here the system and version details and the error message.

This may be similar to what others are seeing. I can't reopen this issue, hence creating a new one.

Python Version: 2.7.6
Ubuntu Version: 14.04
gcloud Version: 0.11

Traceback (most recent call last):
  File "Sample.py", line 1, in <module>
    from gcloud import pubsub
  File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py", line 181, in SetupPathsAndImport
    return real_import(name, globals, locals, fromlist, level)
  File "/usr/local/lib/python2.7/dist-packages/gcloud/pubsub/__init__.py", line 26, in <module>
    from gcloud.pubsub.client import Client
  File "/usr/local/lib/python2.7/dist-packages/gcloud/pubsub/client.py", line 18, in <module>
    from gcloud.client import JSONClient
  File "/usr/local/lib/python2.7/dist-packages/gcloud/client.py", line 20, in <module>
    from gcloud._helpers import _determine_default_project
  File "/usr/local/lib/python2.7/dist-packages/gcloud/_helpers.py", line 26, in <module>
    from google.protobuf import timestamp_pb2
ImportError: cannot import name timestamp_pb2

Activity

  1. jgeewax commented on Mar 16, 2016

    @jgeewax
    jgeewax
    on Mar 16, 2016
    Contributor
    More actions

    Related to https://github.com/GoogleCloudPlatform/gcloud-common/issues/48 ?

  2. vsubramani commented on Mar 16, 2016

    @vsubramani
    vsubramani
    on Mar 16, 2016
    Author
    More actions

    Yes, and #1436.

  3. dhermes commented on Mar 16, 2016

    @dhermes
    dhermes
    on Mar 16, 2016
    Contributor
    More actions

    @jgeewax Nope. It's all been catalogued in #1436.

    @vsubramani I re-opened that issue for you. Let's discuss over there.

    In particular, weigh in on whether you've run pip install with --upgrade and also run the suggested commands to find the google/protobuf folder and list the files contained in it

  4. dhermes commented on Mar 16, 2016

    @dhermes
    dhermes
    on Mar 16, 2016
    Contributor
    More actions

    Ahh I see. The original report for #1436 started in gcloud-common

  5. dhermes
    closed this as completedon Mar 16, 2016
  6. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    packaging
    on Mar 18, 2016
  7. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  8. parthea
    added a commit that references this issue on Oct 21, 2023

    chore: move samples from python-docs-sample (#45)

    d369a34
  9. parthea
    added a commit that references this issue on Mar 9, 2026

    feat(zb-experimental): implement append (#1620)

    79aa54b
  10. parthea
    added a commit that references this issue on Apr 1, 2026

    chore: small fix of logging (#1620)

    e0c3534
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: datastoreIssues related to the Datastore API.packaging

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.