appcfg.py no longer available?

757 views
Skip to first unread message

Jukka Hautakorpi

unread,
Feb 28, 2015, 1:35:18 AM2/28/15
to google-c...@googlegroups.com
I used google app engine sdk in ubuntu last year and it worked fine.
Now it still worked (the app update part) but i wanted to update it and it does not work anymore.

Downloaded the new zip and installed it (took my project folder to safe first because the install wanted to delete the old dir)

Then restarted pc many times and reinstalled sdk, reauthed, still not working and cannot find the ~/google-cloud-sdk/bin/appcfg.py:


xxx@ubuntu:~/google-cloud-sdk/bin$ appcfg.py update xxxproject/

Sorry, command-not-found has crashed! Please file a bug report at:

https://bugs.launchpad.net/command-not-found/+filebug

Please include the following information with the report:


command-not-found version: 0.2.44


I have python 7.3 and not 7.2.





Glenn Lewis

unread,
Feb 28, 2015, 1:41:46 AM2/28/15
to Jukka Hautakorpi, google-c...@googlegroups.com
Did you install the gcloud components like:
$ gcloud components update app
Your app is a Python 2.7 app?
What does "gcloud version" report?
-- Glenn

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sdk/39bd7cd2-9ed6-417f-add3-e4a9df593b5a%40googlegroups.com.

Jukka Hautakorpi

unread,
Feb 28, 2015, 3:35:29 AM2/28/15
to google-c...@googlegroups.com, jukka.ha...@gmail.com
Hello

Thank you for reply!









jukka@ubuntu:~$ gcloud version


Google Cloud SDK 0.9.49




bq 2.0.18


bq-nix 2.0.18


compute 2015.02.24


core 2015.02.24


core-nix 2014.10.20


dns 2015.02.24


gcutil 1.16.5


gcutil-nix 1.16.5


gsutil 4.9


gsutil-nix 4.6


sql 2015.02.24




I did not have that installed, after trying to install:









~$ gcloud components update app




The following components will be installed:


    ---------------------------------------------------------------------------------


    | App Engine Command Line Interface (Preview)            | 2015.02.24 |  < 1 MB |


    | App Engine Managed VMs Component (Preview)             | 2015.01.22 | 84.6 MB |


    | Developer Preview gcloud Commands                      | 2015.02.24 |  < 1 MB |


    | Native extensions for preview commands (Linux, x86_64) |     0.10.1 |  3.4 MB |


    | gcloud app Go Extensions (Linux, x86_64)               |     1.9.18 | 26.4 MB |


    | gcloud app Java Extensions                             |     1.9.18 | 92.9 MB |


    | gcloud app Python Extensions                           |     1.9.18 |  6.8 MB |


    ---------------------------------------------------------------------------------




Do you want to continue (Y/n)?  y




|- Creating update staging area                             -|


|============================================================|




|- Installing: App Engine Command Line Interface (Preview)  -|


|============================================================|


|- Installing: App Engine Managed VMs Component (Preview)   -|


|============================================================|


Traceback (most recent call last):


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 196, in <module>


    main()


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 192, in main


    _cli.Execute()


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 547, in Execute


    result = args.cmd_func(cli=self, args=args)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1023, in Run


    result = command_instance.Run(args)


  File "/home/jukka/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/components/update.py", line 64, in Run


    args.component_ids, allow_no_backup=args.allow_no_backup)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/update_manager.py", line 533, in Update


    self._InstallFunction(staging_state, diff))


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/update_manager.py", line 437, in _UpdateWithProgressBar


    action_func(component.id, progress_callback=pb.SetProgress)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/update_manager.py", line 442, in Inner


    progress_callback=progress_callback)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/local_state.py", line 82, in _TryFunc


    return func(*args, **kwargs)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/local_state.py", line 474, in Install


    component_id, progress_callback=progress_callback)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/installers.py", line 111, in Install


    return self._InstallTar(component, progress_callback=progress_callback)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/installers.py", line 149, in _InstallTar


    progress_callback=progress_callback)


  File "/home/jukka/google-cloud-sdk/./lib/googlecloudsdk/core/updater/installers.py", line 210, in DownloadAndExtractTar


    members = tar.getmembers()


  File "/usr/lib/python2.7/tarfile.py", line 1805, in getmembers


    self._load()        # all members, we first have to


  File "/usr/lib/python2.7/tarfile.py", line 2380, in _load


    tarinfo = self.next()


  File "/usr/lib/python2.7/tarfile.py", line 2315, in next


    self.fileobj.seek(self.offset)


  File "/usr/lib/python2.7/gzip.py", line 429, in seek


    self.read(1024)


  File "/usr/lib/python2.7/gzip.py", line 256, in read


    self._read(readsize)


  File "/usr/lib/python2.7/gzip.py", line 303, in _read


    self._read_eof()


  File "/usr/lib/python2.7/gzip.py", line 342, in _read_eof


    hex(self.crc)))


