<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/863" rel="nofollow">http://projects.scipy.org/scipy/ticket/863</a> on 2009-02-01 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)           
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 279, in test_add_function_ordered
    q.add_function('f',string.upper)                                                                                                
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 653, in add_function                        
    self.add_function_persistent(code,function)                                                                                     
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent             
    function_list = function_list + cat.get(code,[])                                                                                
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                           
    if key in self.dict:                                                                                                            
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                     
    pos, siz = self._index[key] # may raise KeyError                                                                                
KeyError: 0                                                                                                                         

======================================================================
ERROR: Test persisting a function in the default catalog              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 267, in test_add_function_persistent1
    q.add_function_persistent('code',i)                                                                                                 
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent                 
    function_list = function_list + cat.get(code,[])                                                                                    
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                               
    if key in self.dict:                                                                                                                
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                         
    pos, siz = self._index[key] # may raise KeyError                                                                                    
KeyError: 0                                                                                                                             

======================================================================
ERROR: Shouldn't get a single file from the temp dir.                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 195, in test_get_existing_files2
    q.add_function('code', os.getpid)                                                                                              
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 653, in add_function                       
    self.add_function_persistent(code,function)                                                                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent            
    function_list = function_list + cat.get(code,[])                                                                               
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                          
    if key in self.dict:                                                                                                           
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                    
    pos, siz = self._index[key] # may raise KeyError                                                                               
KeyError: 0                                                                                                                        "><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)           
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 279, in test_add_function_ordered
    q.add_function('f',string.upper)                                                                                                
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function                        
    self.add_function_persistent(code,function)                                                                                     
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent             
    function_list = function_list + cat.get(code,[])                                                                                
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                           
    if key in self.dict:                                                                                                            
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                     
    pos, siz = self._index[key] # may raise KeyError                                                                                
KeyError: 0                                                                                                                         

======================================================================
ERROR: Test persisting a function in the default catalog              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 267, in test_add_function_persistent1
    q.add_function_persistent('code',i)                                                                                                 
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent                 
    function_list = function_list + cat.get(code,[])                                                                                    
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                               
    if key in self.dict:                                                                                                                
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                         
    pos, siz = self._index[key] # may raise KeyError                                                                                    
KeyError: 0                                                                                                                             

======================================================================
ERROR: Shouldn't get a single file from the temp dir.                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 195, in test_get_existing_files2
    q.add_function('code', os.getpid)                                                                                              
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function                       
    self.add_function_persistent(code,function)                                                                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent            
    function_list = function_list + cat.get(code,[])                                                                               
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                          
    if key in self.dict:                                                                                                           
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                    
    pos, siz = self._index[key] # may raise KeyError                                                                               
KeyError: 0                                                                                                                        
</code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/855" rel="nofollow">http://projects.scipy.org/scipy/ticket/855</a> on 2009-01-24 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)           
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 279, in test_add_function_ordered
    q.add_function('f',string.upper)                                                                                                
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 653, in add_function                        
    self.add_function_persistent(code,function)                                                                                     
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent             
    function_list = function_list + cat.get(code,[])                                                                                
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                           
    if key in self.dict:                                                                                                            
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                     
    pos, siz = self._index[key] # may raise KeyError                                                                                
KeyError: 0                                                                                                                         

======================================================================
ERROR: Test persisting a function in the default catalog              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 267, in test_add_function_persistent1
    q.add_function_persistent('code',i)                                                                                                 
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent                 
    function_list = function_list + cat.get(code,[])                                                                                    
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                               
    if key in self.dict:                                                                                                                
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                         
    pos, siz = self._index[key] # may raise KeyError                                                                                    
KeyError: 0                                                                                                                             

======================================================================
ERROR: Shouldn't get a single file from the temp dir.                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py&quot;, line 195, in test_get_existing_files2
    q.add_function('code', os.getpid)                                                                                              
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 653, in add_function                       
    self.add_function_persistent(code,function)                                                                                    
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py&quot;, line 688, in add_function_persistent            
    function_list = function_list + cat.get(code,[])                                                                               
  File &quot;/usr/lib64/python2.6/shelve.py&quot;, line 113, in get                                                                          
    if key in self.dict:                                                                                                           
  File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py&quot;, line 73, in __getitem__                    
    pos, siz = self._index[key] # may raise KeyError                                                                               
KeyError: 0            "><pre class="notranslate"><code class="notranslate">======================================================================
ERROR: test_add_function_ordered (test_catalog.TestCatalog)           
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 279, in test_add_function_ordered
    q.add_function('f',string.upper)                                                                                                
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function                        
    self.add_function_persistent(code,function)                                                                                     
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent             
    function_list = function_list + cat.get(code,[])                                                                                
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                           
    if key in self.dict:                                                                                                            
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                     
    pos, siz = self._index[key] # may raise KeyError                                                                                
KeyError: 0                                                                                                                         

======================================================================
ERROR: Test persisting a function in the default catalog              
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 267, in test_add_function_persistent1
    q.add_function_persistent('code',i)                                                                                                 
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent                 
    function_list = function_list + cat.get(code,[])                                                                                    
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                               
    if key in self.dict:                                                                                                                
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                         
    pos, siz = self._index[key] # may raise KeyError                                                                                    
KeyError: 0                                                                                                                             

======================================================================
ERROR: Shouldn't get a single file from the temp dir.                 
----------------------------------------------------------------------
Traceback (most recent call last):                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/tests/test_catalog.py", line 195, in test_get_existing_files2
    q.add_function('code', os.getpid)                                                                                              
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 653, in add_function                       
    self.add_function_persistent(code,function)                                                                                    
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/weave/catalog.py", line 688, in add_function_persistent            
    function_list = function_list + cat.get(code,[])                                                                               
  File "/usr/lib64/python2.6/shelve.py", line 113, in get                                                                          
    if key in self.dict:                                                                                                           
  File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/dumbdbm_patched.py", line 73, in __getitem__                    
    pos, siz = self._index[key] # may raise KeyError                                                                               
KeyError: 0            
</code></pre></div>