Hello,
can anyone explain to me, what this exception means? It occurs on uploading a 
file with WebSubmit. I get a „Document Received“ message and this error. 
Probably I misconfigured something, but what?

Greetlings, Hraban

> Betreff: Exception (intbitset.pyx:273:lib.intbitset.intbitset.__cinit__ 
> (intbitset.c:2951)) at http://invenio.cerebrale.net
> Datum: 6. Februar 2014 09:51:22 GMT+6
> 
> Hello:
> 
> This exception has already been seen 7 times
>    last time it was seen: 2014-02-06 04:51:13
>    last time it was notified: 2014-02-06 04:50:53
> 
> 
> * 2014-02-06 04:51:22 -> TypeError: rhs is of unknown type <type 'NoneType'> 
> (intbitset.pyx:273:lib.intbitset.intbitset.__cinit__ (intbitset.c:2951))
> 
> ** User details
> No client information available
> 
> ** Traceback details 
> 
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.6/dist-packages/invenio/bibtask.py", line 606, 
> in task_init
>    ret = _task_run(task_run_fnc)
>  File "/usr/local/lib/python2.6/dist-packages/invenio/bibtask.py", line 1146, 
> in _task_run
>    if callable(task_run_fnc) and task_run_fnc():
>  File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line 
> 2972, in task_run_core
>    results_for_callback=results_for_callback)
>  File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line 
> 2898, in bibupload_records
>    tmp_vers = tmp_vers)
>  File "/usr/local/lib/python2.6/dist-packages/invenio/bibupload.py", line 
> 296, in bibupload
>    rec_old = get_record(rec_id)
>  File "/usr/local/lib/python2.6/dist-packages/invenio/search_engine.py", line 
> 4886, in get_record
>    return create_record(print_record(recid, 'xm'))[0]
>  File "/usr/local/lib/python2.6/dist-packages/invenio/search_engine.py", line 
> 4922, in print_record
>    if check_user_can_edit_record(user_info, recID):
>  File "/usr/local/lib/python2.6/dist-packages/invenio/search_engine.py", line 
> 6967, in check_user_can_edit_record
>    record_collections = get_all_collections_of_a_record(recid)
>  File "/usr/local/lib/python2.6/dist-packages/invenio/search_engine.py", line 
> 3617, in get_all_collections_of_a_record
>    if recID in get_collection_reclist(name, recreate_cache_if_needed=False):
>  File "/usr/local/lib/python2.6/dist-packages/invenio/search_engine.py", line 
> 525, in get_collection_reclist
>    reclist = intbitset(res[0][1])
>  File "intbitset.pyx", line 276, in lib.intbitset.intbitset.__cinit__ 
> (intbitset.c:3001)
>  File "intbitset.pyx", line 273, in lib.intbitset.intbitset.__cinit__ 
> (intbitset.c:2951)
> TypeError: rhs is of unknown type <type 'NoneType'>
> 
> ** Stack frame details
> 
> Frame lib.intbitset.intbitset.__cinit__ (intbitset.c:2951) in intbitset.pyx 
> at line 273
>                __maxelem__ =  '2147483647'
>               __revision__ =  "'$Id$'"
>                  intbitset =  "<type 'lib.intbitset.intbitset'>"
>                    __all__ =  "['intbitset']"
>               __builtins__ =  "<module '__builtin__' (built-in)>"
>                   __file__ =  
> "'/usr/local/lib/python2.6/dist-packages/invenio/intbitset.so'"
>         intbitset_iterator =  "<type 'lib.intbitset.intbitset_iterator'>"
>               __apilevel__ =  '1.0600000000000001'
>                __package__ =  "'invenio'"
>                        sys =  "<module 'sys' (built-in)>"
>                   __test__ =  '{}'
>                          _ =  '<function _ at 0x9539c80>'
>                   __name__ =  "'invenio.intbitset'"
>                      array =  "<type 'array.array'>"
>                       zlib =  "<module 'zlib' (built-in)>"
>                    __doc__ =  'None'
>       CFG_INTBITSET_ENABLE_SANITY_CHECKS =  'False'
> 
> Frame lib.intbitset.intbitset.__cinit__ (intbitset.c:3001) in intbitset.pyx 
> at line 276
>                __maxelem__ =  '2147483647'
>               __revision__ =  "'$Id$'"
>                  intbitset =  "<type 'lib.intbitset.intbitset'>"
>                    __all__ =  "['intbitset']"
>               __builtins__ =  "<module '__builtin__' (built-in)>"
>                   __file__ =  
> "'/usr/local/lib/python2.6/dist-packages/invenio/intbitset.so'"
>         intbitset_iterator =  "<type 'lib.intbitset.intbitset_iterator'>"
>               __apilevel__ =  '1.0600000000000001'
>                __package__ =  "'invenio'"
>                        sys =  "<module 'sys' (built-in)>"
>                   __test__ =  '{}'
>                          _ =  '<function _ at 0x9539c80>'
>                   __name__ =  "'invenio.intbitset'"
>                      array =  "<type 'array.array'>"
>                       zlib =  "<module 'zlib' (built-in)>"
>                    __doc__ =  'None'
>       CFG_INTBITSET_ENABLE_SANITY_CHECKS =  'False'
> 
> Frame get_collection_reclist in 
> /usr/local/lib/python2.6/dist-packages/invenio/search_engine.py at line 527
> -------------------------------------------------------------------------------
>       524             try:
>       525                 reclist = intbitset(res[0][1])
>       526             except IndexError:
> ---->  527                 pass
>       528         collection_reclist_cache.cache[coll] = reclist
>       529     # finally, return reclist:
>       530     return collection_reclist_cache.cache[coll]
> -------------------------------------------------------------------------------
>                        res =  '((0L, None),)'
>                    reclist =  'intbitset([])'
>                       coll =  "'Other music'"
>       recreate_cache_if_needed =  'False'
>                      query =  "'SELECT nbrecs,reclist FROM collection WHERE 
> name=%s'"
> 
> Frame get_all_collections_of_a_record in 
> /usr/local/lib/python2.6/dist-packages/invenio/search_engine.py at line 3617
> -------------------------------------------------------------------------------
>      3614     if recreate_cache_if_needed:
>      3615         collection_reclist_cache.recreate_cache_if_needed()
>      3616     for name in collection_reclist_cache.cache.keys():
> ----> 3617         if recID in get_collection_reclist(name, 
> recreate_cache_if_needed=False):
>      3618             ret.append(name)
>      3619     return ret
>      3620 
> -------------------------------------------------------------------------------
>       recreate_cache_if_needed =  'True'
>                      recID =  '2715'
>                       name =  "'Other music'"
>                        ret =  '[]'
> 
> Frame check_user_can_edit_record in 
> /usr/local/lib/python2.6/dist-packages/invenio/search_engine.py at line 6967
> -------------------------------------------------------------------------------
>      6964     """ Check if user has authorization to modify a collection
>      6965     the recid belongs to
>      6966     """
> ----> 6967     record_collections = get_all_collections_of_a_record(recid)
>      6968     if not record_collections:
>      6969         # Check if user has access to all collections
>      6970         auth_code, auth_message = acc_authorize_action(req, 
> 'runbibedit',
> -------------------------------------------------------------------------------
>                        req =  'None'
>                      recid =  '2715'
> 
> Frame print_record in 
> /usr/local/lib/python2.6/dist-packages/invenio/search_engine.py at line 4922
> -------------------------------------------------------------------------------
>      4919         can_see_hidden = 
> user_info.get('precached_canseehiddenmarctags', False)
>      4920 
>      4921     can_edit_record = False
> ----> 4922     if check_user_can_edit_record(user_info, recID):
>      4923         can_edit_record = True
>      4924 
>      4925 
> -------------------------------------------------------------------------------
>                         sp =  "''"
>                    verbose =  '0'
>                         ot =  "''"
>                         ln =  "'en'"
>                     format =  "'xm'"
>             can_see_hidden =  'False'
>            can_edit_record =  'False'
>                         sf =  "''"
>                  user_info =  'None'
>                         so =  "'d'"
>             search_pattern =  'None'
>                         rm =  "''"
>                 decompress =  '<built-in function decompress>'
>       display_claim_this_paper =  'False'
>                          _ =  '<bound method GNUTranslations.gettext of 
> <gettext.GNUTranslations instance at 0x967bcf8>>'
>                      recID =  '2715'
> 
> Frame get_record in 
> /usr/local/lib/python2.6/dist-packages/invenio/search_engine.py at line 4886
> -------------------------------------------------------------------------------
>      4883                 pass
>      4884             else:
>      4885                 return deserialize_via_marshal(val)
> ----> 4886     return create_record(print_record(recid, 'xm'))[0]
>      4887 
>      4888 def print_record(recID, format='hb', ot='', ln=CFG_SITE_LANG, 
> decompress=zlib.decompress,
>      4889                  search_pattern=None, user_info=None, verbose=0, 
> sf='', so='d', sp='', rm=''):
> -------------------------------------------------------------------------------
>                      recid =  '2715'
>                      value =  '()'
> 
> Frame bibupload in 
> /usr/local/lib/python2.6/dist-packages/invenio/bibupload.py at line 296
> -------------------------------------------------------------------------------
>       293         insert_mode_p = False
>       294         # Update Mode
>       295         # Retrieve the old record to update
> ---->  296         rec_old = get_record(rec_id)
>       297         record_had_altered_bit = record_get_field_values(rec_old, 
> CFG_BIBUPLOAD_EXTERNAL_OAIID_TAG[:3], CFG_BIBUPLOAD_EXTERNAL_OAIID_TAG[3], 
> CFG_BIBUPLOAD_EXTERNAL_OAIID_TAG[4], CFG_OAI_PROVENANCE_ALTERED_SUBFIELD)
>       298         # Also save a copy to restore previous situation in case of 
> errors
>       299         original_record = get_record(rec_id)
> -------------------------------------------------------------------------------
>                   unique_p =  'True'
>       record_had_altered_bit =  'False'
>                    tmp_ids =  '{}'
>            original_record =  '{}'
>                     record =  "{'541': [([('a', 
> 'http://kiber.akipress.org/news:211')], ' ', ' ', '', 16)], '856': [([('f', 
> 'eBilim_13-12-2013_kyber-AKIpress.pdf')], '0', ' ', '', 18), ([('f', 
> '[email protected]')], '0', ' ', '', 20)], '852': [([('a', 'News; News 
> about eBilim')], ' ', ' ', '', 4)], '300': [([('a', '2 
> \\xd1\\x81\\xd1\\x82\\xd1\\x80.')], ' ', ' ', '', 12)], '980': [([('a', 
> 'ARTICLE')], ' ', ' ', '', 19)], '542': [([('l', 'C')], ' ', ' ', '', 13)], 
> '001': [([], ' ', ' ', '2715', 1)], '260': [([('c', '2013-12 [...]
>           record_deleted_p =  'False'
>                    pretend =  'False'
>                    rec_old =  '{}'
>                     rec_id =  '2715'
>                   tmp_vers =  '{}'
>                 oai_rec_id =  "''"
>           opt_notimechange =  '0'
>              insert_mode_p =  'False'
>                      error =  'None'
>                        msg =  "''"
>              affected_tags =  '{}'
>                        now =  'datetime.datetime(2014, 2, 6, 4, 51, 22, 
> 493876)'
>         is_opt_mode_delete =  'False'
>                   opt_mode =  "'replace_or_insert'"
> 
> Frame bibupload_records in 
> /usr/local/lib/python2.6/dist-packages/invenio/bibupload.py at line 2898
> -------------------------------------------------------------------------------
>      2895                 oai_rec_id = record_id,
>      2896                 pretend = pretend,
>      2897                 tmp_ids = tmp_ids,
> ----> 2898                 tmp_vers = tmp_vers)
>      2899             results.append(error)
>      2900             if error[0] == 1:
>      2901                 if record:
> -------------------------------------------------------------------------------
>           opt_notimechange =  '0'
>               callback_url =  'None'
>                     record =  "{'541': [([('a', 
> 'http://kiber.akipress.org/news:211')], ' ', ' ', '', 16)], '856': [([('f', 
> 'eBilim_13-12-2013_kyber-AKIpress.pdf')], '0', ' ', '', 18), ([('f', 
> '[email protected]')], '0', ' ', '', 20)], '852': [([('a', 'News; News 
> about eBilim')], ' ', ' ', '', 4)], '300': [([('a', '2 
> \\xd1\\x81\\xd1\\x82\\xd1\\x80.')], ' ', ' ', '', 12)], '980': [([('a', 
> 'ARTICLE')], ' ', ' ', '', 19)], '542': [([('l', 'C')], ' ', ' ', '', 13)], 
> '001': [([], ' ', ' ', '2715', 1)], '260': [([('c', '2013-12 [...]
>       results_for_callback =  "{'results': []}"
>                    pretend =  'False'
>                    results =  '[]'
>                   tmp_vers =  '{}'
>                    records =  "[{'541': [([('a', 
> 'http://kiber.akipress.org/news:211')], ' ', ' ', '', 16)], '856': [([('f', 
> 'eBilim_13-12-2013_kyber-AKIpress.pdf')], '0', ' ', '', 18), ([('f', 
> '[email protected]')], '0', ' ', '', 20)], '852': [([('a', 'News; News 
> about eBilim')], ' ', ' ', '', 4)], '300': [([('a', '2 
> \\xd1\\x81\\xd1\\x82\\xd1\\x80.')], ' ', ' ', '', 12)], '980': [([('a', 
> 'ARTICLE')], ' ', ' ', '', 19)], '542': [([('l', 'C')], ' ', ' ', '', 13)], 
> '001': [([], ' ', ' ', '2715', 1)], '260': [([('c', '2013-1 [...]
>                  record_id =  "''"
>                    tmp_ids =  '{}'
>                   opt_mode =  "'replace_or_insert'"
> 
> Frame task_run_core in 
> /usr/local/lib/python2.6/dist-packages/invenio/bibupload.py at line 2972
> -------------------------------------------------------------------------------
>      2969                               
> opt_notimechange=task_get_option('notimechange'),
>      2970                               pretend=task_get_option('pretend'),
>      2971                               callback_url=callback_url,
> ----> 2972                               
> results_for_callback=results_for_callback)
>      2973         else:
>      2974             write_message("   ERROR: bibupload failed: No record 
> found",
>      2975                         verbose=1, stream=sys.stderr)
> -------------------------------------------------------------------------------
>       results_for_callback =  "{'results': []}"
>                       recs =  "[{'541': [([('a', 
> 'http://kiber.akipress.org/news:211')], ' ', ' ', '', 16)], '856': [([('f', 
> 'eBilim_13-12-2013_kyber-AKIpress.pdf')], '0', ' ', '', 18), ([('f', 
> '[email protected]')], '0', ' ', '', 20)], '852': [([('a', 'News; News 
> about eBilim')], ' ', ' ', '', 4)], '300': [([('a', '2 
> \\xd1\\x81\\xd1\\x82\\xd1\\x80.')], ' ', ' ', '', 12)], '980': [([('a', 
> 'ARTICLE')], ' ', ' ', '', 19)], '542': [([('l', 'C')], ' ', ' ', '', 13)], 
> '001': [([], ' ', ' ', '2715', 1)], '260': [([('c', '2013-1 [...]
>               callback_url =  'None'
> 
> Frame _task_run in /usr/local/lib/python2.6/dist-packages/invenio/bibtask.py 
> at line 1182
> -------------------------------------------------------------------------------
>      1179             ## we are done:
>      1180             write_message("Task #%d finished. [%s]" % 
> (_TASK_PARAMS['task_id'], task_status))
>      1181         ## Removing the pid
> ----> 1182         os.remove(pidfile_name)
>      1183 
>      1184     #Lets call the post-process tasklets
>      1185     if task_get_task_param("post-process"):
> -------------------------------------------------------------------------------
>                  _TASKLETS =  '<invenio.pluginutils.PluginContainer object at 
> 0xa10c550>'
>                  sleeptime =  "''"
>                   time_now =  'datetime.datetime(2014, 2, 6, 4, 51, 22, 
> 489826)'
>               pidfile_name =  "'/opt/invenio/var/run/bibsched_task_232.pid'"
>                       host =  "'manat.fiee.net'"
>               task_run_fnc =  '<function task_run_core at 0xa10bc80>'
>                task_status =  "'RUNNING'"
>                    pidfile =  "<closed file 
> '/opt/invenio/var/run/bibsched_task_232.pid', mode 'w' at 0xa1104b0>"
> 
> Frame task_init in /usr/local/lib/python2.6/dist-packages/invenio/bibtask.py 
> at line 615
> -------------------------------------------------------------------------------
>       612                 # an error traceback
>       613                 if isinstance(e, SystemExit) and e.code == 0:
>       614                     raise
> ---->  615                 register_exception(alert_admin=True)
>       616                 write_message("Unexpected error occurred: %s." % e, 
> sys.stderr)
>       617                 write_message("Traceback is:", sys.stderr)
>       618                 
> write_messages(''.join(traceback.format_tb(sys.exc_info()[2])), sys.stderr)
> -------------------------------------------------------------------------------
>       task_stop_helper_fnc =  'None'
>       task_submit_check_options_fnc =  '<function task_submit_check_options 
> at 0xa10baa0>'
>                          e =  'TypeError("rhs is of unknown type <type 
> \'NoneType\'>",)'
>                  wrap_warn =  '<function wrap_warn at 0x9807668>'
>        help_specific_usage =  '\'  -a, --append\\t\\tnew fields are appended 
> to the existing record\\n  -c, --correct\\t\\tfields are replaced by the new 
> ones in the existing record, except\\n\\t\\t\\twhen overridden by 
> CFG_BIBUPLOAD_CONTROLLED_PROVENANCE_TAGS\\n  -i, --insert\\t\\tinsert the new 
> record in the database\\n  -r, --replace\\t\\tthe existing record is entirely 
> replaced by the new one,\\n\\t\\t\\texcept for fields in 
> CFG_BIBUPLOAD_STRONG_TAGS\\n  -d, --delete\\t\\tspecified fields are deleted 
> in existing record\\ [...]
>            to_be_submitted =  'False'
>                    version =  "'$Id$'"
>                       argv =  "('/opt/invenio/bin/bibupload', '-r', '-i', 
> '/opt/invenio/var/tmp/UCA-ARTICL-2014-002_2014-02-05_11:13:00zgrv0P', '-P', 
> '3', '-I', '946113367')"
>            specific_params =  "('ircazdnoS:', ['insert', 'replace', 
> 'correct', 'append', 'reference', 'delete', 'notimechange', 'holdingpen', 
> 'pretend', 'force', 'callback-url=', 'nonce=', 'special-treatment=', 
> 'stage='])"
>               task_run_fnc =  '<function task_run_core at 0xa10bc80>'
>                     params =  "{'priority': 3, 'sequence-id': '946113367'}"
>       task_submit_elaborate_specific_parameter_fnc =  '<function 
> task_submit_elaborate_specific_parameter at 0xa10ba28>'
>                  task_name =  "'bibupload'"
>       authorization_action =  "'runbibupload'"
>          authorization_msg =  "'BibUpload Task Submission'"
>                description =  "'Receive MARC XML file and update appropriate 
> database\\ntables according to options.\\nExamples:\\n    $ bibupload -i 
> input.xml\\n'"
> 

Reply via email to