Code Monkey home page Code Monkey logo

Comments (3)

acesuares avatar acesuares commented on September 28, 2024

Maybe solutution:

cd WebPutty
nano fabfile.py
# change:
# APPENGINE_PATH = '/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine'
# to: the real path to your appengine !!!!
# change:
# PYTHON = '/usr/bin/python2.5'
# to: PYTHON = '/usr/bin/python'
# (use 'which python' to find the path to your python)

Now, when you do

  fab deploy

the following error will come up"

ImportError: No module named google.appengine.api

This is because there is already a google in python:

>>> import google
>>> google.__file__
'/usr/lib/python2.7/dist-packages/google/__init__.pyc'

There should be a better way, but I did this to get rid of the error:

sudo rm -rf /usr/lib/python2.7/dist-packages/google

from webputty.

XULRunner42 avatar XULRunner42 commented on September 28, 2024

I had this problem too, I think it's the instructions for installing Google App Engine that are not clear. The download page instructs you to visit another page for instructions, which links you back to the download page for further details.

No such details are provided anywhere. I guess they just expect you to know how Python works with packages.

The google_appengine folder does not just need to be unzipped, but also put into your Python system.path so, on my system, running the unzip command from inside /usr/lib/python2.7/site-packages/ creates a google_appengine folder in there, and the instructions from WebPutty readme work to deploy everything from then on.

I was trying to run pip deploy from inside of google_appengine/, obviously a newb mistake.

I do not think you need to rm -rf /usr/lib/python2.7/dist-packages anything.

from webputty.

acesuares avatar acesuares commented on September 28, 2024

I gave up. Do no harm does not mean anything.

from webputty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.