Find the answer to your Linux question:
Results 1 to 3 of 3
Hi Guys. I am teaching myself some Python in my spare time. I am using this page as a guide: Byte of Python:First Steps - Text When I attempt to ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Location
    ~/
    Posts
    40

    Python: unknown mime-type ?

    Hi Guys. I am teaching myself some Python in my spare time. I am using this page as a guide:
    Byte of Python:First Steps - Text

    When I attempt to make the program executable, this is what I get:
    Code:
    mattmodica@Stargate:~$ chmod a+x helloworld.py
    mattmodica@Stargate:~$ ./helloworld.py
    Warning: unknown mime-type for "Hello World" -- using "application/*"
    Error: no such file "Hello World"
    This is currently what the program consists of:
    Code:
    # Executable
    #!/usr/bin/env python
    
    # Start of the program
    print 'Hello World'
    I am assuming I am missing some component in Linux, but I could be wrong. Does anyone know an answer?

    Thanks,
    BigFoot

  2. #2
    Linux User
    Join Date
    Aug 2006
    Posts
    458
    Quote Originally Posted by BigFoot13 View Post
    Hi Guys. I am teaching myself some Python in my spare time. I am using this page as a guide:
    Byte of Python:First Steps - Text

    When I attempt to make the program executable, this is what I get:
    Code:
    mattmodica@Stargate:~$ chmod a+x helloworld.py
    mattmodica@Stargate:~$ ./helloworld.py
    Warning: unknown mime-type for "Hello World" -- using "application/*"
    Error: no such file "Hello World"
    This is currently what the program consists of:
    Code:
    # Executable
    #!/usr/bin/env python
    
    # Start of the program
    print 'Hello World'
    I am assuming I am missing some component in Linux, but I could be wrong. Does anyone know an answer?

    Thanks,
    BigFoot
    remove the #Executable, and bring the #!/usr/bin/env line up to the very first line. see how it goes.

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Location
    ~/
    Posts
    40
    That was it, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...