Posts Tagged ‘cds’
CDS-Invenio: Bibindex ‘exception caught: string index out of range’ (a debug how-to)
It is not the first time I have errors in bibindex. If you are experimenting problems with bibindex, such as: bibindex is failing every time I run it (ERROR:idxWORD09F flush ended). ERR log says: ’2011-03-01 14:16:21 –> Exception caught: string index out of range’. First thing you should do is follow the steps to try [...]
CDSInvenio: why some of my records do not have stats in rnkDOWNLOADS table? [SOLVED]
Some days ago I wrote a post about CDS Invenio records’ number-of-downloads stats. I noticed that some of my records did not have stats in rnkDOWNLOADS table and I was wondering why. This is related to the way in which records have been submitted to the repository. If the record has been submited with bibupload [...]
CDS Invenio v1.0 bibclassify exceptions when 404 error
If you are getting exceptions like the following in your CDS Invenio v1.0: Exception (bibclassify_webinterface.py:135:get_keywords_body) Exception (webinterface_handler.py:378:_handler) The following problem occurred on <http://yourhost> (Invenio 1.0.0-rc0)>> 2011-01-12 03:13:27 -> SERVER_RETURN: 404 404 >>> >>> User details agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E) email: guest group: [...]
CDS Invenio: batch delete records (delete records from command line) [SOLVED]
The usual way to delete records in a CDS Invenio repository is to use the web tool (bibedit) or to proceed like stated here. But there was no way to delete records using command line in our CDS Invenio repository by typing something like: bibedit –delete <recidNumber> These steps should be followed to achieve this [...]
CDS-Invenio: CSS Sprites to speed up page load
The last posts are about CDS-Invenio speed up. Another important issue when dealing with optimization is the use of CSS Sprites. Making the CSS Sprites and modify the CSS files can be tricky. But you can use the awesome spriteme.org tool to automate this process. I’ve just tried it and… man, it rocks! ps: You [...]
CDS-Invenio: compress CSS to speed up page load
Some days ago I discovered PageSpeed plugin for Firebug. This plugin is really useful to speed up your CDSInvenio website load time. In this brief post I’ll be describing how to compress CSS with GZIP to speed up page load. It is really simple. 1. Your server must be able to execute PHP. 2. Edit [...]
CDS Invenio: advanced search sort options language issues [SOLVED]
We have noticed that the sort_options in the advanced search of CDS Invenio Repository (release 0.99.1) were being displayed in english by default. The select box is generated in your lib/python/invenio/websearch_templates.py (I defined a custom template so my file is lib/python/invenio/websearch_templates_buz.py, more precisely in the tmpl_search_box function. The sort_fields are passed to that function by [...]
CDS Invenio: Why does Move_to_Done end not appear in function_log?
If you are familiar with CDS INVENIO and know how websubmit works then you will know that a function_log file exists in the current working directory (aka curdir). If you take a close look at this function_log file you will realise that every function’s in the action (aka act) list logs its start and end [...]
[Errno 13] Permission denied: ‘/root/.python-eggs’ [SOLVED]
A few days ago I had to install MySQLdb. The installation is quite simple: # tar -xzvf MySQL-python-1.2.2.tar.gz # cd MySQL-python-1.2.2 # python setup.py build # python setup.py install But then I checked a page which had to use this python module (MySQLdb) and… oops, it did not work: Can’t extract file(s) to egg cache [...]
CDS Invenio: bibrank exceptions [SOLVED]
The problem Our Invenio was spitting exceptions like the following: Forced traceback (most recent call last) File "/usr/lib64/python2.4/site-packages/invenio/bibrank.py", line 150, in task_run_core func_object(key) File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 1210, in word_similarity return word_index(run) File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 839, in word_index update_rnkWORD(options["table"], options["modified_words"]) Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/invenio/bibrank_word_indexer.py", line 1114, in update_rnkWORD Nj[j] = Nj.get(j, 0) + [...]