Results 1 to 2 of 2

Thread: Permissions and home folder

  1. #1
    Join Date
    May 2005
    Location
    Va, USA
    Beans
    428

    Permissions and home folder

    I'm new to programming. I made a program in Windows using Python 3 that downloads FAA approach plates. It uses the QT gui. I recently installed Ubuntu 13.04, and have been trying to get my program to work on Ubuntu. I installed the python modules and QT, and ran my program with the built-in Python installation, in a subfolder of my Home folder.

    The program launches, and the GUI looks native. However, it won't download the plates due to permission errors. My understanding was that the Home folder was a safe zone from permission errors. I tried running Python under SUDO. I didn't get permission errors, but the GUI looked like it was from Windows 95, and the files didn't actually download, despite the program not reporting an error. Any ideas?

  2. #2
    Join Date
    May 2011
    Location
    Belgium
    Beans
    2
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Permissions and home folder

    Quote Originally Posted by Curlydave View Post
    [...] and ran my program with the built-in Python installation, [...]
    If I'm not mistaken the default Python interpreter on Ubuntu 13.04 is Python 2.7, not Python 3.x. Are you sure you ran your program using Python 3?
    Try to run:
    Code:
    $ python3 myprogram.py
    Quote Originally Posted by Curlydave View Post
    [...] in a subfolder of my Home folder.
    What are the permissions of this folder? Find out with:
    Code:
    $ ls -l ~/path-to-your-subfolder
    Quote Originally Posted by Curlydave View Post
    [...] despite the program not reporting an error. Any ideas?
    Do you have any try-except blocks in your code that catch any error raised?
    Code:
    try:
        ...any error raised here...
    except:
        ...is caught here...

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
  •