My favorites | Sign in
Project Logo
             
Details: Show all Hide all

Last 30 days

  • Dec 17, 2009
    Pylons (How to get Pylons working on appengine) Wiki page commented on by alecflett   -   The new release of WebOb seems to be incompatible with Pylons 0.9.7, and so this doesn't seem to work under pip. This line from the pylons source: from webob import UnicodeMultiDict Raises an import error (should now be 'from webob.multidict import UnicodeMultiDict) However, I was able to get this to work by first installing the "old" webob: $ bandrecon/bin/pip install WebOb==0.9.6.1 and *then* installing Pylons. I think this works with easy_install because Pylons' setup.cfg tells easy_install to pull packages from pylonshq.com. pip doesn't seem to honor that.
    The new release of WebOb seems to be incompatible with Pylons 0.9.7, and so this doesn't seem to work under pip. This line from the pylons source: from webob import UnicodeMultiDict Raises an import error (should now be 'from webob.multidict import UnicodeMultiDict) However, I was able to get this to work by first installing the "old" webob: $ bandrecon/bin/pip install WebOb==0.9.6.1 and *then* installing Pylons. I think this works with easy_install because Pylons' setup.cfg tells easy_install to pull packages from pylonshq.com. pip doesn't seem to honor that.
  • Dec 03, 2009
    issue 25 (os.mkdir function is missing in pkg_resource.py(App Engine S...) commented on by ianbicking   -   I'm not really sure how both of them got in there. Also note you can change your main.py (or whatever file you have listed in app.yaml) and put this in: import os os.mkdir = None And it'll fix this problem. (At this time, all the other patches in appengine_monkey have made their way into the normal environment, and aren't otherwise necessary, except this new mkdir import)
    I'm not really sure how both of them got in there. Also note you can change your main.py (or whatever file you have listed in app.yaml) and put this in: import os os.mkdir = None And it'll fix this problem. (At this time, all the other patches in appengine_monkey have made their way into the normal environment, and aren't otherwise necessary, except this new mkdir import)
  • Dec 03, 2009
    issue 25 (os.mkdir function is missing in pkg_resource.py(App Engine S...) commented on by poajex   -   There are actually 2 of "appengine_monkey.py" in an application directory. * ./MyApp/app/lib/python/appengine_monkey.py * ./MyApp/app/lib/python/appengine_monkey_files/appengine_monkey.py And I've modified both of them. Is this correct?
    There are actually 2 of "appengine_monkey.py" in an application directory. * ./MyApp/app/lib/python/appengine_monkey.py * ./MyApp/app/lib/python/appengine_monkey_files/appengine_monkey.py And I've modified both of them. Is this correct?
  • Dec 03, 2009
    issue 25 (os.mkdir function is missing in pkg_resource.py(App Engine S...) commented on by poajex   -   I got similar problem. Perhaps same? I got "exceptions.ImportError" when I try to run an application with "dev_appserver.py" File "/path/to/MyApp/app/lib/python/pkg_resources.py", line 24, in <module> from os import utime, rename, unlink, mkdir ImportError: cannot import name mkdir Then I added "Missing.patch(os, 'mkdir')" into "appengine_monkey.py" Problem seems to be solved.
    I got similar problem. Perhaps same? I got "exceptions.ImportError" when I try to run an application with "dev_appserver.py" File "/path/to/MyApp/app/lib/python/pkg_resources.py", line 24, in <module> from os import utime, rename, unlink, mkdir ImportError: cannot import name mkdir Then I added "Missing.patch(os, 'mkdir')" into "appengine_monkey.py" Problem seems to be solved.

Earlier this year

  • Nov 06, 2009
    issue 25 (os.mkdir function is missing in pkg_resource.py(App Engine S...) reported by pyshao   -   What steps will reproduce the problem? 1. by starting the application, there is a import error. 2. the dev_appserver can not import funciton "mkdir" from module "os" What version of the product are you using? On what operating system? Pylons 0.97, GAE SDK 1.2.7, Windows XP with Sp2, English. Please provide any additional information below. i resolved the problem by adding a line of code after line 37 in appengine_monkey.py: Missing.patch(os, 'mkdir') but i do not know the rist behind this modification.
    What steps will reproduce the problem? 1. by starting the application, there is a import error. 2. the dev_appserver can not import funciton "mkdir" from module "os" What version of the product are you using? On what operating system? Pylons 0.97, GAE SDK 1.2.7, Windows XP with Sp2, English. Please provide any additional information below. i resolved the problem by adding a line of code after line 37 in appengine_monkey.py: Missing.patch(os, 'mkdir') but i do not know the rist behind this modification.
  • Aug 25, 2009
    Pylons (How to get Pylons working on appengine) Wiki page commented on by Belxjander   -   Ive managed to remove the 2.5 limitation and run the code on Windows using Python 2.6 and also 3.1. The changes are minimal (remove several lines and fix a unix hardcoded path) Also I skip the pkg_resources.py being installed with no loss of functionality
    Ive managed to remove the 2.5 limitation and run the code on Windows using Python 2.6 and also 3.1. The changes are minimal (remove several lines and fix a unix hardcoded path) Also I skip the pkg_resources.py being installed with no loss of functionality
  • Aug 18, 2009
    Pylons (How to get Pylons working on appengine) Wiki page commented on by carl.roach   -   On Win32 I had to run: {{{c:\pip\pip.py install beaker}}} at the end of these instructions; after which the website ran locally, fine.
    On Win32 I had to run: {{{c:\pip\pip.py install beaker}}} at the end of these instructions; after which the website ran locally, fine.
  • Aug 18, 2009
    Pylons (How to get Pylons working on appengine) Wiki page commented on by carl.roach   -   Jeanmat's comment saves the day on Win32. Alas, it got stung by wiki mark-up. here's a version verbatim. {{{ if sys.platform == 'win32': filename = glob.glob(os.path.join(home_dir, 'Lib/site-packages/*/pkg_resources.py'))[0] else: filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site-packages/*/pkg_resources.py'))[0] }}}
    Jeanmat's comment saves the day on Win32. Alas, it got stung by wiki mark-up. here's a version verbatim. {{{ if sys.platform == 'win32': filename = glob.glob(os.path.join(home_dir, 'Lib/site-packages/*/pkg_resources.py'))[0] else: filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site-packages/*/pkg_resources.py'))[0] }}}
  • Aug 18, 2009
    Pylons (How to get Pylons working on appengine) Wiki page commented on by carl.roach   -   Jeanmat's entry is a lifesaver but the text got wiki'd Here's an attempt to duck the wiki markup `if sys.platform == 'win32': filename = glob.glob(os.path.join(home_dir, 'Lib/site-packages/*/pkg_resources.py'))[0] else: filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site-packages/*/pkg_resources.py'))[0]`
    Jeanmat's entry is a lifesaver but the text got wiki'd Here's an attempt to duck the wiki markup `if sys.platform == 'win32': filename = glob.glob(os.path.join(home_dir, 'Lib/site-packages/*/pkg_resources.py'))[0] else: filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site-packages/*/pkg_resources.py'))[0]`
  • Jul 06, 2009
    issue 24 (wsgiorg.routing_args not passed into pylons app) commented on by radoslaw...@stxnext.pl   -   Sorry, this ticket is invalid. I didn't noticed that project geneted by command: $ paster create --template=pylons MyApp sqlalchemy=false doesn't include RoutesMiddleware (it has to be added manually in MyApp/app/myapp/config/middleware.py). After adding it - it works fine. The ticket may be closed.
    Sorry, this ticket is invalid. I didn't noticed that project geneted by command: $ paster create --template=pylons MyApp sqlalchemy=false doesn't include RoutesMiddleware (it has to be added manually in MyApp/app/myapp/config/middleware.py). After adding it - it works fine. The ticket may be closed.
  • Jul 06, 2009
    issue 24 (wsgiorg.routing_args not passed into pylons app) reported by radoslaw...@stxnext.pl   -   Steps reproducing the problem: 1. Creating 'MyApp' according to the wiki description 2. Creating a new controller (and removing index.html from public catalog) 3. Calling the new controller by url The error occurs with traceback: File "/home/GAE/appengine-monkey/MyApp/app/lib/python/weberror/errormiddleware.py", line 156, in __call__ return self.application(environ, start_response) File "/home/GAE/appengine-monkey/MyApp/app/lib/python/pylons/wsgiapp.py", line 124, in __call__ controller = self.resolve(environ, start_response) File "/home/GAE/appengine-monkey/MyApp/app/lib/python/pylons/wsgiapp.py", line 254, in resolve match = environ['wsgiorg.routing_args'][1] KeyError: 'wsgiorg.routing_args' I'm using the trunk version of appengine-monkey with pylons 0.9.7. It seems like the routing_args are not passet to pylons app.
    Steps reproducing the problem: 1. Creating 'MyApp' according to the wiki description 2. Creating a new controller (and removing index.html from public catalog) 3. Calling the new controller by url The error occurs with traceback: File "/home/GAE/appengine-monkey/MyApp/app/lib/python/weberror/errormiddleware.py", line 156, in __call__ return self.application(environ, start_response) File "/home/GAE/appengine-monkey/MyApp/app/lib/python/pylons/wsgiapp.py", line 124, in __call__ controller = self.resolve(environ, start_response) File "/home/GAE/appengine-monkey/MyApp/app/lib/python/pylons/wsgiapp.py", line 254, in resolve match = environ['wsgiorg.routing_args'][1] KeyError: 'wsgiorg.routing_args' I'm using the trunk version of appengine-monkey with pylons 0.9.7. It seems like the routing_args are not passet to pylons app.
  • Jun 22, 2009
    issue 22 (paster controller doesn't work) commented on by hongqn   -   cool! Hope this step can be included in the wiki page.
    cool! Hope this step can be included in the wiki page.
  • Jun 17, 2009
    issue 22 (paster controller doesn't work) commented on by divinenephron   -   paster looks to the myapp.egg-info directory to find out which modules to load, you can make it work by pretending this is an egg. Do the following: $ cd <path_to_project>/MyApp/app/ $ mkdir myapp.egg-info $ cd ./myapp.egg-info/ $ echo -e "PasteScript\nPylons" > ./paster_plugins.txt $ echo "myapp" > ./top_level.txt $ cd .. This sets up the two files paster wants. I've told it to load the "PasteScript" and "Pylons" with the first file, and told it that the "myapp" directory is the module in the other. You can then do: $ ./bin/paster controller hello To create the "hello" controller
    paster looks to the myapp.egg-info directory to find out which modules to load, you can make it work by pretending this is an egg. Do the following: $ cd <path_to_project>/MyApp/app/ $ mkdir myapp.egg-info $ cd ./myapp.egg-info/ $ echo -e "PasteScript\nPylons" > ./paster_plugins.txt $ echo "myapp" > ./top_level.txt $ cd .. This sets up the two files paster wants. I've told it to load the "PasteScript" and "Pylons" with the first file, and told it that the "myapp" directory is the module in the other. You can then do: $ ./bin/paster controller hello To create the "hello" controller
  • Jun 16, 2009
    issue 22 (paster controller doesn't work) commented on by divinenephron   -   paster looks to the myapp.egg-info directory to find out which modules to load, you can make it work by pretending this is an egg. Do the following: $ cd <path_to_project>/MyApp/app/myapp/ $ mkdir myapp.egg-info $ cd ./myapp.egg-info/ $ echo -e "PasteScript\nPylons" > ./paster_plugins.txt $ echo "." > ./top_level.txt $ cd .. This sets up the two files paster wants. I've told it to load the "PasteScript" and "Pylons" with the first file, and told it that the current directory is the top level directory in the other.
    paster looks to the myapp.egg-info directory to find out which modules to load, you can make it work by pretending this is an egg. Do the following: $ cd <path_to_project>/MyApp/app/myapp/ $ mkdir myapp.egg-info $ cd ./myapp.egg-info/ $ echo -e "PasteScript\nPylons" > ./paster_plugins.txt $ echo "." > ./top_level.txt $ cd .. This sets up the two files paster wants. I've told it to load the "PasteScript" and "Pylons" with the first file, and told it that the current directory is the top level directory in the other.
  • Jun 02, 2009
    issue 19 (Windows Install Guide) commented on by shao.cn   -   under windows platform, the "MyApp/bin" Folder in the original instruction should be "MyApp\Scripts" Folder.
    under windows platform, the "MyApp/bin" Folder in the original instruction should be "MyApp\Scripts" Folder.
  • Jun 02, 2009
    issue 19 (Windows Install Guide) commented on by shao.cn   -   i think, the "MyApp/bin" in the instruction under windows should be "MyApp\Scripts" folder.
    i think, the "MyApp/bin" in the instruction under windows should be "MyApp\Scripts" folder.
  • May 13, 2009
    issue 23 (autoreload cause 500) reported by hongqn   -   What steps will reproduce the problem? 1. setup a website 2. view the home page via browser and see it's ok 3. touch a .py file 4. refresh in the browser What is the expected output? What do you see instead? you'll see a 500 error page backtraced at appengine_monkey.py, line 66: 66 full_py = os.path.join(p, subname + '.py') <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'path' so it seems after reload, the 'os' has been bind to None object. but i can't find why. What version of the product are you using? On what operating system? appengine_monkey rev59 with SDK 1.2.2, on Mac OS X. Please provide any additional information below. a quick fix to this: --- appengine_monkey.py.orig 2009-05-14 13:45:57 +0800 +++ appengine_monkey.py 2009-05-14 13:45:47 +0800 @@ -63,6 +63,7 @@ @patch(imp) def find_module(subname, path): for p in path: + import os full_py = os.path.join(p, subname + '.py') full_dir = os.path.join(p, subname, '__init__.py') for full in full_py, full_dir:
    What steps will reproduce the problem? 1. setup a website 2. view the home page via browser and see it's ok 3. touch a .py file 4. refresh in the browser What is the expected output? What do you see instead? you'll see a 500 error page backtraced at appengine_monkey.py, line 66: 66 full_py = os.path.join(p, subname + '.py') <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'path' so it seems after reload, the 'os' has been bind to None object. but i can't find why. What version of the product are you using? On what operating system? appengine_monkey rev59 with SDK 1.2.2, on Mac OS X. Please provide any additional information below. a quick fix to this: --- appengine_monkey.py.orig 2009-05-14 13:45:57 +0800 +++ appengine_monkey.py 2009-05-14 13:45:47 +0800 @@ -63,6 +63,7 @@ @patch(imp) def find_module(subname, path): for p in path: + import os full_py = os.path.join(p, subname + '.py') full_dir = os.path.join(p, subname, '__init__.py') for full in full_py, full_dir:
  • May 13, 2009
    issue 22 (paster controller doesn't work) reported by hongqn   -   What steps will reproduce the problem? 1. install pylons as what the wiki says 2. source MyApp/bin/activate 3. cd MyApp/app/myapp 4. ../bin/paster controller hello What is the expected output? What do you see instead? It should create a controller/hello.py file. However, it produce the following error messages actually: Command 'controller' not known (you may need to run setup.py egg_info) Known commands: create Create the file layout for a Python distribution exe Run #! executable files help Display help make-config Install a package and create a fresh config file/directory points Show information about entry points post Run a request for the described application request Run a request for the described application serve Serve the described application setup-app Setup an application, given a config file What version of the product are you using? On what operating system? svn rev59, on Mac OS X Please provide any additional information below.
    What steps will reproduce the problem? 1. install pylons as what the wiki says 2. source MyApp/bin/activate 3. cd MyApp/app/myapp 4. ../bin/paster controller hello What is the expected output? What do you see instead? It should create a controller/hello.py file. However, it produce the following error messages actually: Command 'controller' not known (you may need to run setup.py egg_info) Known commands: create Create the file layout for a Python distribution exe Run #! executable files help Display help make-config Install a package and create a fresh config file/directory points Show information about entry points post Run a request for the described application request Run a request for the described application serve Serve the described application setup-app Setup an application, given a config file What version of the product are you using? On what operating system? svn rev59, on Mac OS X Please provide any additional information below.
  • May 06, 2009
    issue 20 (errors are not displayed via pylons, but by the default dev ...) commented on by david.wi...@entertainmentcloud.com   -   sorry! i reported the wrong file: it should be pylons/middleware.py not weberror/evalexception.py
    sorry! i reported the wrong file: it should be pylons/middleware.py not weberror/evalexception.py
  • May 03, 2009
    issue 21 (SERVER_SOFTWARE is not always set) reported by hongqn   -   In wiki page http://code.google.com/p/appengine-monkey/wiki/Pylons there is a demo for WebTest, quoted here: $ MyApp/bin/pip install WebTest $ MyApp/bin/python >>> import webtest >>> from runner import application >>> app = webtest.TestApp(application) >>> print app.get('/') However, it will fail at the statement "from runner import application": >>> from runner import application Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/hongqn/projects/hqn/app/runner.py", line 48, in <module> if os.environ['SERVER_SOFTWARE'].startswith('Development'): File "/Users/hongqn/Gentoo/usr/lib/python2.5/UserDict.py", line 22, in __getitem__ raise KeyError(key) KeyError: 'SERVER_SOFTWARE' The following patch resolves this problem: --- app/runner.py.orig 2009-05-03 15:04:17 +0800 +++ app/runner.py 2009-05-03 14:58:40 +0800 @@ -45,7 +45,7 @@ __import__(module_name) module = sys.modules[module_name] application = getattr(module, obj_name) -if os.environ.['SERVER_SOFTWARE'].startswith('Development'): +if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'): config_args = DEV_APP_ARGS config_kwargs = DEV_APP_KWARGS else:
    In wiki page http://code.google.com/p/appengine-monkey/wiki/Pylons there is a demo for WebTest, quoted here: $ MyApp/bin/pip install WebTest $ MyApp/bin/python >>> import webtest >>> from runner import application >>> app = webtest.TestApp(application) >>> print app.get('/') However, it will fail at the statement "from runner import application": >>> from runner import application Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/hongqn/projects/hqn/app/runner.py", line 48, in <module> if os.environ['SERVER_SOFTWARE'].startswith('Development'): File "/Users/hongqn/Gentoo/usr/lib/python2.5/UserDict.py", line 22, in __getitem__ raise KeyError(key) KeyError: 'SERVER_SOFTWARE' The following patch resolves this problem: --- app/runner.py.orig 2009-05-03 15:04:17 +0800 +++ app/runner.py 2009-05-03 14:58:40 +0800 @@ -45,7 +45,7 @@ __import__(module_name) module = sys.modules[module_name] application = getattr(module, obj_name) -if os.environ.['SERVER_SOFTWARE'].startswith('Development'): +if os.environ.get('SERVER_SOFTWARE', '').startswith('Development'): config_args = DEV_APP_ARGS config_kwargs = DEV_APP_KWARGS else:
  • May 02, 2009
    issue 20 (errors are not displayed via pylons, but by the default dev ...) reported by david.wi...@entertainmentcloud.com   -   What steps will reproduce the problem? 1. Run a pylons app on the app engine dev server using appengine-monkey (windows, pylons-0.9.7) 2. set debug=true in config.py 3. raise an exception What is the expected output? What do you see instead? The trace back is displayed via dev servers system, rather then pylons. Please provide any additional information below. digging into pylons a bit (im totally new to this code) it seems that weberror/evalexception.py line 215 passes in a non None exc_info to start_response(), inside this it causes it to raise an exception, jumping all the way out to the default handler. removing exc_info from the function parameters, seems to fix this, but i dont know what the side effects of this are.
    What steps will reproduce the problem? 1. Run a pylons app on the app engine dev server using appengine-monkey (windows, pylons-0.9.7) 2. set debug=true in config.py 3. raise an exception What is the expected output? What do you see instead? The trace back is displayed via dev servers system, rather then pylons. Please provide any additional information below. digging into pylons a bit (im totally new to this code) it seems that weberror/evalexception.py line 215 passes in a non None exc_info to start_response(), inside this it causes it to raise an exception, jumping all the way out to the default handler. removing exc_info from the function parameters, seems to fix this, but i dont know what the side effects of this are.
  • May 02, 2009
    issue 19 (Windows Install Guide) commented on by david.wi...@entertainmentcloud.com   -   also, step 4 removes the MyApp.egg-info, you should save this file into the app dir to keep paster commands like 'controller' working
    also, step 4 removes the MyApp.egg-info, you should save this file into the app dir to keep paster commands like 'controller' working
  • May 01, 2009
    issue 19 (Windows Install Guide) commented on by david.wi...@entertainmentcloud.com   -   also, step 4 removes the MyApp.egg-info, you should save this file into the myapp dir to keep paster commands like 'controller' working
    also, step 4 removes the MyApp.egg-info, you should save this file into the myapp dir to keep paster commands like 'controller' working
  • May 01, 2009
    issue 19 (Windows Install Guide) reported by david.wi...@entertainmentcloud.com   -   I thought id document the steps it took to get pylons running on GAE under windows vista. Following the install guide here: http://code.google.com/p/appengine- monkey/wiki/Pylons 2. Create an environment for your code running python appengine-homedir.py --gae <google_path> MyApp 1st go) ImportError: No module named win32api get here: http://sourceforge.net/project/showfiles.php?group_id=78018 2nd go) error: /tmp/appengine-tmp-record.txt: No such file or directory this is a path problem in appengine-homedir.py change line 1032 to : '--record=.\\tmp\\appengine-tmp-record.txt', and create \tmp\appengine-tmp-record.txt in appengine-monkey folder 3rd go) File "appengine-homedir.py", line 1041, in after_install filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site- packages/*/pkg_resources.py'))[0] IndexError: list index out of range appengine-homedir.py change line 1042 to: filename = glob.glob(os.path.join(home_dir, 'lib/site- packages/*/pkg_resources.py'))[0] 3. Start installing things, like Pylons running ./bin/pip install Pylons when pip trys to intall simplejson you need svn installed on the cmd line, but this give a WindowsError: [Error 5] Access is denied: '....\\build\\simplejson\\.svn\\all-wcprops' to fix this: .\Scripts\easy_install.exe -U simplejson then re-run ./bin/pip install Pylons pip is giving alot of timeouts, keep retrying. INSTALLED! 4. Create your application remember to move the file MyApp/myapp to app, this is what the "$ mv MyApp/myapp ." command is doing. you need to rename the MyApp to something like MyApp_bak before you do this as windows is not case sensitive and will copy into the MyApp folder rather then a new one. then delete MyApp. 7. Running you application (typo in the docs here) when i ran the app it gave this assert: AssertionError: addsitedir() caused entries to be prepended to sys.path looking at the lists in runner.py it seems simplejson is in the wrong place, (so this could be how i installed it) but i dont understand whats going on here to fix it. commenting out the assert (gota love it) make the app run. localhost gives the 'Welcome to pylons page' but im not sure what lurks around the corner because of the assert. Hope this is usefull to someone, or the patch can be fixed up a bit to give windows users some love.
    I thought id document the steps it took to get pylons running on GAE under windows vista. Following the install guide here: http://code.google.com/p/appengine- monkey/wiki/Pylons 2. Create an environment for your code running python appengine-homedir.py --gae <google_path> MyApp 1st go) ImportError: No module named win32api get here: http://sourceforge.net/project/showfiles.php?group_id=78018 2nd go) error: /tmp/appengine-tmp-record.txt: No such file or directory this is a path problem in appengine-homedir.py change line 1032 to : '--record=.\\tmp\\appengine-tmp-record.txt', and create \tmp\appengine-tmp-record.txt in appengine-monkey folder 3rd go) File "appengine-homedir.py", line 1041, in after_install filename = glob.glob(os.path.join(home_dir, 'lib/python2.5/site- packages/*/pkg_resources.py'))[0] IndexError: list index out of range appengine-homedir.py change line 1042 to: filename = glob.glob(os.path.join(home_dir, 'lib/site- packages/*/pkg_resources.py'))[0] 3. Start installing things, like Pylons running ./bin/pip install Pylons when pip trys to intall simplejson you need svn installed on the cmd line, but this give a WindowsError: [Error 5] Access is denied: '....\\build\\simplejson\\.svn\\all-wcprops' to fix this: .\Scripts\easy_install.exe -U simplejson then re-run ./bin/pip install Pylons pip is giving alot of timeouts, keep retrying. INSTALLED! 4. Create your application remember to move the file MyApp/myapp to app, this is what the "$ mv MyApp/myapp ." command is doing. you need to rename the MyApp to something like MyApp_bak before you do this as windows is not case sensitive and will copy into the MyApp folder rather then a new one. then delete MyApp. 7. Running you application (typo in the docs here) when i ran the app it gave this assert: AssertionError: addsitedir() caused entries to be prepended to sys.path looking at the lists in runner.py it seems simplejson is in the wrong place, (so this could be how i installed it) but i dont understand whats going on here to fix it. commenting out the assert (gota love it) make the app run. localhost gives the 'Welcome to pylons page' but im not sure what lurks around the corner because of the assert. Hope this is usefull to someone, or the patch can be fixed up a bit to give windows users some love.
  • Apr 23, 2009
    issue 18 (AttributeError: 'module' object has no attribute 'find_modul...) commented on by mushywushy   -   Solved error. It is because the installation of Python you have has been tainted with an installation of setuptools. I reinstalled Python before, but I used Django and used setuptools as well, which seemed to cause the above error. I then created another fresh installation (as per Ian Bickings instructions) from scratch, and it worked again. Best thing to do, in my opinion, is to install a fresh Python just for your GAE installation. I presume the above error is why appengine-monkey uses pip as the installer instead of setuptools.
    Solved error. It is because the installation of Python you have has been tainted with an installation of setuptools. I reinstalled Python before, but I used Django and used setuptools as well, which seemed to cause the above error. I then created another fresh installation (as per Ian Bickings instructions) from scratch, and it worked again. Best thing to do, in my opinion, is to install a fresh Python just for your GAE installation. I presume the above error is why appengine-monkey uses pip as the installer instead of setuptools.
  • Apr 23, 2009
    issue 18 (AttributeError: 'module' object has no attribute 'find_modul...) commented on by mushywushy   -   Same error as above. Just started to get this error yesterday. I had a working installation before that. Not sure what I've done in the meantime - trying to track it down. I've reinstalled Python-2.5.4 for safe measure, but no effect. For the record, the main changes I did were I installed Django, soaplib, PIL and enabled the monkey patch for httplib.
    Same error as above. Just started to get this error yesterday. I had a working installation before that. Not sure what I've done in the meantime - trying to track it down. I've reinstalled Python-2.5.4 for safe measure, but no effect. For the record, the main changes I did were I installed Django, soaplib, PIL and enabled the monkey patch for httplib.
  • Apr 19, 2009
    issue 18 (AttributeError: 'module' object has no attribute 'find_modul...) reported by jackperrett   -   I just checked out the trunk and followed the instructions and ran into the following problem: ERROR 2009-04-19 16:59:03,924 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2725, in _HandleRequest base_env_dict=env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 381, in Dispatch base_env_dict=base_env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2012, in Dispatch self._module_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1930, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1826, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/jack/workspace/given-taken/app/runner.py", line 12, in <module> import site File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1586, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1494, in FindAndLoadModule description) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1437, in LoadModuleRestricted return source_file.load_module(submodule_fullname) File "/home/jack/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 73, in <module> # Prefixes for site-packages; add additional prefixes like /usr/local here File "/home/jack/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 26, in __boot A path configuration file is a file whose name has the form AttributeError: 'module' object has no attribute 'find_module' Also, after completing the instructions the 'paster controller' command stops working (Command 'controller' not known...). Is this a known side effect of the appengine configuration?
    I just checked out the trunk and followed the instructions and ran into the following problem: ERROR 2009-04-19 16:59:03,924 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2725, in _HandleRequest base_env_dict=env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 381, in Dispatch base_env_dict=base_env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2012, in Dispatch self._module_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1930, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1826, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/jack/workspace/given-taken/app/runner.py", line 12, in <module> import site File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1586, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1494, in FindAndLoadModule description) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 996, in decorate return func(self, *args, **kwargs) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 1437, in LoadModuleRestricted return source_file.load_module(submodule_fullname) File "/home/jack/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 73, in <module> # Prefixes for site-packages; add additional prefixes like /usr/local here File "/home/jack/mydevenv/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 26, in __boot A path configuration file is a file whose name has the form AttributeError: 'module' object has no attribute 'find_module' Also, after completing the instructions the 'paster controller' command stops working (Command 'controller' not known...). Is this a known side effect of the appengine configuration?
  • Mar 14, 2009
    issue 11 (Can't have ve in directory that contains a space in name) Status changed by ianbicking   -   This was a virtualenv bug, that's been fixed in that package.
    Status: Fixed
    This was a virtualenv bug, that's been fixed in that package.
    Status: Fixed
  • Mar 14, 2009
    issue 13 (httpConnection.getResponse() shows errors in the appspot log...) Status changed by ianbicking   -   httplib has been moved into the GAE SDK itself (where probably this has been resolved)
    Status: WontFix
    httplib has been moved into the GAE SDK itself (where probably this has been resolved)
    Status: WontFix
  • Mar 14, 2009
    issue 14 (Beaker: os.getpid() doesn't exist.) Status changed by ianbicking   -  
    Status: Fixed
    Status: Fixed
  • Mar 14, 2009
    issue 17 (failed to run sample pylons app on mac os) Status changed by ianbicking   -   This was a problem with appengine-monkey itself not being installed by appengine-homedir. This is resolved in r59 (or some earlier revision, but it's done in r59 for sure, as well as some other bugs)
    Status: Fixed
    This was a problem with appengine-monkey itself not being installed by appengine-homedir. This is resolved in r59 (or some earlier revision, but it's done in r59 for sure, as well as some other bugs)
    Status: Fixed
  • Mar 14, 2009
    issue 16 (No module named pkg_resources) Status changed by ianbicking   -   r59 of appengine-homedir.py will now copy pkg_resources.py in, fixing this issue.
    Status: Fixed
    r59 of appengine-homedir.py will now copy pkg_resources.py in, fixing this issue.
    Status: Fixed
  • Mar 14, 2009
    r59 (Copy pkg_resources into app/lib/python, where it needs to be...) committed by i...@colorstudy.com   -   Copy pkg_resources into app/lib/python, where it needs to be found
    Copy pkg_resources into app/lib/python, where it needs to be found
  • Mar 08, 2009
    issue 17 (failed to run sample pylons app on mac os) reported by mpaliyenko   -   After I've done all like mentioned in http://code.google.com/p/appengine-monkey/wiki/Pylons in step 7 after accessing localhost:8080 I get following error. (deactivate was called before) ERROR 2009-03-08 16:50:24,279 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 2711, in _HandleRequest base_env_dict=env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 380, in Dispatch base_env_dict=base_env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1998, in Dispatch self._module_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/opt/workspace/cloudmaps/app/runner.py", line 12, in <module> import site File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1423, in LoadModuleRestricted return source_file.load_module(submodule_fullname) File "/sw/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 73, in <module> if hasattr(m, '__loader__'): File "/sw/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 26, in __boot sys.path more than once. Blank lines and lines beginning with AttributeError: 'module' object has no attribute 'find_module' Any ideas?
    After I've done all like mentioned in http://code.google.com/p/appengine-monkey/wiki/Pylons in step 7 after accessing localhost:8080 I get following error. (deactivate was called before) ERROR 2009-03-08 16:50:24,279 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 2711, in _HandleRequest base_env_dict=env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 380, in Dispatch base_env_dict=base_env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1998, in Dispatch self._module_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/opt/workspace/cloudmaps/app/runner.py", line 12, in <module> import site File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver. py", line 1423, in LoadModuleRestricted return source_file.load_module(submodule_fullname) File "/sw/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 73, in <module> if hasattr(m, '__loader__'): File "/sw/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/site.py", line 26, in __boot sys.path more than once. Blank lines and lines beginning with AttributeError: 'module' object has no attribute 'find_module' Any ideas?
  • Mar 08, 2009
    issue 16 (No module named pkg_resources) reported by jchoot01   -   What steps will reproduce the problem? 1. followed updated guide to setting up a Pylons environment on appengine 2. attempted to launch using both GAE launcher and dev_appserver.py 3. stacktrace What is the expected output? What do you see instead? Expected to see welcome to Pylons, instead saw stacktrace What version of the product are you using? On what operating system? running appengine-monkey revision 58 off trunk, Intel Mac OS X 10.5 Please provide any additional information below. INFO 2009-03-08 17:15:18,233 appengine_rpc.py] Server: appengine.google.com INFO 2009-03-08 17:15:18,251 appcfg.py] Checking for updates to the SDK. INFO 2009-03-08 17:15:18,499 appcfg.py] The SDK is up to date. WARNING 2009-03-08 17:15:18,499 datastore_file_stub.py] Could not read datastore data from /tmp/dev_appserver.datastore WARNING 2009-03-08 17:15:18,499 datastore_file_stub.py] Could not read datastore data from /tmp/dev_appserver.datastore.history INFO 2009-03-08 17:15:18,546 dev_appserver_main.py] Running application kulupu on port 8080: http://localhost:8080 DEBUG 2009-03-08 17:15:32,195 dev_appserver.py] Matched "/" to CGI dispatcher with path runner.py DEBUG 2009-03-08 17:15:32,197 dev_appserver.py] Executing CGI with env: {'APPLICATION_ID': 'kulupu', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost:8080', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/Users/username/workspace/kulupu/app/runner.py', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0', 'TZ': 'UTC', 'USER_EMAIL': ''} DEBUG 2009-03-08 17:15:32,227 dev_appserver.py] Could not import "strop": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,354 dev_appserver.py] Could not import "dbm": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,387 dev_appserver.py] Could not import "fcntl": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,491 dev_appserver.py] Could not import "grp": Disallowed C-extension or built-in module ERROR 2009-03-08 17:15:32,523 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2711, in _HandleRequest base_env_dict=env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 380, in Dispatch base_env_dict=base_env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1998, in Dispatch self._module_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/Users/username/workspace/kulupu/app/runner.py", line 45, in <module> __import__(module_name) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/kulupu/config/middleware.py", line 6, in <module> from paste.deploy.converters import asbool File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/lib/python/paste/deploy/__init__.py", line 3, in <module> from loadwsgi import * File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/lib/python/paste/deploy/loadwsgi.py", line 8, in <module> import pkg_resources ImportError: No module named pkg_resources INFO 2009-03-08 17:15:32,527 dev_appserver.py] "GET / HTTP/1.1" 500 -
    What steps will reproduce the problem? 1. followed updated guide to setting up a Pylons environment on appengine 2. attempted to launch using both GAE launcher and dev_appserver.py 3. stacktrace What is the expected output? What do you see instead? Expected to see welcome to Pylons, instead saw stacktrace What version of the product are you using? On what operating system? running appengine-monkey revision 58 off trunk, Intel Mac OS X 10.5 Please provide any additional information below. INFO 2009-03-08 17:15:18,233 appengine_rpc.py] Server: appengine.google.com INFO 2009-03-08 17:15:18,251 appcfg.py] Checking for updates to the SDK. INFO 2009-03-08 17:15:18,499 appcfg.py] The SDK is up to date. WARNING 2009-03-08 17:15:18,499 datastore_file_stub.py] Could not read datastore data from /tmp/dev_appserver.datastore WARNING 2009-03-08 17:15:18,499 datastore_file_stub.py] Could not read datastore data from /tmp/dev_appserver.datastore.history INFO 2009-03-08 17:15:18,546 dev_appserver_main.py] Running application kulupu on port 8080: http://localhost:8080 DEBUG 2009-03-08 17:15:32,195 dev_appserver.py] Matched "/" to CGI dispatcher with path runner.py DEBUG 2009-03-08 17:15:32,197 dev_appserver.py] Executing CGI with env: {'APPLICATION_ID': 'kulupu', 'AUTH_DOMAIN': 'gmail.com', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'CURRENT_VERSION_ID': '1.1', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'localhost:8080', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/Users/username/workspace/kulupu/app/runner.py', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8080', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'Development/1.0', 'TZ': 'UTC', 'USER_EMAIL': ''} DEBUG 2009-03-08 17:15:32,227 dev_appserver.py] Could not import "strop": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,354 dev_appserver.py] Could not import "dbm": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,387 dev_appserver.py] Could not import "fcntl": Disallowed C-extension or built-in module DEBUG 2009-03-08 17:15:32,491 dev_appserver.py] Could not import "grp": Disallowed C-extension or built-in module ERROR 2009-03-08 17:15:32,523 dev_appserver.py] Exception encountered handling request Traceback (most recent call last): File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 2711, in _HandleRequest base_env_dict=env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 380, in Dispatch base_env_dict=base_env_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1998, in Dispatch self._module_dict) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1916, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1812, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/Users/username/workspace/kulupu/app/runner.py", line 45, in <module> __import__(module_name) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/kulupu/config/middleware.py", line 6, in <module> from paste.deploy.converters import asbool File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/lib/python/paste/deploy/__init__.py", line 3, in <module> from loadwsgi import * File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1572, in load_module return self.FindAndLoadModule(submodule, fullname, search_path) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1480, in FindAndLoadModule description) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 982, in decorate return func(self, *args, **kwargs) File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 1430, in LoadModuleRestricted description) File "/Users/username/workspace/kulupu/app/lib/python/paste/deploy/loadwsgi.py", line 8, in <module> import pkg_resources ImportError: No module named pkg_resources INFO 2009-03-08 17:15:32,527 dev_appserver.py] "GET / HTTP/1.1" 500 -
  • Mar 06, 2009
    r58 (Fix the homedir runner stuff so it works with the SDK) committed by i...@colorstudy.com   -   Fix the homedir runner stuff so it works with the SDK
    Fix the homedir runner stuff so it works with the SDK
  • Mar 06, 2009
    r57 (make some of the monkeypatching conditional) committed by i...@colorstudy.com   -   make some of the monkeypatching conditional
    make some of the monkeypatching conditional
  • Mar 06, 2009
    r56 (Add antlr3, needed for SDK 1.1.9) committed by i...@colorstudy.com   -   Add antlr3, needed for SDK 1.1.9
    Add antlr3, needed for SDK 1.1.9
  • Mar 06, 2009
    Pylons (How to get Pylons working on appengine) Wiki page edited by ianbicking
  • Mar 06, 2009
    Pylons (How to get Pylons working on appengine) Wiki page edited by ianbicking
  • Mar 05, 2009
    r53 (Add some pylons tests/instructions) committed by i...@colorstudy.com   -   Add some pylons tests/instructions
    Add some pylons tests/instructions
  • Mar 05, 2009
    r52 (Clean up the path handling in activate_gae, add lib/python t...) committed by i...@colorstudy.com   -   Clean up the path handling in activate_gae, add lib/python to the path, and make sure the right paths are added for yaml, etc
    Clean up the path handling in activate_gae, add lib/python to the path, and make sure the right paths are added for yaml, etc
  • Mar 05, 2009
    r51 (virtualenv updates) committed by i...@colorstudy.com   -   virtualenv updates
    virtualenv updates
  • Mar 05, 2009
    r50 (allow for ~ in --gae option; improve pip install message) committed by i...@colorstudy.com   -   allow for ~ in --gae option; improve pip install message
    allow for ~ in --gae option; improve pip install message
  • Feb 17, 2009
    issue 15 (loadwsgi Fails with pkg_resource ImportError) Status changed by ianbicking   -   reload(site) removed in r49 (that line was kind of cargo-culted anyway)
    Status: Fixed
    reload(site) removed in r49 (that line was kind of cargo-culted anyway)
    Status: Fixed
  • Feb 17, 2009
    r49 (remove reload(site)) committed by i...@colorstudy.com   -   remove reload(site)
    remove reload(site)
  • Jan 27, 2009
    issue 15 (loadwsgi Fails with pkg_resource ImportError) commented on by matdrapeau   -   Same here, I needed to do that fix as well
    Same here, I needed to do that fix as well

Older

  • Dec 16, 2008
    r48 (Improvements to the homedir boot script, so it sets up the e...) committed by i...@colorstudy.com   -   Improvements to the homedir boot script, so it sets up the entire GAE SDK environment
    Improvements to the homedir boot script, so it sets up the entire GAE SDK environment
  • Dec 16, 2008
    r47 (update to virtualenv) committed by i...@colorstudy.com   -   update to virtualenv
    update to virtualenv
  • Dec 16, 2008
    r46 (update to new virtualenv) committed by i...@colorstudy.com   -   update to new virtualenv
    update to new virtualenv
 
Hosted by Google Code