What's this error then?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sara Khalatbari

    What's this error then?

    You remember me asking about running a program in my
    code...I got a problem here

    I copied the msgfmt here :

    [sara@angoor HEADER]$ ls
    allsamples
    Backup
    file-roller.HEAD.fa. po
    msgfmt.py
    header.py


    & my code is:
    #! /usr/bin/env python

    import os
    from os import execl

    os.execl ('/home/sara/PYTHON/HEADER/msgfmt.py',
    'file-roller.HEAD.fa. po')


    But when I run it, this Error raises:
    [sara@angoor HEADER]$ python run.py
    /usr/bin/env: python2.2: No such file or directory

    Do you have any solutions?

    _______________ _______________ _______________ _____
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    Yahoo Mail: Your smarter, faster, free email solution. Organize your inbox, protect your privacy, and tackle tasks efficiently with AI-powered features and robust security tools.

  • Wolfram Kraus

    #2
    Re: What's this error then?

    Sara Khalatbari wrote:[color=blue]
    > You remember me asking about running a program in my
    > code...I got a problem here
    >[/color]
    [...]
    [color=blue]
    > & my code is:
    > #! /usr/bin/env python[/color]
    ^
    Remove this space, the line should be:
    #!/usr/bin/env python

    [color=blue]
    >
    > import os
    > from os import execl
    >
    > os.execl ('/home/sara/PYTHON/HEADER/msgfmt.py',
    > 'file-roller.HEAD.fa. po')
    >
    >
    > But when I run it, this Error raises:
    > [sara@angoor HEADER]$ python run.py
    > /usr/bin/env: python2.2: No such file or directory
    >
    > Do you have any solutions?[/color]


    HTH,
    Wolfram

    Comment

    Working...