IOError: CRC check failed 0x452a038a != 0xd020c381L

Glenn Lewis

unread,
Feb 28, 2015, 7:51:02 PM2/28/15
to Jukka Hautakorpi, google-c...@googlegroups.com
Hmmm... I've never seen a failed CRC check before.  Can you try updating again?
If that still fails, I would try re-installing the Cloud SDK from scratch and then perform the manual component updates again.
-- Glenn

Jukka Hautakorpi

unread,
Mar 6, 2015, 9:41:12 PM3/6/15
to google-c...@googlegroups.com
Thank you for your help! Better but still not working local dev server


Didn't know how to uninstall the gae-sdk so i just used mv command to preserve my project folder also.
mv google-cloud-sdk google-cloud-sdk_bak

I downloaded the packet again and got it istalled and updated modules was also ok.
But there is something wrong with the paths. It still points to /bin folder even if the .py commands are in the /platfom/google_appengine/
Got this fixed manually and now it finds the .py commands everywhere


$PATH variable=

/home/jukka/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/git:/home/jukka/google-cloud-sdk/platform/google-appengine


Also did the auth process again, and activated the project, not sure though is it the project name or the folder name of the project.


But running local gives this:

jukka@ubuntu:~/google-cloud-sdk/platform$ dev_appserver.py ajopaivakirja










Traceback (most recent call last):


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in <module>


    _run_file(__file__, globals())


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 79, in _run_file


    execfile(_PATHS.script_file(script_name), globals_)


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 36, in <module>


    from google.appengine.tools.devappserver2 import dispatcher


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line 29, in <module>


    from google.appengine.tools.devappserver2 import module


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/module.py", line 71, in <module>


    from google.appengine.tools.devappserver2 import vm_runtime_factory


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_factory.py", line 25, in <module>


    from google.appengine.tools.devappserver2 import vm_runtime_proxy


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/vm_runtime_proxy.py", line 29, in <module>


    from google.appengine.tools.devappserver2 import log_manager


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/log_manager.py", line 34, in <module>


    from google.appengine.tools.docker import containers


  File "/home/jukka/google-cloud-sdk/platform/google_appengine/google/appengine/tools/docker/containers.py", line 47, in <module>


    import docker


ImportError: No module named docker





Jukka Hautakorpi

unread,
Mar 6, 2015, 10:33:22 PM3/6/15
to google-c...@googlegroups.com
Sorry,
Got it working now, had to install also the python+php with

gcloud components update gae-python


There still is warnings about old versions but when i mv:d them it didn't work. When mv:d them back it works!

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:

/home/jukka/google-cloud-sdk/platform/google_appengine/endpointscfg.py
/home/jukka/google-cloud-sdk/platform/google_appengine/dev_appserver.py
/home/jukka/google-cloud-sdk/platform/google_appengine/appcfg.py
/home/jukka/google-cloud-sdk/platform/google_appengine/google_sql.py


So thank you for your help!

Running the local server with

:~/google-cloud-sdk/platform$ dev_appserver.py --php_executable_path=/usr/bin/php-cgi --host=0.0.0.0 myappnamehere

Reply all
Reply to author
Forward
0 new messages