When I run setup.py it dies because I don't have easy_setup. I get that installed and discover it throws an exception if it doesn't find the package specified. Again, not spring python's fault directly but more shivers down my spine when I think about this running 24x7 in a production environment.
dhaynes@ubuntu:~/src/springpython-samples-1.2.0.FINAL/petclinic$ sudo easy_install foo
Searching for foo
Reading
http://pypi.python.org/simple/foo/
No local packages or download links found for foo
Best match: None
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 434, in easy_install
File "/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg/setuptools/package_index.py", line 475, in fetch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'
So, I get mysqldb and cherrypy and pyro installed and when I run petclinic.py it dies with this:
2011-08-03 19:54:41,494 - springpython.context.ApplicationContext - DEBUG - Stored object 'authenticationManager' in container's singleton storage
2011-08-03 19:54:41,494 - springpython.context.ApplicationContext - DEBUG - Eagerly fetching filterChainProxy
2011-08-03 19:54:41,494 - springpython.context.ApplicationContext - DEBUG - Did NOT find object 'filterChainProxy' in the singleton storage.
2011-08-03 19:54:41,494 - springpython.context.ApplicationContext - DEBUG - Creating an instance of id=filterChainProxy props=[] scope=scope.SINGLETON factory=PythonObjectFactory(<bound method PetClinicClientAndServer.filterChainProxy of <noxml.PetClinicClientAndServer object at 0x9a50bec>>)
2011-08-03 19:54:41,494 - springpython.factory.PythonObjectFactory - DEBUG - Creating an instance of filterChainProxy
2011-08-03 19:54:41,494 - springpython.config.objectSingleton<function filterChainProxy at 0x9a42dbc> - (<noxml.PetClinicClientAndServer object at 0x9a50bec>,)scope.SINGLETON - DEBUG - This IS the top-level object, calling filterChainProxy().
Traceback (most recent call last):
File "petclinic.py", line 41, in <module>
applicationContext = ApplicationContext(noxml.PetClinicClientAndServer( ))
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/context/__init__.py", line 45, in __init__
self.get_object(object_def.id, ignore_abstract=True)
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/container/__init__.py", line 80, in get_object
comp = self._create_object(object_def)
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/container/__init__.py", line 129, in _create_object
self._get_constructors_kw(object_def.named_constr) )
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/factory/__init__.py", line 62, in create_object
return self.method()
File "<string>", line 2, in filterChainProxy
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/config/_python_config.py", line 141, in object_wrapper
return _object_wrapper(f, theScope, parent, log_func_name, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/config/_python_config.py", line 121, in _object_wrapper
return _deco(f, scope, parent, log_func_name, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/config/_python_config.py", line 116, in _deco
results = f(*args, **kwargs)
File "/home/dhaynes/src/springpython-samples-1.2.0.FINAL/petclinic/cherrypy/noxml.py", line 237, in filterChainProxy
"filterSecurityInterceptor"])
File "/usr/local/lib/python2.7/dist-packages/springpython-1.2.0.FINAL-py2.7.egg/springpython/security/cherrypy3.py", line 30, in __init__
cherrypy.tools.securityFilterChain = cherrypy._cptools.HandlerTool(self)
AttributeError: 'module' object has no attribute '_cptools'
2011-08-03 19:54:41,496 - springpython.context.ApplicationContext - DEBUG - Invoking the destroy_method on registered objects
2011-08-03 19:54:41,496 - springpython.context.ApplicationContext - DEBUG - Successfully invoked the destroy_method on registered objects