Hi Rita: On Wed, 01 Apr 2009, Rita Ricceri wrote: > we need to put online an old version of invenio but we are > experiencing the following errors: > > File "/usr/lib/python2.4/site-packages/invenio/websearch_templates.py", line > 33, in ? > from invenio.urlutils import make_canonical_urlargd, drop_default_urlargd, > a_href > > ImportError: cannot import name a_href
The function a_href() used to live in urlutils.py, but it was supressed from that file on Wed Nov 22 14:58:59 2006. (1) When you restored your old Invenio version, you may perhaps not restored all your files to the same time instance? (Since your urlutils.py appears to be newer than your other files, because you don't have a_href() anymore, but your other files are still asking for it.). (2) When you restored your files, you have perhaps restored timestamps but left around *.pyc files (bytecode compiled files) that correspond to the newer versions? Please double check whether you have restored all the files, please delete any *.pyc files sitting in your invenio folder, and then restart Apache. P.S. Resending, my last week's reply apparently did not go to the lists. Best regards -- Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>
