after gcloud components update --> WARN....older versions of GCloud Platform tools on system PATH.

2,971 views
Skip to first unread message

de...@pathoz.com

unread,
Oct 17, 2016, 9:38:45 PM10/17/16
to Google Cloud Endpoints

The error I'm getting is:


WARNING: There are older versions of Google Cloud Platform tools on your system PATH.

Please remove the following to avoid accidentally invoking these old tools:

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/endpointscfg.py

 


When I remove the file specified above, my command to build my discovery document of course stops working....


Instead of running:

/usr/local/bin/endpointscfg.py get_discovery_doc -f rpc service_backend.main.PersonService service_backend.main.TrackingService  service_backend.main.UserService service_backend.main.DisplayService service_backend.main.ChatService service_backend.main.SurveyService service_backend.main.BehaviorService


Do I have the new endpoints installed (see below) and what is the new syntax I should be using to build my  projectName-v1.discovery file??


Thanks,

D



Your current Cloud SDK version is: 130.0.0

The latest available version is: 130.0.0


┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐

│                                                  Components                                                 │

├───────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤

│     Status    │                         Name                         │            ID            │    Size   │

├───────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤

│ Not Installed │ App Engine Go Extensions                             │ app-engine-go            │  47.2 MiB │

│ Not Installed │ Cloud Datastore Emulator                             │ cloud-datastore-emulator │  15.4 MiB │

│ Not Installed │ Cloud Datastore Emulator (Legacy)                    │ gcd-emulator             │  38.1 MiB │

│ Not Installed │ Cloud Pub/Sub Emulator                               │ pubsub-emulator          │  16.3 MiB │

│ Not Installed │ Google Container Registry's Docker credential helper │ docker-credential-gcr    │   2.2 MiB │

│ Not Installed │ gcloud Alpha Commands                                │ alpha                    │   < 1 MiB │

│ Not Installed │ gcloud Beta Commands                                 │ beta                     │   < 1 MiB │

│ Not Installed │ gcloud app Java Extensions                           │ app-engine-java          │ 135.6 MiB │

│ Not Installed │ gcloud app PHP Extensions (Mac OS X)                 │ app-engine-php-darwin    │  21.9 MiB │

│ Not Installed │ kubectl                                              │ kubectl                  │  15.8 MiB │

│ Installed     │ BigQuery Command Line Tool                           │ bq                       │   < 1 MiB │

│ Installed     │ Cloud SDK Core Libraries                             │ core                     │   4.9 MiB │

│ Installed     │ Cloud Storage Command Line Tool                      │ gsutil                   │   2.8 MiB │

│ Installed     │ Default set of gcloud commands                       │ gcloud                   │           │

│ Installed     │ gcloud app Python Extensions                         │ app-engine-python        │   7.2 MiB │

└───────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘

John Daughtry

unread,
Oct 18, 2016, 1:51:42 PM10/18/16
to Google Cloud Endpoints, Sepehr Ebrahimzadeh
Sep, can you take this?


--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/42bed0fd-b60f-4ebb-ab3c-2f8c007264e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

D. T.

unread,
Oct 18, 2016, 2:48:44 PM10/18/16
to Google Cloud Endpoints
That warning is relatively benign. Are you intending to use the old Endpoints or new? You should use whatever version is in your gcloud SDK.

Dewey Gaedcke

unread,
Oct 18, 2016, 2:54:11 PM10/18/16
to Google Cloud Endpoints
Yes, I can tell it's benign.....but without really understanding the consequences of my preference, I'd prefer to be using the new endpoints.

But I can't see ANY version listed in my GCLOUD components and even if I did, I would still not know the new syntax to use it to build my discovery document.

So I guess my question is in 4 parts:
  1. How do I know which version of Endpoints I currently have installed
  2. How do I upgrade to the latest Endpoints
  3. What will be the consequences of that upgrade  (roughly in terms of compatibility issues)
  4. What is the new syntax I use to build future discovery json docs from the new endpoints

Thanks for your help.
Dewey

Dewey Gaedcke

unread,
Oct 19, 2016, 1:14:59 AM10/19/16
to Google Cloud Endpoints
ok, so I went and looked at the source in:  

/usr/local/bin/endpointscfg.py    (this is the tool I've been using to generate out xx-v1.discovery doc and our gradle-discovery.zip (for Android)


it says copyright Google 2007  (no version #)

so it seems I'm using a very old version of these tools


I'd appreciate anyone who can tell me how to clean this up and get the correct components installed with GCloud..


Thanks,
Dewey

D. T.

unread,
Oct 20, 2016, 4:16:26 PM10/20/16
to Google Cloud Endpoints
Do you recall how these even got there? Most people just have the tool shipped with the Python SDK and use it from the SDK directory, but this seems to be copied out. I would just remove that file and possibly /usr/local/lib/python-2.*/site-packages/endpoints if those exist. You want to make sure you're using endpointscfg from the Cloud SDK and that there's no existing endpoints lib in the path.

Dewey Gaedcke

unread,
Oct 20, 2016, 4:56:51 PM10/20/16
to Google Cloud Endpoints
No idea.....I'm assuming some Google installer put them there because it's not the kind of thing I would have presumed to do....but I can't be sure.
I do know that every time I run GoogleAppEngine launcher, I get a Fatal error:
"Can't find dev_appserver.py (install problem?)"

so perhaps something is messed up on my system.
I didn't find anything in:  /usr/local/lib/python2.7/site-packages/

and, I've renamed "endpointscfg.py" to "notinuse_ endpointscfg.py" temporarily to confirm I can still work...

and I'm expecting that from now own, the cmd to use when building ts-v1.discovery will be:
~/gcloud_tools/google-cloud-sdk/platform/google_appengine/endpointscfg.py get_discovery_doc -f rpc service_backend.main.PersonService service_backend.main.TrackingService  service_backend.main.UserService service_backend.main.DisplayService service_backend.main.ChatService service_backend.main.SurveyService service_backend.main.BehaviorService


is that right?

by the way, there are LOTS other files in that same directory.......should I leave them?
It looks like this:


D. T.

unread,
Oct 20, 2016, 5:50:00 PM10/20/16
to Dewey Gaedcke, Google Cloud Endpoints
On Thu, Oct 20, 2016 at 1:56 PM Dewey Gaedcke <de...@pathoz.com> wrote:
No idea.....I'm assuming some Google installer put them there because it's not the kind of thing I would have presumed to do....but I can't be sure.
I do know that every time I run GoogleAppEngine launcher, I get a Fatal error:
"Can't find dev_appserver.py (install problem?)"


If you add the Cloud SDK to your PATH, you should be good to go. That would be ~/gcloud_tools/google-cloud-sdk/bin, which should have endpointscfg.py in it.
 
so perhaps something is messed up on my system.
I didn't find anything in:  /usr/local/lib/python2.7/site-packages/

and, I've renamed "endpointscfg.py" to "notinuse_ endpointscfg.py" temporarily to confirm I can still work...

and I'm expecting that from now own, the cmd to use when building ts-v1.discovery will be:
~/gcloud_tools/google-cloud-sdk/platform/google_appengine/endpointscfg.py get_discovery_doc -f rpc service_backend.main.PersonService service_backend.main.TrackingService  service_backend.main.UserService service_backend.main.DisplayService service_backend.main.ChatService service_backend.main.SurveyService service_backend.main.BehaviorService


If you do the above, just endpointscfg.py with no path should work.
 

is that right?

by the way, there are LOTS other files in that same directory.......should I leave them?
It looks like this:



If this is the Cloud SDK then yes, this is right. 

--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages