I follow exactly the steps described in the bfg on appengine tutorial, i. e. I am
* using the current gae (1.3.8) * with python2.5 as that seems the the maximum python version supported by appengine monkey / GAE * using the current/simple index for bfg bin/easy_install -i http://dist.repoze.org/bfg/current/simple/ repoze.bfg that is as of today bfg 1.3 * having my bfgapp created from bfg_starter template + configuration steps as described in the turial Then I start the application $ python2.5 /opt/appengine/google_appengine/dev_appserver.py bfgapp/app and have a look at it http://localhost:8080 Everything is fine. BUT: As soon as I try to add scanning * either by adding <scan package="." /> to my configure.zcml * or by adding a line config.scan() somewhere between config.begin() and config.end() in my run.py (and restart my $ python2.5 /opt/appengine/google_appengine/dev_appserver.py bfgapp/app ) I get Traceback (most recent call last): File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 3211, in _HandleRequest self._Dispatch(dispatcher, self.rfile, outfile, env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 3154, in _Dispatch base_env_dict=env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 527, in Dispatch base_env_dict=base_env_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2404, in Dispatch self._module_dict) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2314, in ExecuteCGI reset_modules = exec_script(handler_path, cgi_path, hook) File "/opt/appengine/google_appengine/google/appengine/tools/dev_appserver.py", line 2210, in ExecuteOrImportScript exec module_code in script_module.__dict__ File "/home/reuleaux/tmp/bfgapp/app/runner.py", line 59, in <module> application = application(*(config_args or ()), **(config_kwargs or {})) File "/home/reuleaux/tmp/bfgapp/app/bfgapp/run.py", line 14, in app config.scan() File "/home/reuleaux/tmp/bfgapp/app/lib/python/repoze.bfg-1.3-py2.5.egg/repoze/bfg/configuration.py", line 1455, in scan scanner.scan(package, categories=categories) File "/home/reuleaux/tmp/bfgapp/app/lib/python/venusian-0.4-py2.5.egg/venusian/__init__.py", line 47, in scan module_type = loader.etc[2] TypeError: 'NoneType' object is unsubscriptable Something in venusian. - I don't know if this is related: in the initial installation step (installing repoze.bfg from the current/simple index with python2.5) I got already some problem: ... Searching for nose Reading http://pypi.python.org/simple/nose/ Reading http://somethingaboutorange.com/mrl/projects/nose/ Best match: nose 0.11.4 Downloading http://somethingaboutorange.com/mrl/projects/nose/nose-0.11.4.tar.gz Processing nose-0.11.4.tar.gz Running nose-0.11.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-sS34JB/venusian-0.4/temp/easy_install-Psmz2u/nose-0.11.4/egg-dist-tmp-bWA16F no previously-included directories found matching 'doc/.build' Installed /tmp/easy_install-sS34JB/venusian-0.4/nose-0.11.4-py2.5.egg File "build/bdist.linux-i686/egg/venusian/tests/fixtures/classdecorator.py", line 4 class SuperClass(object): ^ SyntaxError: invalid syntax File "/home/reuleaux/tmp/bfgapp/app/lib/python/venusian-0.4-py2.5.egg/venusian/tests/fixtures/classdecorator.py", line 4 class SuperClass(object): ^ SyntaxError: invalid syntax Adding venusian 0.4 to easy-install.pth file Installed /home/reuleaux/tmp/bfgapp/app/lib/python/venusian-0.4-py2.5.egg ... Note that I have asked this question before http://www.mail-archive.com/repoze-dev@lists.repoze.org/msg02671.html (with little help.) At the time the bfg from current/simple was still 1.2.x so I figured maybe for bfg this is preferred for some reason, and I continued to use 1.2.x, but now this is really bothering me. Chris? -thanks in advance -Andreas _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev