Page 10 of 24 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 232

Thread: Conky Exaile Python Script

  1. #91
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Exaile Python Script

    Quote Originally Posted by Tick-Tock View Post
    I don't know if it works thanks to the new .py you gave me o why i use the execp command instead of exec...
    No worries, we have the same issues with the rhythmbox script too, that worked out okay...so whats good for one if good for another (I hope)

  2. #92
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Exaile Python Script

    INSTALL UPDATE

    New instructions on setting up the repository in your system have been added to the first post, as follows

    Remove any existing /etc/apt/sources.list entry before or after doing this!

    1) Create the necessary list file for access to the repository by running this:

    Code:
    sudo wget -q http://www.kaivalagi.com/m-buck-ppa.list -O /etc/apt/sources.list.d/m-buck-ppa.list
    2) Add the repository public key to your apt setup by running this:

    Code:
    wget -q http://www.kaivalagi.com/m-buck-ppa-key.gpg -O- | sudo apt-key add -

  3. #93
    Join Date
    Jan 2009
    Beans
    4

    Angry Re: Conky Exaile Python Script

    Quote Originally Posted by x0x View Post
    step 1. download the attachment file.
    step 2. save it
    step 3. extract it; tar xzf PyInline-0.03.tar.gz
    step 4. cd PyInline-0.03
    step 5. chmod +x setup.py
    step 6. sudo ./setup.py install
    step 7. sudo gedit /usr/lib/exaile/exaile.py
    step 8. find import sys
    step 9. add after
    Code:
    import dl
    import PyInline
    import time
    libc = dl.open('/lib/libc.so.6')
    if libc != 0 : libc.call('prctl', 15, 'exaile\0', 0, 0, 0)
    else : print ('prctl not called')
    
    m = PyInline.build(code=r"""
        #include <Python.h>
        #include <stdio.h>
        #include <string.h>
    
        void set_argv(char *str){
            int argc;
            char **argv;
            Py_GetArgcArgv(&argc, &argv);
            strncpy(argv[0], str , strlen(str));
            memset(&argv[0][strlen(str)], '\0', strlen(&argv[0][strlen(str)]));
        }
        """, language="C")
    
    m.set_argv('exaile')
    step 10. save the file.
    step 11. run exaile

    Doesn't work for me. Get this error message:

    Code:
    Couldn't create build directory _PyInline_edbd2b2165da1a06c01d11721c556823
    Traceback (most recent call last):
      File "/usr/lib/exaile/exaile.py", line 37, in <module>
        """, language="C")
      File "/usr/lib/python2.5/site-packages/PyInline/__init__.py", line 38, in build
        return b.build()
      File "/usr/lib/python2.5/site-packages/PyInline/C.py", line 44, in build
        self._writeModule()
      File "/usr/lib/python2.5/site-packages/PyInline/C.py", line 156, in _writeModule
        raise BuildError("Couldn't open source file for writing: %s" % e)
    PyInline.BuildError: Couldn't open source file for writing: [Errno 2] No such file or directory: '_PyInline_edbd2b2165da1a06c01d11721c556823/_PyInline_edbd2b2165da1a06c01d11721c556823.c'
    Any ideas? Trying to get ${if_running} to work like crazy but nothing seems to work

  4. #94
    Join Date
    Oct 2008
    Beans
    3

    Re: Conky Exaile Python Script

    Any ideas? Trying to get ${if_running} to work like crazy but nothing seems to work
    Hey there. I've been wrestling all day with both conkyExaile and {if_running}. About three hours later (I'm still new to this whole linux thing...), I have figured a very crude work-around.

    For some reason if_running isn't working with exaile, so I tried using if_existing instead. Turns out exaile creates a file when it's playing and deletes it when you exit, so all you need to do is check for that file.

    My conkyrc ends up looking like this
    Code:
    ${if_existing /home/user/.exaile/music.db-journal}
    I'm sure I'm doing something really dumb, but it works...

  5. #95
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Exaile Python Script

    Nice find!

  6. #96
    Join Date
    Jan 2009
    Beans
    4

    Re: Conky Exaile Python Script

    Quote Originally Posted by Vandrerol View Post
    My conkyrc ends up looking like this
    Code:
    ${if_existing /home/user/.exaile/music.db-journal}
    I'm sure I'm doing something really dumb, but it works...
    Wow, thanks! Works like a charm

  7. #97
    Join Date
    Jan 2009
    Beans
    21

    Re: Conky Exaile Python Script

    Hi, guys I`ve just installed conkyexaile-2.04 and when I run conky with this
    Code:
    ${execp conkyExaile --template=/usr/share/conkyexaile/example/conkyExaile.template}
    I see on screen something like this
    Status:Unknown
    Artist:Unknown
    Album:Unknown
    ...etc

    What I do wrong?
    Exaile is running

  8. #98
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Exaile Python Script

    Quote Originally Posted by mayacreator View Post
    Hi, guys I`ve just installed conkyexaile-2.04 and when I run conky with this
    Code:
    ${execp conkyExaile --template=/usr/share/conkyexaile/example/conkyExaile.template}
    I see on screen something like this
    Status:Unknown
    Artist:Unknown
    Album:Unknown
    ...etc

    What I do wrong?
    Exaile is running
    Playing mp3's? or internet radio etc???

    I'll take a look at the weekend, I'm away from home on training at the mo

  9. #99
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Exaile Python Script

    INSTALL UPDATE

    PPA Location Changes

    I have created new PPA's on launchpad to sub-divide all my scripts into their own categories. As such the installation steps for conky scripts have changed, which have been updated on the first post.

    You should all change the repository details using the first post steps to get new updates, no new updates will be applied to the old archive location going forwards.

    By all means leave the old settings in place too, but these will not help you much.

    Jaunty Package Support

    I have created equivalent packages for Jaunty Jackalope in my PPA's now. They are identical to the intrepid packages but sit under a jaunty location. In my limited testing they all seem to work fine. Again the first post has been updated to describe the setup steps.

    Chimo!

  10. #100
    Join Date
    Sep 2007
    Location
    England
    Beans
    37

    Re: Conky Exaile Python Script

    Any help would be appreciated

    Code:
    ERROR: Error loading template file: [Errno 2] No such file or directory: 'usr/share/conkyexaile/example/conkyExaile.template'
    Traceback (most recent call last):
      File "/usr/share/conkyexaile/conkyExaile.py", line 445, in <module>
        main()
      File "/usr/share/conkyexaile/conkyExaile.py", line 442, in main
        exaileinfo.writeOutput()
      File "/usr/share/conkyexaile/conkyExaile.py", line 395, in writeOutput
        print output.encode("utf-8")
    UnboundLocalError: local variable 'output' referenced before assignment
    template:
    Code:
    Artist: [--datatype=AR]
    Title: [--datatype=TI]
    Album: [--datatype=AL]

Page 10 of 24 FirstFirst ... 8910111220 ... LastLast

Tags for this Thread

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
  •