Comments (15)
I was able to look through the install log of someone else's install, and I may have understood what's wrong.
Execute this command in a terminal: sudo apt-get install python-requests
. Does it install or does it say it's already installed? If it does install a few packages, restart and it should work.
Let me know if it doesn't, and we'll try something else.
from pidora.
Yes I installed that the first time the server tried to run. It said it was
missing the requests module.
On Tue, Oct 22, 2013 at 8:56 PM, Jacob Roeland [email protected]:
I was able to look through the install log of someone else's install, and
I may have understood what's wrong.Execute this command in a terminal: sudo apt-get install python-requests.
Does it install or does it say it's already installed? If it does install a
few packages, restart and it should work.Let me know if it doesn't, and we'll try something else.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-26871301
.
from pidora.
But you're still getting the same loading screen?
from pidora.
Hello jacroe!
Same problem here :( after installing python-requests and executing 'python hello.py', it takes a while to start pianobar, but finally pianobar starts playing music. If I refresh the webpage I see 'Pianobar is starting up...', and it seems the hello.py/cherryd process crashes (pianobar still running in the background) with the following message:
[25/Oct/2013:13:32:02] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0xd8e330>>
Traceback (most recent call last):
File "/home/pi/pidora/cherrypy/process/wspbus.py", line 197, in publish
output.append(listener(_args, *_kwargs))
File "/home/pi/pidora/cherrypy/_cpserver.py", line 151, in start
ServerAdapter.start(self)
File "/home/pi/pidora/cherrypy/process/servers.py", line 174, in start
self.wait()
File "/home/pi/pidora/cherrypy/process/servers.py", line 214, in wait
wait_for_occupied_port(host, port)
File "/home/pi/pidora/cherrypy/process/servers.py", line 427, in wait_for_occupied_port
raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8080 not bound on '0.0.0.0'
[25/Oct/2013:13:32:02] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
File "/home/pi/pidora/cherrypy/process/wspbus.py", line 235, in start
self.publish('start')
File "/home/pi/pidora/cherrypy/process/wspbus.py", line 215, in publish
raise exc
ChannelFailures: IOError("Port 8080 not bound on '0.0.0.0'",)
[25/Oct/2013:13:32:02] ENGINE Bus STOPPING
[25/Oct/2013:13:32:02] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) already shut down
[25/Oct/2013:13:32:02] ENGINE Stopped thread '_TimeoutMonitor'.
[25/Oct/2013:13:32:02] ENGINE Bus STOPPED
[25/Oct/2013:13:32:02] ENGINE Bus EXITING
[25/Oct/2013:13:32:02] ENGINE Bus EXITED
I hope this information helps!
Best Regards,
Coda
from pidora.
I think I've fixed it.
- First, do
apt-get remove python-requests
. For some reason, this version doesn't work correctly. - Install
python-setuptools
. - Next,
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py && sudo python get-pip.py
. - Finally,
sudo pip install requests
.
Or in one nice command: wget https://gist.github.com/jacroe/7245436/raw/eef603932e4406758a41a75999df6245633e4444/install-correct-requests.sh && bash install-correct-requests.sh
. You shouldn't have to restart Pidora, but it may help.
I hope this solves these issues. Again, let me know if it doesn't.
from pidora.
Sorry for the late reply. Haven't been able to find the SD card I had for the Pi. Will update when I can. Thanks for the response.
from pidora.
Thanks for your response jacroe! Unfortunately I'm still getting the same error :(
I've tried by removing pidora and pianobar and running the new install.sh script, but no luck on my side :(
Thanks for all the work you are doing!
from pidora.
By the way, I've also tried by following your latests instructions :P
Best Regards!
from pidora.
@coda4k Dang. Could you start up your Pi, do a killall python
and then run Pidora from the command line and post the output for me? At least up to when it does a POST /api?json=
?
from pidora.
Sure! Here it is:
[31/Oct/2013:14:51:46] ENGINE Listening for SIGHUP.
[31/Oct/2013:14:51:46] ENGINE Listening for SIGTERM.
[31/Oct/2013:14:51:46] ENGINE Listening for SIGUSR1.
[31/Oct/2013:14:51:46] ENGINE Bus STARTING
[31/Oct/2013:14:51:46] ENGINE Started monitor thread '_TimeoutMonitor'.
213.112.21.108 - - [31/Oct/2013:14:52:02] "GET / HTTP/1.1" 200 1459 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
213.112.21.108 - - [31/Oct/2013:14:52:02] "GET /imgs/love.png HTTP/1.1" 304 - "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
213.112.21.108 - - [31/Oct/2013:14:52:02] "GET /css/styles.css HTTP/1.1" 304 - "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
213.112.21.108 - - [31/Oct/2013:14:52:02] "GET /js/pidora.js HTTP/1.1" 304 - "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
213.112.21.108 - - [31/Oct/2013:14:52:02] "GET /imgs/pandora.png HTTP/1.1" 304 - "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
213.112.21.108 - - [31/Oct/2013:14:52:05] "GET /api?json=%7B%22method%22%3A%22GetSongInfo%22%2C%22id%22%3A1%7D HTTP/1.1" 200 117 "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
I hope it helps!! and thank you again!
from pidora.
Thanks! But could you give me more? Specifically, until one of the lines look similar to this: 127.0.0.1 - - [31/Oct/2013:17:55:55] "POST /api?json=%7B%22songData%22%3A+%7B%22album%22%3A+%22Paramore%22%2C+%22loved%22%3A+true%2C+%22artist%22%3A+%22Paramore%22%2C+%22explainURL%22%3A+%22http%3A%2F%2Fwww.pandora.com%2Fparamore%2Fparamore%2Fstill-into-you%22%2C+%22title%22%3A+%22Still+Into+You%22%2C+%22songPlayed%22%3A+0%2C+%22artURL%22%3A+%22http%3A%2F%2Fcont-dc6-1.pandora.com%2Fimages%2Fpublic%2Famz%2F0%2F3%2F4%2F2%2F075678732430_500W_500H.jpg%22%2C+%22songDuration%22%3A+0%7D%2C+%22id%22%3A+1%2C+%22method%22%3A+%22SetSongInfo%22%7D HTTP/1.1" 200 52 "" "python-requests/2.0.0 CPython/2.7.3 Linux/3.8.0-32-generic"
from pidora.
Hello again, jacroe!
Ahhmm.. sorry, I don't see any line that looks like that one :( The last line I pasted (please see below) repeats maybe 20 or 30 times until the process dies with "ENGINE Error in 'start' listener" :(
213.112.21.108 - - [31/Oct/2013:14:52:05] "GET /api?json=%7B%22method%22%3A%22GetSongInfo%22%2C%22id%22%3A1%7D HTTP/1.1" 200 117 "http://213.112.21.104:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36"
Best Regards!
from pidora.
Can you please verify you can run pianobar itself? If it was set up correctly, you should be able to run pianobar
from the command line and hear music playing without any user input.
from pidora.
yeap, it runs fine by itself :( even if I execute 'python hello.py', pianobar starts playing music after a while (I can see the process running in background), and it keeps playing music after the 'hello.py' process dies.
I hope it helps!
from pidora.
The best I can suggest is to wipe and re-install Pidora from scratch. I simply cannot reproduce this on my end. I'm sorry about that.
from pidora.
Related Issues (20)
- Disable autoplay HOT 1
- NPR Volume way lower HOT 2
- GetExplanation api when no song is playing HOT 1
- PianoBar Install Part Fails HOT 6
- Document which Raspberry Pi distro install.sh works with HOT 4
- Make this a pypi package HOT 1
- call/signature mismatch in bar-update.py HOT 2
- pep8-ize the source HOT 5
- make podcast feed configurable, maybe multi? HOT 4
- change port HOT 4
- mobile browser detection and redirection HOT 5
- tools.staticdir.root is incorrect if install.sh is ran by another use than 'pi'
- modifed scripts HOT 1
- API: Available Commands
- Create new class PianobarWithNews
- Where is the speaker output? HOT 5
- Does Git Pull pull from the forked repo? HOT 1
- Use songDuration to guess if a song is actually an ad HOT 1
- Naming problems HOT 3
- I am getting a connection error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pidora.