From: Kristian R. <li...@zi...> - 2009-12-18 07:36:34
|
Folks; finally tried to take a deeper dive into spring python and failed pretty quickly, so I ended up downloading the example package and trying to run some of them. Not too successful, unfortunately: -> springwiki: doesn't work, neither using the -noxml or the xml-based implementation: kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ python springwiki/springwiki-noxml.py /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/pymodules/python2.6/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/python2.6/sets.py:85: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument stacklevel=2) /usr/lib/pymodules/python2.6/amara/bindery.py:4: DeprecationWarning: the sets module is deprecated import sets 2009-12-18 07:55:13,948 - springpython.container.ObjectContainer - DEBUG - === Scanning configuration <noxml.SpringWikiClientAndServer object at 0x38cdb10> for object definitions === 2009-12-18 07:55:13,949 - springpython.config.PythonConfig - DEBUG - ============================================================== [.... ... some logging output ... .....] f50> 2009-12-18 07:55:13,956 - springpython.context.ApplicationContext - DEBUG - Stored object 'filterChainProxy' in container's singleton storage Traceback (most recent call last): File "springwiki/springwiki-noxml.py", line 72, in <module> cherrypy.tree.mount(applicationContext.get_object(name = "read"), '/', config=conf) TypeError: mount() got an unexpected keyword argument 'config' kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ python springwiki/springwiki.py /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/pymodules/python2.6/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Traceback (most recent call last): File "springwiki/springwiki.py", line 20, in <module> from springpython.security.cherrypy31 import AuthenticationFilter, ContextSessionFilter, SecurityFilter File "/usr/local/lib/python2.6/dist-packages/springpython/security/cherrypy31.py", line 94, in <module> class SecurityInterceptorFilter(AbstractSecurityInterceptor, cherrypy.Tool): AttributeError: 'module' object has no attribute 'Tool' kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ These are more or less the same errors I get with every example provided by the springpython-samples package. Reading at least the last one, I supposed cherrypy to be the culprit, but at least the cherrrypy version provided by Ubuntu 9.10 doesn't seem to be out of scope of what's supported according to the README: ii python-cherrypy 2.3.0-2 Python web development framework So... what to do about this? What does it need to get spring-python 1.0.0 to work on my platform? :) TIA and all the best, Kristian -- Kristian Rink * http://pictorial.zimmer428.net # ka...@ja... "What was once thought can never be unthought." (Duerrenmatt - 'Die Physiker') |