Menu

Sipie on Ubuntu 7.10

Help
r92lg1502
2007-10-27
2013-04-23
  • r92lg1502

    r92lg1502 - 2007-10-27

    I downloaded Sipie-0.1190648273.tar.gz, then unzipped it (tar -zxvf).  I looked in the Sipie-0.1190648273 directory that was created, and read the README file.  I followed the instructions about the repositories, but synaptic says it can't find the package.

    Based on info I found in these forums, I then tried running 'python setup.py install'.  After it downloaded and installed setuptools-0.6c5-py2.5.egg from cheeseshop.python.org and BeautifulSoup-3.0.4.tar.gz from www.crummy.com, it seemed to install ok.

    I ran 'gtkSipie', and it asked for my username, password, and login type.  Then, it asked "Are you using Sirius Cananda (http://siriuscanada.ca) True or False:".  After I entered 'False', it said:

    Traceback (most recent call last):
      File "/usr/bin/gtkSipie", line 8, in <module>
        load_entry_point('Sipie==0.1190648273', 'gui_scripts', 'gtkSipie')()
      File "build/bdist.linux-i686/egg/Sipie/gtkPlayer.py", line 55, in gtkPlayer
      File "build/bdist.linux-i686/egg/Sipie/Factory.py", line 99, in __init__
      File "build/bdist.linux-i686/egg/Sipie/Factory.py", line 115, in __setupOpener
      File "/usr/lib/python2.5/urllib2.py", line 467, in build_opener
        opener.add_handler(h)
      File "/usr/lib/python2.5/urllib2.py", line 303, in add_handler
        type(handler))
    TypeError: expected BaseHandler instance, got <type 'NoneType'>

    I then followed the instructions in the message at https://sourceforge.net/forum/message.php?msg_id=4588259, but got this error when I tried to apply the patch:

    patching file Sipie/Factory.py
    Hunk #2 FAILED at 115.
    1 out of 2 hunks FAILED -- saving rejects to file Sipie/Factory.py.rej

    Is there something else I need to do to get sipie to run on my machine?

    Here is the result of 'uname -a':
    Linux mymachine 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

    I have Python 2.5.1 installed.

     
    • Matt Davis

      Matt Davis - 2007-10-30

      Hmmm, don't know why the patch wouldn't work for you.  You can try doing the Sipie/Factory.py edit by hand.

      Replace this code:
              if http_proxy is not None:
                  proxy_handler = urllib2.ProxyHandler({'http': http_proxy})
              else:
                  proxy_handler = None
              opener = urllib2.build_opener(cookie_handler, proxy_handler)
      With this:
              if http_proxy is not None:
                  proxy_handler = urllib2.ProxyHandler({'http': http_proxy})
                  opener = urllib2.build_opener(cookie_handler, proxy_handler)
              else:
                  opener = urllib2.build_opener(cookie_handler)

      -matt

       
      • r92lg1502

        r92lg1502 - 2007-10-30

        OK, that allows it to install.  However, when I run it, and select a stream, it shows the title of the currently playing song or program, but there is no audio.  Watching the network traffic, there is a brief burst of activity when I change streams, but it then drops to zero.

        Other sound apps work OK.

         
    • wildenj

      wildenj - 2007-10-30

      What sound player are you using?  Are you using the default mplayer?  Also after you launch sipie and you aren't getting audio out of the system, what happens if you log in using another terminal window and do a ps -All?  Does it show the sound player being defunct?

       
      • r92lg1502

        r92lg1502 - 2007-10-31

        OK, I didn't realise that mplayer wasn't installed by default in Ubuntu.  It's working fine now.  Thanks for your assistance.

         
      • Jason Vertrees

        Jason Vertrees - 2007-11-12

        Is there a fix for the defunct-ed mplayer?  I've lost listening capabilities and ps shows that mplayer is indeed, defunct.  I checked the threads, but didn't see anything.

        Thanks,

        -- J

         
        • Santiago Leon

          Santiago Leon - 2007-11-13

          The following patch fixes the problem I've been having since last Sunday.  Hope it helps.

          diff -urNp Sipie-0.1190648273/Sipie/Factory.py Sipie.new/Sipie/Factory.py
          --- Sipie-0.1190648273/Sipie/Factory.py 2007-08-08 14:40:50.000000000 -0500
          +++ Sipie.new/Sipie/Factory.py  2007-11-13 16:21:05.000000000 -0600
          @@ -341,8 +341,8 @@ class Factory:
                    #self.__dbfd("getasuxurl-ERROR.html",data) #DEBUG
                    #print "\nAuth Error:, see getasuxurl-ERROR.html\n" #DEBUG
                       raise AuthError
          -        if not asxURL.startswith('http://%s' % (self.host, )):
          -            asxURL = 'http://%s%s' % (self.host, asxURL)
          +        #if not asxURL.startswith('http://%s' % (self.host, )):
          +        #    asxURL = 'http://%s%s' % (self.host, asxURL)
                   self.asxURL = asxURL
                   return asxURL

          diff -urNp Sipie-0.1190648273/Sipie/StreamHandler.py Sipie.new/Sipie/StreamHandler.py
          --- Sipie-0.1190648273/Sipie/StreamHandler.py   2007-06-25 14:59:21.000000000 -0500
          +++ Sipie.new/Sipie/StreamHandler.py    2007-11-13 16:19:22.000000000 -0600
          @@ -26,9 +26,9 @@ class mplayerHandler:
               #
               def __init__(self, location):
                   self.__url = None
          -        mplayerOptions = '-slave -really-quiet -nojoystick -nolirc -user-agent NSPlayer -nomouseinput -ao esd,alsa,oss -prefer-ipv4 -cache 32 -playlist '
          +        mplayerOptions = '-slave -really-quiet -nojoystick -nolirc -user-agent NSPlayer -nomouseinput -ao esd,alsa,oss -prefer-ipv4 -cache 32 '
                   if sys.platform == 'win32':
          -            mplayerOptions = '-slave -really-quiet -nojoystick -nolirc -user-agent NSPlayer -nomouseinput -prefer-ipv4 -cache 32 -playlist '
          +            mplayerOptions = '-slave -really-quiet -nojoystick -nolirc -user-agent NSPlayer -nomouseinput -prefer-ipv4 -cache 32 '
                   self.command = "%s %s "%(location,mplayerOptions)

               def setURL(self, url):

           
          • AJ Coon

            AJ Coon - 2007-11-14

            Dude this totally works!

            My diff is slightly different b/c I've customized my sipie a bit more :-)  But regardless, it looks like the two critical patches are:

            1.  Removing/commenting out this:

              if not asxurl.startswith('http://%s'%(self.host,)):
                     asxurl = "http://%s%s"%(self.host,asxurl)

            2.  Removing the "-playlist" flag from the end of the mplayer options.  A note on this too:  you have to update your ~/.sipie/config file as well.  There's a config variable that gets cached called (appropriately) 'player'.  I drove myself nuts for a few minutes trying to understand why my script was right but then the debug output was still showing the -player...ugh.

            I guess Eli's on vacation or something.  I'd like to see an "official" patch for this one.  But for now I have tunes!

            (p.s. I tried the Firefox plug-in for Sirius and it totally doesn't work.  VERY slick interface though...maybe Dusty and Eli should collaborate on a XUL-based version of sipie)

             
            • InsaneOne

              InsaneOne - 2007-11-14

              You sir, are a god.

               
          • Anonymous

            Anonymous - 2007-11-15

            I made these edits but mplayer still dies.  Is there something else I need to do?  Rerun easy_install maybe?  Is there some way to get some debug statements activated?
            Thanks,
            Mark

             
            • Jason Vertrees

              Jason Vertrees - 2007-11-25

              I too have made the changes, but with no success.  Mplayer is still defunct.  Ideas?

              -- Jason

               
          • cnolan011

            cnolan011 - 2007-11-15

            cool, . . . , , back with Sipie, this worked for me.
            The plugin also worked for me, but i prefer the Sipie.
            thanks
            - chris

             
    • thepaulmorris

      thepaulmorris - 2007-11-01

      Hi all,
      I am in the same situation that r92lg1502 was in:
                  OK, that allows it to install. However, when I run it, and select a stream, it shows the title of the currently playing song or program, but     there is no audio. Watching the network traffic, there is a brief burst of activity when I change streams, but it then drops to zero.

                  Other sound apps work OK.

      Same exact issue I am having however I have mplayer installed, and I can play sirius through mplayer when I launch the web player from sirius.com and all my other sounds work. Sipie runs fine, I see all channels and the alert box pops up with song and artist.
      Any kind of suggestions would be helpful!!

      Thank You

       
      • thepaulmorris

        thepaulmorris - 2007-11-01

        ^^^^ EDIT: Sipie works fine EXCEPT for sound :-(

         
        • Alex Williamson

          Alex Williamson - 2007-11-06

          Same here.  As of sometime last week I don't get any sound.  My mplayer process is defunct.  Seems like something changed with the streams from Sirius.  Their web player no longer works for me either :(

           
          • AJ Coon

            AJ Coon - 2007-11-12

            Hello,

            I did a little research into this issue and emailed the developer (Eli) on 11/9 about the problem.  A copy of the message follows:

            Hello,

            I noticed that sometime in the last couple of days that sipie stopped working on my system.  I usually listen to Sirius while I work, and I've been off for a couple of days.  When I came back to try to turn it on earlier today, I couldn't get the stream to play.

            I finally took some time tonight to dig into the code a bit, and I discovered the the "playlist" url seems to be broken.  Here's what I'm seeing after I uncommented all of your print statements :-)

            Enter stream: classicrewind
            POST= token=&stream=classicrewind&activity=selectStream
            url= http://www.sirius.com/sirius/servlet/MediaPlayer
            cookies :
            0   :   <Cookie captcha_timestamp=1172694706975 for www.sirius.com/>
            1   :   <Cookie sirius_campain_code=null for www.sirius.com/ >
            2   :   <Cookie sirius_login_attempts=0 for www.sirius.com/>
            3   :   <Cookie sirius_login_type=subscriber for www.sirius.com/ >
            4   :   <Cookie sirius_mp_bitrate_button_status_cookie=low for www.sirius.com/>
            5   :   <Cookie sirius_mp_bitrate_entitlement_cookie=lowbandwidth for www.sirius.com/>
            6   :   <Cookie sirius_mp_playertype=1 for www.sirius.com/>
            7   :   <Cookie sirius_mp_pw=093f966b4d14b19adf2835e4775e3aee for www.sirius.com/>
            8   :   <Cookie sirius_promocode=null for www.sirius.com/>
            9   :   <Cookie sirius_user_logintimestamp=2007-02-28T15:31:58.022-05:00 for www.sirius.com/>
            10   :   <Cookie sirius_user_name=ajcoon for www.sirius.com/>
            11   :   <Cookie JSESSIONID=AomoLNorwWyEo8VAIwMjhjzH-Ji7tF7RPICAmItA for www.sirius.com/sirius>
            Enter to continue:
            /usr/bin/mplayer -really-quiet -nojoystick                -nolirc -user-agent NSPlayer -nomouseinput                -ao esd,alsa,oss                -prefer-ipv4 -cache 32 -playlist ' http://www.sirius.comhttp://a509.l2280061698.c22800.g.lm.akamaistream.net/D/509/22800/v0001/reflector:61698?aifp=abcd&partner=sirius_online_player&stream=classicrewind&auth=daEadaGbScQcyaKbkbMcUcKcgbscdbYaPcX-bhnsDP-cw-ErCVBHdbdf&token=d4f05e6deffc3bd33b27ddb1f5501caf&login_type=subscriber&login=ajcoon&campaign=null&bitrate=low&wmcache=0&mswmext=.asx ' > /dev/null 2>&1
            url= http://sirius.criffield.net/classicrewind/artistTrack
            07 11|09 22:37 classicrewind: Night Ranger-Sister Christian

            So I decided to use the Windows client for the time-being.  I did notice at least one change, in that after I used it for probably an hour, a little div popped up on the player window and asked me if I was still listening.  So it would seem that Sirius is implementing some changes to try to prevent people from streaming for long periods of time (like me!)

            I wasn't sure if you were aware of the asx url change or not, but I thought I'd pass this along.

            Thanks!
            -aj

             
            • loyd86

              loyd86 - 2007-11-12

              This seems to be my exact problem. I am just using the standard sirius, but like this past week I have not been getting any sound. When I do a ps -All I dont even see mplayer in the list. It was working fine and I dont think that I changed anything on my system that would have affected it. Did you get back an email response about the issue?

               
    • Jake Thompson

      Jake Thompson - 2007-11-12

      Same here, dead defunct mplayer, seems to work with low bandwith account, but as soon as I signed up for premium, it would no longer work.

       
    • cnolan011

      cnolan011 - 2007-11-13

      OK, I am practically in tears, . . . . I am on the verge of buying a Stileto, . . .
      I have been with out sirius since last friday am I am going into withdrawals, . . .

      On monday I did an upgrade to 7.10, but keep in mind that i lost Sirius before that, . .
      wiped all Sipie from my system, downloaded most recent TAR, installed, and then followed patching instructions, . .
      I then run 'sipie.py' and everything seems to work properly until after I select a channel, after a minute or two with NO sound I get the following:
          cnolan@ua-cnolan:~/Desktop$ sipie.py
          07 11|13 07:33 siriushits1: Morning Mash Up!-Call Us 877.33.SIRIUS
          07 11|13 07:33 siriushits1: Rihanna-Hate That I Love You
          Segmentation fault (core dumped)
          cnolan@ua-cnolan:~/Desktop$

      When I do a 'ps -ALL' before the SEG Fault occurs i find a:

          11684 11684 pts/2    00:00:00 sipie.py
          11684 11685 pts/2    00:00:00 sipie.py
          11690 11690 pts/2    00:00:00 sh <defunct>

      After the SEG those are gone, . . . . .
      there is no reference to MPlayer in my PS

      Someone mentioned setting MPlayer as the default, . . . . how do I do that?
      thanks
      - chris

       
      • Jason Vertrees

        Jason Vertrees - 2007-11-13

        I found a way to get Sirius to stream using FireFox.  I have a dual processor 64-bit system, so if it works here, it should work for you.  While we wait -- and try to figure out how to fix SiPie -- you can download the "Media Player Connectivity" extension for FireFox from https://addons.mozilla.org/en-US/firefox/addon/446

        HTH,

        -- J

         
    • cnolan011

      cnolan011 - 2007-11-14

      Thank you so much for the suggestion of using that plugin, . . . I can hear howard now, so I am calm, but look forward to a fix to the command line utility.
      thanks!
      - chris

       
    • Gary Meola

      Gary Meola - 2007-11-14

      cnolan011, I am missing Howard streaming all day everyday at my desk... the web player just isn't cutting it.

       
    • TwoOneSix

      TwoOneSix - 2007-11-28

      Eli sent in the fix for these issues a few days ago. The fix:

      Find a good place to download the code (mine is in /usr/src)
      1. # cd /usr/src
      2. # svn co https://sipie.svn.sourceforge.net/svnroot/sipie sipie

      Move to that folder and rebuild:
      3. # cd sipie
      4. # easy_install .

      That should get things working again... if not post back.

       

Log in to post a comment.