Results 1 to 5 of 5

Thread: python gconf

  1. #1
    Join Date
    Sep 2005
    Beans
    53

    python gconf

    I'm fairly new to python but i''ve been programming for awhile.
    i found one example python script that would change the desktop wallpaper.
    it uses the gconf module. When I try to run it however, I get
    line 4: import: command not found

    i tried installing some other packages, maybe not the right one

    i have other modules working with import such as
    import os

    how do i get this working

  2. #2
    Join Date
    Apr 2007
    Beans
    33

    Re: python gconf

    did you install python-gconf?

  3. #3
    Join Date
    Nov 2004
    Location
    Clemson, SC
    Beans
    271

    Re: python gconf

    that sounds like you aren't using the python interpreter. Make sure the script starts with the line
    Code:
    #!/usr/bin/env python
    That has to be the very first line, no line breaks or comments are allowed before that line.

  4. #4
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: python gconf

    Quote Originally Posted by c2483 View Post
    I'm fairly new to python but i''ve been programming for awhile.
    i found one example python script that would change the desktop wallpaper.
    it uses the gconf module. When I try to run it however, I get
    line 4: import: command not found

    i tried installing some other packages, maybe not the right one

    i have other modules working with import such as
    import os

    how do i get this working
    Hey c2483, what tutorial is this? I'm new to Python and would like to know how to edit gconf as well...

  5. #5
    Join Date
    Mar 2007
    Beans
    68
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: python gconf

    Quote Originally Posted by altonbr View Post
    Hey c2483, what tutorial is this? I'm new to Python and would like to know how to edit gconf as well...
    I think it's here: http://therning.org/magnus/archives/57

    EDIT: Also, if you have python-gconf installed, you can look in /usr/share/doc/python-gconf/examples/ for some example scripts.
    Last edited by Cherry Cotton; July 3rd, 2008 at 10:07 AM. Reason: added the local resource

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
  •