Comments (21)
Have you edited the setting inside update.py? There's a directory config inside it.
Very cool project, but I'm having some trouble. I've done this twice on
two different raspbian installs, neither one works.Pianobar works fine, and in the browser, the index.php comes up, but it
never gets past " Hello There Pianobar is starting up..."I am not using midori from localhost, I'm hitting it from another
computer, while ssh in to RPi to see what's going on.Here's what's happening on pianobar console -- this demonstrates that
it is picking up my config file, where i've specified the fifo and the
update.py location. Furthermore, when I change the config entry (thats
supposed to point to update.py) to a nonexistent file, I get a
different error.Welcome to pianobar (2012.05.06)! Press ? for a list of commands.
(i) Control fifo at /var/www/ctl opened
(i) Login... Ok.
: No such file or directory
(i) Get stations... Ok.
: No such file or directoryThen it starts playing my playlist. But index.php page still shows
"hello there..."Any ideas?
Thanks
Reply to this email directly or view it on GitHub:
#17
from pidora.
Yes, I've edited the "www" variable in the python script to point to the
root of pidora.
I've just placed all the pidora files into /var/www/*
So the variable is set to "/var/www/"
Thanks!
On Sun, Jun 30, 2013 at 3:00 PM, Jacob Roeland [email protected]:
Have you edited the setting inside update.py? There's a directory config
inside it.
Sent from my phone. Please excuse my brevity.
MrDadaGuy [email protected] wrote:
Very cool project, but I'm having some trouble. I've done this twice on
two different raspbian installs, neither one works.Pianobar works fine, and in the browser, the index.php comes up, but it
never gets past " Hello There Pianobar is starting up..."I am not using midori from localhost, I'm hitting it from another
computer, while ssh in to RPi to see what's going on.Here's what's happening on pianobar console -- this demonstrates that
it is picking up my config file, where i've specified the fifo and the
update.py location. Furthermore, when I change the config entry (thats
supposed to point to update.py) to a nonexistent file, I get a
different error.Welcome to pianobar (2012.05.06)! Press ? for a list of commands.
(i) Control fifo at /var/www/ctl opened
(i) Login... Ok.
: No such file or directory
(i) Get stations... Ok.
: No such file or directoryThen it starts playing my playlist. But index.php page still shows
"hello there..."Any ideas?
Thanks
Reply to this email directly or view it on GitHub:
#17—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-20254271
.
from pidora.
Alright, I'll take a look at it later tonight. Thanks for reporting it!
from pidora.
Thanks. Let me know if there's anything else you need to know about my
environment etc.
On Sun, Jun 30, 2013 at 3:05 PM, Jacob Roeland [email protected]:
Alright, I'll take a look at it later tonight. Thanks for reporting it!
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-20254350
.
from pidora.
So it seems like pianobar is the one throwing the error. If python was complaining, there would be something like:
Traceback (most recent call last):
File "/home/jacob/.config/pianobar/update.py", line 50, in <module>
open(www + "stationList", "w").write(stations)
IOError: [Errno 2] No such file or directory: '/home/jac/www/pianobar/stationList'
And since it was able to load the ctl
file, I'm guessing it had trouble locating update.py
. So I would check to make sure that my event_command
setting in pianobar's config file was correct. Like ensuring that it's hard-coded and not relative, etc.
This is just my guess though. You're using an older version of pianobar. The one that I have (2012.09.07) will say /!\ Cannot start eventcmd. (No such file or directory)
if the above was true.
from pidora.
So here are 3 scenarios:
- I point event_command to the wrong (nonexistent) file: /!\ Cannot
start eventcmd. (No such file or directory) - I comment out event_command from pianobar config: No error message
- I point eventcmd to the right update.py file: it plays fine and in
between every song pianobar console says "No such file or directory" = a
different error message, it does not have "/!\ Cannot start eventcmd" as
part of the error message.
I've messed with this for hours but as you say its clearly not a python
error... is there a way to set a higher level of debug with pianobar that
you're aware of?
I'd love to get this working, so I guess I'll keep tinkering. Thanks!
On Thu, Jul 4, 2013 at 10:54 PM, Jacob Roeland [email protected]:
So it seems like pianobar is the one throwing the error. If python was
complaining, there would be something like:Traceback (most recent call last):
File "/home/jacob/.config/pianobar/update.py", line 50, in
open(www + "stationList", "w").write(stations)
IOError: [Errno 2] No such file or directory: '/home/jac/www/pianobar/stationList'And since it was able to load the ctl file, I'm guessing it had trouble
locating update.py. So I would check to make sure that my event_commandsetting in pianobar's config file was correct. Like ensuring that it's
hard-coded and not relative, etc.This is just my guess though. You're using an older version of pianobar.
The one that I have (2012.09.07) will say /!\ Cannot start eventcmd. (No
such file or directory) if the above was true.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-20500414
.
from pidora.
No I don't know of any other higher debug flags you can set. At least the pianobar docs don't mention any.
I think what I would try to do next is build the latest pianobar and test that. Because I have absolutely no clue.
from pidora.
I love what I see Jacob, and hope I can overcome the user error on my part to get it working.
I am using pianobar (2013.05.19) on arch linux arm on a rpi and same issue here. It it never gets past " Hello There Pianobar is starting up...", no album or song info is displayed, and ": No such file or directory" 3 times before the first song plays and once after each song starts in the console.
Is there any chance this has anything to do with where the directory /albumart is located?
I did not use the install script.. but reviewed it while troubleshooting this. The script contains:
mv pidora/ www/
mkdir www/albumart/
I'm a bit of a linoob, but doesn't that put /albumart and /pidora at the same level within /www? I read the README to put /albumart into the /pidora directory... maybe it doesn't matter bc when I moved /albumart, same issue.
Also, the controls on mobile.php work, but no song info. I can Pause Next Love Ban and Tired any tune from that page (but no joy on index.php).
Weird huh?
Probably some permissions issue unresolved.
Thank you.
from pidora.
I did not use the install script.. but reviewed it while troubleshooting this. The script contains:
mv pidora/ www/
mkdir www/albumart/
Yeap that's a typo. It's now fixed.
Could you post a gist of your .config/pianobar/config
file? Because this is strange.
from pidora.
https://gist.github.com/emcquaid/5987818
from pidora.
and my update.py:
https://gist.github.com/emcquaid/5987937
from pidora.
Hey, I built pianobar from source and still have the same problem.
Welcome to pianobar (2013.05.19)! Press ? for a list of commands.
(i) Control fifo at /var/www/ctl opened
(i) Login... Ok.
: No such file or directory
(i) Get stations... Ok.
: No such file or directory
from pidora.
Thought this was interesting -- when I just try to run update.py from console, it gives the same error.
pi@poolside /var/www/pianobar-eventcmd $ ./update.py
: No such file or directory
from pidora.
as opposed to
pi@poolside /var/www/pianobar-eventcmd $ python update.py
Traceback (most recent call last):
File "update.py", line 12, in
event = sys.argv[1]
IndexError: list index out of range
which looks like what we would expect...
from pidora.
@MrDadaGuy: could you post what kind of permissions that update.py has? ls -l
may give you them.
from pidora.
Actually no, do a whereis env
on the command line and paste what that gives you.
from pidora.
pi@poolside /var/www/pianobar-eventcmd $ ls -al
total 12
drwxr-xr-x 2 pi www-data 4096 Jun 30 14:29 .
drwxr-xr-x 7 pi www-data 4096 Jun 30 14:58 ..
-rwxr-xr-x 1 pi www-data 2141 Jun 30 14:30 update.py
pi@poolside /var/www/pianobar-eventcmd $ whereis python
python: /usr/bin/python2.7 /usr/bin/python /usr/bin/python3.2 /usr/bin/python3.2mu /etc/python2.7 /etc/python /etc/python3.2 /usr/lib/python2.7 /usr/lib/python3.2 /usr/lib/python2.6 /usr/bin/X11/python2.7 /usr/bin/X11/python /usr/bin/X11/python3.2 /usr/bin/X11/python3.2mu /usr/local/lib/python2.7 /usr/local/lib/python3.2 /usr/include/python2.7 /usr/include/python2.6_d /usr/include/python3.2dmu /usr/include/python2.6 /usr/include/python3.2mu /usr/include/python2.7_d /usr/share/python /usr/share/man/man1/python.1.gz
pi@poolside /var/www/pianobar-eventcmd $ whereis env
env: /usr/bin/env /usr/bin/X11/env /usr/share/man/man1/env.1.gz
pi@poolside /var/www/pianobar-eventcmd $ /usr/bin/env python --version
Python 2.7.3
pi@poolside /var/www/pianobar-eventcmd $ python --version
Python 2.7.3
from pidora.
SOLVED: dos2unix to the rescue!!
http://www.linuxcommand.org/man_pages/dos2unix1.html
The update.py script had some bad line feed characters in there. Not sure if that was from your code or if i introduced it.. but that solved things for me :)
Thanks!!!
BTW - what should have tipped me off sooner... the error ": No such file or directory" is usually preceeded by the file it's trying to access. So if I had a bad file after "/usr/bin/env python" like "/usr/bin/env python badfile" it would have said "badfile: No such file or directory". So the absence of any descriptor there should have tipped me off we're dealing with an invisible character such as a bad line feed or carriage return. I guess it did tip me off eventually. Anyway good work my friend. thanks
from pidora.
What the crap.
Thanks for figuring it out. 😌 I think I few others also had the same issue so I'll direct them to your comment. And I'll also run the command on update.py
and update the repo.
Thanks again!
from pidora.
@emcquaid: Does @MrDadaGuy's solution work for you?
from pidora.
Yes. Fixed. and then fixed the tab space indent issue mentioned in #18 and now it's working fantastically. Thank you. Such a cool app.
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.