gae-init / gae-init-upload

Fork of gae-init with Google Cloud Storage
http://upload.gae-init.appspot.com
MIT License
36 stars 15 forks source link

Steps needed to run gae-init-upload? #3

Closed mdxs closed 10 years ago

mdxs commented 10 years ago

Are there any special steps needed to run gae-init-upload locally?

I'm getting the following on a run:

INFO     2014-04-13 20:51:37,953 devappserver2.py:764] Skipping SDK update check.
WARNING  2014-04-13 20:51:37,955 api_server.py:374] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO     2014-04-13 20:51:37,957 api_server.py:171] Starting API server at: http://localhost:49849
INFO     2014-04-13 20:51:37,966 dispatcher.py:182] Starting module "default" running at: http://127.0.0.1:8080
INFO     2014-04-13 20:51:37,967 admin_server.py:117] Starting admin server at: http://localhost:8081
ERROR    2014-04-13 20:52:30,035 wsgi.py:262] 
Traceback (most recent call last):
  File "/home/mdxs/google_appengine/google/appengine/runtime/wsgi.py", line 239, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/home/mdxs/google_appengine/google/appengine/runtime/wsgi.py", line 298, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/home/mdxs/google_appengine/google/appengine/runtime/wsgi.py", line 84, in LoadObject
    obj = __import__(path[0])
  File "/home/mdxs/dev/gh/gae-init-upload/main/main.py", line 5, in <module>
    from flask.ext import wtf
  File "/home/mdxs/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 888, in load_module
    raise ImportError('No module named %s' % fullname)
ImportError: No module named flask
INFO     2014-04-13 20:52:30,045 module.py:627] default: "GET / HTTP/1.1" 500 -

While there is a flask in the lib AFAIK (this is still the "old"-style).

Now do I need something special to tell the GAE SDK to mimic a GCS bucket or something... perhaps not solving above, but I guess there needs to be something done (or is this all automated).

TIA

lipis commented 10 years ago

It works for me.. try to run it with the -C (and yes it still in the old format and will be updated soon)

As for the GCS bucket you don't have to do much as far as I know locally.. but in order for it to work online you will have to follow the step 5: https://developers.google.com/appengine/docs/python/googlestorage/#Python_Prerequisites

It says that is deprecated but this method is actually not (https://developers.google.com/appengine/docs/python/blobstore/#Python_Using_the_Blobstore_API_with_Google_Cloud_Storage) I just didn't find the detailed instructions regarding the activation part..

mdxs commented 10 years ago

Thnx, will try some more tomorrow. Op 13 apr. 2014 23:29 schreef "Lipis" notifications@github.com:

It works for me.. try to run it with the -C (and yes it still in the old format and will be updated soon)

As for the GCS bucket you don't have to do much as far as I know locally.. but in order for it to work online you will have to follow the step 5: https://developers.google.com/appengine/docs/python/googlestorage/#Python_Prerequisites

It says that is deprecated but this method is actually not ( https://developers.google.com/appengine/docs/python/blobstore/#Python_Using_the_Blobstore_API_with_Google_Cloud_Storage) I just didn't find the detailed instructions regarding the activation part..

Reply to this email directly or view it on GitHubhttps://github.com/gae-init/gae-init-upload/issues/3#issuecomment-40320482 .

lipis commented 10 years ago

actually not.. I'm getting the ImportError: No module named flask as well.. will investigate :)

lipis commented 10 years ago

Should be fixed now :) Verify it tomorrow and let me know..

mdxs commented 10 years ago

Fixed in https://github.com/gae-init/gae-init-upload/commit/b94a4f5cb51d706d4613ab97a650560b4f597982 (at least running local, but that was what this issue was about)

lipis commented 10 years ago

So I'm guessing it worked all the way.. right?

mdxs commented 10 years ago

Correct, and I planned to add a Thank You, but that got lost in other bugs :-)

So: thank you, much appreciated... returning the favour with some PRs.

lipis commented 10 years ago

You're very welcome.. I'll go through the PRs later.. on vacations this week so not very often connected to internet :)