Reply
Thread Tools
Posts: 233 | Thanked: 17 times | Joined on Jul 2007
#1
I was going through the installation of Sirius and everything was running along well, until I got up to this line:

easy_install BeautifulSoup

That didn't work. Any ideas why not?


Here are the full instructions:

If you have an older N800 that’s still running OS2007, upgrade to OS2008. The instructions for upgrading your OS can be found here.

The first step to installing sipie on your N800/N810 is getting root access on your internet tablet. You have two choices. You can either enable R&D mode or use the SSH method to gain root privileges. This is required to install the necessary packages.

You can find the instructions for enabling R&D mode here.

To use the SSH method you have to enable the maemo Extras repository in your application manager.

You have to do this either way seeing we are going to install the dependencies for sipie from this repository.

ApplicationManager->Tools->Application catalogue…
Edit maemo Extras
Uncheck disabled box
Click OK and wait for the refresh

Once that is done, you can go back to the application manager and install openssh. You could also goto the maemo site and use the one click installer from your Nokia internet tablet.

During the install it will ask you to set a password. Once the install is complete you can open xterm (Utilities > Xterm) and type the following at the command line:

ssh root@localhost

Enter your password. You should now have root privileges.

If you chose to enable R&D mode you can open xterm (Utilities > Xterm) and enter the following at the command prompt:

sudo gainroot

Now that you have root privileges on our Nokia internet tablet, we can begin to install the dependencies for sipie.

At the command line enter the following:

apt-get install mplayer python2.5 python2.5-dev python2.5-setuptools wget

Next install the BeautifulSoup python extension by entering the following at the command line:

easy_install BeautifulSoup

Change to you home directory.

cd /home/user/MyDocs

Download sipie from this site. I made one change to the scripts from the default. I increased the mplayer buffer from 32 to 1024 in the cliPlayer.py script to avoid skipping. Other then that, there are no changes. I just created a tar archive so you could easily install sipie using wget.

wget http://packratstudios.com/download/sipie.tar.gz

Untar the archive by entering the following:

tar -xvzf sipie.tar.gz

Change to the sipie directory:

cd sipie

Launch sipie:

python sipie.py

At this point you will be prompted for a username and password for sirius, whether you are a subscriber or guest, your location, the stream you want to listen too, and the text of a captcha file used to verify you’re human . If you are not a subscriber then you can sign up for a free three day trial at sirius.com.

The stream is usually the name of the station you want to listen to. For example, thevault, atlnation, or octane. It is always lower case and if it is composed of two words there is normally, but not always, and underscore between the words. You’ll have to play around with name. You could get this from the windows player. The stream name is part of the URL, I believe.

By default the captcha file is saved to the root of your home directory. Unfortunately you can’t see this directory in the file manager. In order to view the image file, enter the following in a new xterm session. Don’t close the original xterm session.

Of course you’ll have to repeat the method you used to gain root access in this new xterm session but, once that is complete, enter the following to move the image file.

mv /home/user/img*.* /home/user/MyDocs

Once this is done you can goto the file manager and open the image file in the preview application. Once you have the text (yes it is case sensitive) you can return to your original xterm session and enter it. Thankfully, you only have to go through this process once.

If everything went right you should start hearing your stream after a few seconds.

To end the stream and change stations you have to enter Ctrl+C. You also have to do this to exit the application.

Someone let me know if there is a better way to do this. I haven’t tried entering exit or quit yet.

Enjoy…
 
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#2
Originally Posted by iTab
I was going through the installation of Sirius and everything was running along well, until I got up to this line:

easy_install BeautifulSoup

That didn't work. Any ideas why not?
It would be easier to diagnose if it had not worked with some sort of output message.

is there, in fact, an executable called "easy_install" somewhere on your path?

if there is an easy_install executable in your current directory (not specified in the $PATH environment variable), then you can try:

./easy_install BeautifulSoup

..to execute it from the current directory. (the current directory is not, by default, included in the path on unix/linux systems.)
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Posts: 233 | Thanked: 17 times | Joined on Jul 2007
#3
WOW! Totally lost with what you have said.

I typed in that line (for Easy_Install BeautifulSoup) and it said that there wasn't a corresponding program to open it.

So, I tried to download it from somewhere else and it still wouldn't install...
 
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#4
No problem.

Please remember that unix/linux is cAsE-SenSiTiVe!! `Easy_Install` is an entirely different program name than 'easy_install'. Make sure you have the filename spelled exactly as they indicate, including capitalization (or lack, thereof).

after checking the spelling/capitalization for the line above, if it still doesn't work, try typing a period (dot) followed by a slash (/) followed by the same line (no space before, between, or after the dot and slash!!) and see if that works.
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Posts: 233 | Thanked: 17 times | Joined on Jul 2007
#5
I totally kept everything case-sensitive.

Will that ./ thing really work?

I also typed in this: cd /home/user/MyDocs

And then typed: wget http://packratstudios.com/download/sipie.tar.gz

But it didn't work. Is that because I needed the BeautifulSoup thing working first?
 

The Following User Says Thank You to iTab For This Useful Post:
briand's Avatar
Posts: 566 | Thanked: 145 times | Joined on Feb 2008 @ Tallahassee, FL
#6
Generally speaking, if you're given a set of steps to perform, they need to be performed in order. If one step fails, you shouldn't just continue on with the steps as if nothing were wrong, because, well... something is wrong.

Yes, the ./ thing really does work.

Let's back up even further in the original instructions: did you successfully log in as root to perform these steps on your tablet??
__________________
N800 / OS2008
Now running Canola-free (by invitation) since 2215 UTC 21 May 2008.
 
Posts: 233 | Thanked: 17 times | Joined on Jul 2007
#7
I logged in as root.

Then, I typed in the line: apt-get install mplayer python (etc.) and it worked.

I just tried it again and I got a message that something was unable to be unlocked - so none of them installed properly.

I couldn't even get to the easy_install BeautifulSoup part this time.

UGH!
 
Posts: 233 | Thanked: 17 times | Joined on Jul 2007
#8
I got it working!!!

I got the radio playing - BUT...

How do I get Sirius to start playing more readily each time I want to listen to it, without having to go through these steps:

XTerminal

cd /home/user/MyDocs

cd sipie

python sipie.py

Last edited by iTab; 2008-07-29 at 02:02.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:24.