Results 1 to 5 of 5

Thread: [Python] unable to run scripts: permission denied

  1. #1
    Join Date
    Dec 2014
    Beans
    17

    [Python] unable to run scripts: permission denied

    Hello there guys,
    I was trying to run a script using the terminal:
    Code:
    michi@E6520:~$ '/home/arthur/Desktop/Python/Pygames/pygames.py' 
    bash: /home/michi/Desktop/Python/Pygames/pygames.py: Permission denied
    What's wrong? I know I'm not in the sudoers file, but I can at least do that, can't I?
    Thanks,
    Michi

  2. #2
    Join Date
    May 2014
    Beans
    138

    Re: [Python] unable to run scripts: permission denied

    Try this code in terminal:

    Code:
    chmod +x /home/michi/Desktop/Python/Pygames/pygames.py

  3. #3
    Join Date
    Dec 2014
    Beans
    17

    Re: [Python] unable to run scripts: permission denied

    No errors pop up, but i get nothing on my screen:

    Code:
    michi@E6520:~$ chmod +x /home/michi/Desktop/Python/Pygames/pygames.py
    michi@E6520:~$

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: [Python] unable to run scripts: permission denied

    All it does is mark the script as executable... having done than, are you now able to run the script?

  5. #5
    Join Date
    Dec 2014
    Beans
    17

    Re: [Python] unable to run scripts: permission denied

    Yes it works!
    Thanks so much to, you all!
    Thanks thanks thanks!

Bookmarks

Posting Permissions

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