Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6961169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:29:45+00:00 2026-05-27T15:29:45+00:00

A Python application (having a permission to be executed by the user) doesn’t start

  • 0

A Python application (having a permission to be executed by the user) doesn’t start with double click on it. If I run it (directly, by ./theapp.pyw) in terminal I get “: No such file or directory” error (while there is no such a string in the application code and the file surely exists (renaming it and using a different name results in the same)).

But If I explicitly open it with Python (by issuing python ./theapp.pyw or right-clicking and choosing to open with Python 2.7) it works just fine.

The first line of the file says

#!/usr/bin/env python

Issuing “/usr/bin/env python” command launches Python 2.7 console.

The OS is XUbuntu Linux 11.10. The only Python installed is Ubuntu’s default 2.7.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:29:46+00:00Added an answer on May 27, 2026 at 3:29 pm

    pyw files are for windows
    http://filext.com/file-extension/PYW

    And in windows the shebang line is ignored.
    Just work with the .py script.

    You can also try creating a bash script that launches your python scripts with the specific flags that you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble debugging a multi-process application (specifically using a process pool in python's
I am having a bit of difficulty getting Env.js working with my Python application.
Im having some import problems with an application I developed in python with Eclipse/PyDev.
I realise that web application frameworks are well documented, yet having tried 2 Python
I wrote an application server (using python & twisted) and I want to start
I'm trying to write a python application with a gui, and I'm having trouble
I have an existing python application (limited deployment) that requires the ability to run
I'm trying to build a Python application using pyGTK, treads, and sockets. I'm having
I have a Python application in a strange state. I don't want to do
I'm writing a Python application that takes a command as an argument, for example:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.