Good morning!
Stefan pointed out the following issue and I was able to reproduce it on
our freshly installed Invenio box @1.0.2 maint as well. Just hit
Admin/Configure WebJournal -> 500.
It seems that there's some new variable that is missing in the confs.
-------- Original Message --------
Subject: Exception (webjournaladminlib.py:34:?) at
http://zb0035.zb.kfa-juelich.de
Date: Fri, 26 Oct 2012 07:47:21 +0200
From: <[email protected]>
To: <[email protected]>
Hello:
It is the first time this exception has been seen.
The following problem occurred on <http://zb0035.zb.kfa-juelich.de>
(Invenio 1.0.2)
2012-10-26 07:47:21 -> ImportError: cannot import name CFG_TMPSHAREDDIR
User details
session:
c261cbf586849ff39e28cb3b9638d0ae
uid: 1
uri:
</admin/webjournal/webjournaladmin.py?ln=en>
Traceback details
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/invenio/webinterface_handler_wsgi.py",
line 359, in application
mp_legacy_publisher(req, possible_module, possible_handler)
File
"/usr/lib/python2.4/site-packages/invenio/webinterface_handler_wsgi.py",
line 456, in mp_legacy_publisher
exec(the_module, module_globals)
File "<string>", line 24, in ?
File
"/usr/lib/python2.4/site-packages/invenio/webjournaladminlib.py", line
34, in ?
from invenio.config import \
ImportError: cannot import name CFG_TMPSHAREDDIR
Locals by frame, innermost last
Frame application in
/usr/lib/python2.4/site-packages/invenio/webinterface_handler_wsgi.py at line
385
*******************************************************************************
382 else:
383 req.flush()
384 except:
----> 385 register_exception(req=req, alert_admin=True)
386 if not req.response_sent_p:
387 req.status = HTTP_INTERNAL_SERVER_ERROR
388 req.headers_out['content-type'] = 'text/html'
*******************************************************************************
start_response = '<built-in method start_response of
mod_wsgi.Adapter object at 0x2b34078e66c0>'
environ = "{'mod_wsgi.listener_port': '80',
'HTTP_COOKIE': 'INVENIOSESSION=c261cbf586849ff39e28cb3b9638d0ae',
'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache',
'SCRIPT_NAME': '', 'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE':
'', 'REQUEST_METHOD': 'GET', 'PATH_INFO':
'/admin/webjournal/webjournaladmin.py', 'SERVER_PROTOCOL': 'HTTP/1.1',
'QUERY_STRING': 'ln=en', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT
6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1', 'HTTP_CONNECTION':
'keep-alive', 'SE [...]
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x10394e10>'
possible_handler = "'index'"
possible_module =
"'/cdsware/invenio/var/www/admin/webjournal/webjournaladmin.py'"
Frame mp_legacy_publisher in
/usr/lib/python2.4/site-packages/invenio/webinterface_handler_wsgi.py at line
456
*******************************************************************************
453 """
454 the_module = open(possible_module).read()
455 module_globals = {}
----> 456 exec(the_module, module_globals)
457 if possible_handler in module_globals and
callable(module_globals[possible_handler]):
458 from invenio.webinterface_handler import _check_result
459 ## req is the required first parameter of any handler
*******************************************************************************
module_globals = '{\'__builtins__\': {\'IndexError\': <class
exceptions.IndexError at 0x2b34078888f0>, \'help\': Type help() for
interactive help, or help(object) for help about object., \'vars\':
<built-in function vars>, \'SyntaxError\': <class exceptions.SyntaxError
at 0x2b3407888710>, \'unicode\': <type \'unicode\'>,
\'UnicodeDecodeError\': <class exceptions.UnicodeDecodeError at
0x2b3407888c50>, \'isinstance\': <built-in function isinstance>,
\'copyright\': Copyright (c) 2001-2006 Python Software Foundation [...]
possible_handler = "'index'"
req =
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at
0x10394e10>'
the_module = '\'## This file is part of Invenio.\\n##
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
CERN.\\n##\\n## Invenio is free software; you can redistribute it
and/or\\n## modify it under the terms of the GNU General Public License
as\\n## published by the Free Software Foundation; either version 2 of
the\\n## License, or (at your option) any later version.\\n##\\n##
Invenio is distributed in the hope that it will be useful, but\\n##
WITHOUT ANY WARRANTY; without even the implied w [...]
possible_module =
"'/cdsware/invenio/var/www/admin/webjournal/webjournaladmin.py'"
Frame ? in <string> at line 24
__builtins__ = '{\'IndexError\': <class exceptions.IndexError
at 0x2b34078888f0>, \'help\': Type help() for interactive help, or
help(object) for help about object., \'vars\': <built-in function vars>,
\'SyntaxError\': <class exceptions.SyntaxError at 0x2b3407888710>,
\'unicode\': <type \'unicode\'>, \'UnicodeDecodeError\': <class
exceptions.UnicodeDecodeError at 0x2b3407888c50>, \'isinstance\':
<built-in function isinstance>, \'copyright\': Copyright (c) 2001-2006
Python Software Foundation.\nAll Rights Reser [...]
__revision__ = "'$Id$'"
__doc__ = "'Invenio WebJournal Administrator Interface.'"
__lastupdated__ = "'$Date$'"
Frame ? in /usr/lib/python2.4/site-packages/invenio/webjournaladminlib.py at
line 34
*******************************************************************************
31 # pylint: enable=W0622
32
33 from invenio.errorlib import register_exception
----> 34 from invenio.config import \
35 CFG_SITE_URL, \
36 CFG_SITE_LANG, \
37 CFG_SITE_NAME, \
*******************************************************************************
cPickle = 'None'
__revision__ = 'None'
CFG_SITE_URL = 'None'
__builtins__ = '{\'IndexError\': <class exceptions.IndexError
at 0x2b34078888f0>, \'help\': Type help() for interactive help, or
help(object) for help about object., \'vars\': <built-in function vars>,
\'SyntaxError\': <class exceptions.SyntaxError at 0x2b3407888710>,
\'unicode\': <type \'unicode\'>, \'UnicodeDecodeError\': <class
exceptions.UnicodeDecodeError at 0x2b3407888c50>, \'isinstance\':
<built-in function isinstance>, \'copyright\': Copyright (c) 2001-2006
Python Software Foundation.\nAll Rights Reser [...]
CFG_ETCDIR = 'None'
__file__ = 'None'
CFG_CACHEDIR = 'None'
CFG_SITE_NAME = 'None'
sys = 'None'
re = 'None'
__name__ = 'None'
CFG_SITE_LANG = 'None'
register_exception = 'None'
os = 'None'
__doc__ = 'None'
urlopen = 'None'
Best regards
--
JuSER <http://zb0035.zb.kfa-juelich.de>
Need human intervention? Contact <[email protected]>
--
Kind regards,
Alexander Wagner
Subject Specialist
Central Library
52425 Juelich
mail : [email protected]
phone: +49 2461 61-1586
Fax : +49 2461 61-6103
www.fz-juelich.de/zb/DE/zb-fi
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Kennen Sie schon unsere app? http://www.fz-juelich.de/app