OT: RedHat 6.1 (was Re: newbie unimpressed...)

Olmy olmy at thistledown.org
Mon Jul 17 20:03:13 EDT 2000


hello,

> 
> What's wrong with 6.1?  (We upgraded a few months back, mainly to get
> 1.5.2, and I'd like to know if there's a serious reason we should move
> to 6.2.)


There was one python-specific problem I've run into with RH6.1 versus 
RH6.2. 

6.1 comes with rpm build python-1.5.2-7 and appears to have a 
broken anydbm module (which also breaks shelve). See below:

>>> import anydbm
>>> newdb = anydbm.open('test','c')
>>> newdb['1'] = 'test1'
>>> newdb.close()
>>> 

[olmy at euclid olmy]# python
Python 1.5.2 (#1, Sep 17 1999, 20:15:36)  [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import anydbm
>>> newdb=anydbm.open('test','c')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python1.5/anydbm.py", line 83, in open
    raise error, "db type could not be determined"
anydbm.error: db type could not be determined
>>> 


This problem was apparently fixed with the rpm build of python 
that came with RH6.2 (python-1.5.2-13):

>>> import anydbm
>>> newdb=anydbm.open('test','c')
>>> newdb['1'] = 'test1'
>>> newdb.close()
>>> 
[olmy at hexamon olmy]$ python
Python 1.5.2 (#1, Feb  1 2000, 16:32:16)  [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import anydbm
>>> newdb=anydbm.open('test','c')
>>> newdb['1']
'test1'
>>> newdb.close()


of course, this doesn't mean you need to upgrade from RH6.1 to RH6.2, 
but it would suggest you need to upgrade your python rpms.

cheers,

jeff

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: RN7/dw97SSxgWUT2asyiONlPRzbOe0JQ

iQCVAwUANofqRKxB/KiL2JNNAQEwxwP/VJQamtcDOlt9h3fQ9KqyuiBzBKcXQQMo
Fahl3o4HjqI1qh5mv5Mac1G0YKJp+rkhp64GOKG6jDu46aPIgZ9xTc204wQ+wLyO
mqw8/EEc3PKtGM57vPkkVJraxHZMdZV45wMnno21Gx03k+d7MWbpd85tjYhrXMFJ
TwUCFSAG8/4=
=TRCD
-----END PGP SIGNATURE-----





More information about the Python-list mailing list