Re: Problem with shelve/gdbm

2007-10-21 Thread Gabriel Genellina
En Fri, 19 Oct 2007 17:58:50 -0300, Douglas Applegate  
<[EMAIL PROTECTED]> escribi�:

> I am having a problem with shelve. The problem I think is really with
> gdbm. I'll write out a file using shelve/gdbm on an amd64 machine and
> then I'll try to read it in on a i386 machine. The result is a 'gdbm
> fatal: read error.' Reversing directions results in the same problem.
> Below are two small programs that get at the heart of the problem:

Best to file a bug at http://bugs.python.org

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Problem with shelve/gdbm

2007-10-19 Thread Douglas Applegate
Hi-

I am having a problem with shelve. The problem I think is really with  
gdbm. I'll write out a file using shelve/gdbm on an amd64 machine and  
then I'll try to read it in on a i386 machine. The result is a 'gdbm  
fatal: read error.' Reversing directions results in the same problem.  
Below are two small programs that get at the heart of the problem:

#test.py##
#!/usr/bin/env python
import gdbm
print gdbm
storage = gdbm.open('test.pstor', 'c')

storage['test'] = 'a'

storage.close()


#test2.py#
#!/usr/bin/env python
import gdbm
print gdbm
storage = gdbm.open('test.pstor', 'r')

print storage['test']

storage.close()

#
The result of running test2 is as follows:


Traceback (most recent call last):
   File "./test2.py", line 4, in 
 storage = gdbm.open('test.pstor', 'r')
gdbm fatal: read error



It isn't much to go on, but has anybody else had this problem?


Cheers,
Doug
-- 
http://mail.python.org/mailman/listinfo/python-list