Page 1 of 1

'Python' & $TAPE issues on FC4 install (solved)

Posted: Fri Jun 02, 2006 11:13 am
by btisdall
Whilst trying to do a test upgrade to 10.0.1 on a VMware setup I encountered the dreaded "Build does not contain version for the version of Python installed" error &, bizarrely, errors about /dev/nst0.

I eventually realised that I have the $TAPE environment variable set and this was causing tar to ignore stdin & try to extract the file from the tape drive. The solution was therefore to unset the $TAPE variable, or better still, tweak line 124 of the scalix-installer script so it looks like:


Code: Select all

tail +$SKIP $0 | tar xzmf - -C "$WRKDIR"


The version below should also fix Python errors resulting from new versions of 'tail' that don't have the skip option. Mwarfield gave a very big hint on this one here:

http://www.scalix.com/community/viewtop ... ght=python

But here's a solution in full:

Code: Select all

sed -e '1,/^__ARCHIVE_FOLLOWS__/d' $0 | tar xzmf - -C "$WRKDIR"


Note with either of these the installer still gave the following errors:

Code: Select all

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error exit delayed from previous errors


Nevertheless, the installation then proceeded without problems for me.

Hope this helps someone.

Posted: Fri Jun 02, 2006 12:10 pm
by ScalixSupport
What version of Python did you have installed on FC4 ?

Cheers

Dave

Posted: Fri Jun 02, 2006 12:50 pm
by btisdall
bentis@FAKE-REDRESS:~$ rpm -qi python
Name : python Relocations: (not relocatable)
Version : 2.4.1 Vendor: Red Hat, Inc.
Release : 2 Build Date: Mon 16 May 2005 08:30:02 PM BST
Install Date: Sat 20 May 2006 07:48:42 AM BST Build Host: decompose.build.redhat.com
Group : Development/Languages Source RPM: python-2.4.1-2.src.rpm
Size : 20792316 License: PSF - see LICENSE
Signature : DSA/SHA1, Fri 20 May 2005 06:34:44 PM BST, Key ID b44269d04f2a6fd2Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://www.python.org/
Summary : An interpreted, interactive, object-oriented programming language [...]