-bash: /usr/bin/python: cannot execute binary file
On 10/4/06, Tony Nelson
<tonynelson@xxxxxxxxxxxxxxxxx> wrote:
At 8:45 AM +0200 10/4/06, Gregory Machin wrote:
>Hi
>when i run yum i get the following
>
>[root@fwlw-dsl ~]# yum update
>import: unable to open X server `'.
>/usr/bin/yum: line 3: try:: command not found
>import: unable to open X server `'.
>/usr/bin/yum: line 5: except: command not found
>/usr/bin/yum: line 23: syntax error near unexpected token `('
>/usr/bin/yum: line 23: `""" % ( sys.exc_value, sys.version)'
>
>I have reinstalled yum and it's the same ....
>what do i try next ...
I don't know. For some reason, yum is being run as a bash script rather
than a python script. The file /usr/bin/yum should have a first line that
refers to python:
#!/usr/bin/python
Typing "python" at the command line should run python (press Ctl-d to get
back out).
--
____________________________________________________________________
TonyN.:' The Great Writ <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
' is no more. <http://www.georgeanelson.com/ >
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
Gregory Machin
gregory.machin@xxxxxxxxx
www.linuxpro.co.za
-- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list