Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45373

python 2.7 vs 2.5

From inq1ltd <inq1ltd@inqvista.com>
Subject python 2.7 vs 2.5
Date 2013-05-15 16:56 -0400
Organization inqvista
References <5190b049$0$29978$c3e8da3$5496439d@news.astraweb.com> <mailman.1642.1368478473.3114.python-list@python.org> <avhumdFft7tU1@mid.individual.net>
Newsgroups comp.lang.python
Message-ID <mailman.1720.1368653362.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

My web server is using python 2.5.

My cgi file is trying to open a shelve.

I xxx out some of the path below. 

I am trying to find out if this 
error is caused because I am using python 2.7 to write 
the cgi file and my web server is using python 2.5.

I would appreciate a confirmation of this.

 line 85, in FentriesFilled dbase = shelve.open( vpath, 'c' ) File 
"/usr/local/lib/python-2.5/lib/python2.5/shelve.py", line 225, in open return 
DbfilenameShelf(filename, flag, protocol, writeback) File 
"/usr/local/lib/python-2.5/lib/python2.5/shelve.py",

 line 209, in __init__ Shelf.__init__(self, anydbm.open(filename, flag), 
protocol, writeback) File "/usr/local/lib/python-2.5/lib/python2.5/anydbm.py", 
line 83, in open return mod.open(file, flag, mode) 

File "/usr/local/lib/python-2.5/lib/python2.5/dbhash.py", line 16, in open 
return bsddb.hashopen(file, flag, mode) 

File "/usr/local/lib/python-2.5/lib/python2.5/bsddb/__init__.py", line 306, in 
hashopen d.open(file, db.DB_HASH, flags, mode) bsddb.db.DBInvalidArgError: 
(22, 'Invalid argument --/home/users/web/xxxxx/yyy.inqvista/public_html/xxxx-
ssss/email: unsupported hash version: 9') 

thanks,
jd



Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[Off topic] Software epigrams Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-13 09:20 +0000
  Re: [Off topic] Software epigrams "marduk@python.net" <marduk@python.net> - 2013-05-13 10:56 -0400
  Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 03:47 +1000
  Re: [Off topic] Software epigrams Skip Montanaro <skip@pobox.com> - 2013-05-13 13:02 -0500
    Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-13 18:42 +0000
      Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-13 21:49 +0100
        Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-15 17:24 +0000
          Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-15 18:49 +0100
            Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-15 18:27 +0000
              Re: [Off topic] Software epigrams Fábio Santos <fabiosantosart@gmail.com> - 2013-05-16 01:21 +0100
                Re: [Off topic] Software epigrams Neil Cerutti <neilc@norwich.edu> - 2013-05-16 14:23 +0000
                Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-17 00:37 +1000
                Re: Software epigrams rusi <rustompmody@gmail.com> - 2013-05-16 08:06 -0700
                Re: Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-17 01:19 +1000
          python 2.7 vs 2.5 inq1ltd <inq1ltd@inqvista.com> - 2013-05-15 16:56 -0400
          sendmail smtplib.SMTP('localhost') Where is the email? inq1ltd <inq1ltd@inqvista.com> - 2013-05-30 15:48 -0400
          Re: sendmail smtplib.SMTP('localhost') Where is the email? Chris Angelico <rosuav@gmail.com> - 2013-05-31 08:13 +1000
          Re: sendmail smtplib.SMTP('localhost') Where is the email? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-05-30 19:23 -0400
  Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 04:12 +1000
    Re: [Off topic] Software epigrams Dan Sommers <dan@tombstonezero.net> - 2013-05-14 03:08 +0000
      Re: [Off topic] Software epigrams Chris Angelico <rosuav@gmail.com> - 2013-05-14 13:28 +1000
      Re: Software epigrams rusi <rustompmody@gmail.com> - 2013-05-15 20:55 -0700

csiph-web