nrcharles / itd

mpd implementation using iTunes as a backend
GNU General Public License v3.0
2 stars 0 forks source link

ImportError: No module named appscript #1

Open Porco-Rosso opened 9 years ago

Porco-Rosso commented 9 years ago

I keep getting this error: "ImportError: No module named appscript" I know someone won't probably see this but it would really be appreciated!

Porco-Rosso commented 9 years ago

got past this, but now it just runs, and nothing happens. it returns me to the terminal prompt with no message.

Porco-Rosso commented 9 years ago

For anyone curious, I had to install appscript sudo easy_install appscript

And then run it with the following:

python /Users/YOURUSER/SCRIPT_LOCATION/itd-master/itd.py -f

However now, I just have to overcome the MPD < 0.16.0 is not supported issue in the newer version of ncmpcpp

nrcharles commented 9 years ago

Thanks for the feedback. I haven't worked on this project much recently. If I recall there was some changes in the MPD API in 0.16.0 and I never got around to reverse engineering the new API.

Porco-Rosso commented 9 years ago

Shame, this project is really interesting.

I'm trying to get around the problem by installing an old version of ncmpcpp (0.5.10) which is still compatible, but having trouble building it. run into the same issue here : https://github.com/Homebrew/homebrew/issues/17541

nrcharles commented 9 years ago

So I was looking through the code again. The API is documented here: http://www.musicpd.org/doc/protocol/index.html Bumping the API version in itd actually makes control work, but it doesn't report the song names properly. I'm not sure how much work it would take to get that process into place. The issue is there isn't really one-to-one functionality between mpd and itunes. I think a little database might get around that though.

Porco-Rosso commented 9 years ago

That's odd. I tried doing just that and changing the API version number in itd didn't work. Upon connection I would get an error message from ncmpcpp and it would crash/disconnect.

Although I understand the functionality isn't 1 to 1. wouldn't it be possible to just make the non-essential commands return null? That would at least allow basic playback/searching.

nrcharles commented 9 years ago

Hmm… What version number were you using? Currently it does return null for non implemented commands.

Porco-Rosso commented 9 years ago

I'm using ncmpcpp 0.6.5, the latest. All i get from itd -f is:

running command: 
OK

('127.0.0.1', 53970) disconnected!
('127.0.0.1', 53971) connected! 

and in ncmpcpp I get still: ncmpcpp: MPD < 0.16.0 is not supported and No active mpd connection

Porco-Rosso commented 9 years ago

maybe I'm not editing the file correctly, could you perhaps push the version you have managed to get working?

nrcharles commented 9 years ago

I pushed some changes. See if that works for you.

-N

On Thu, Jul 16, 2015 at 1:07 PM Porco-Rosso notifications@github.com wrote:

maybe I'm not editing the file correctly, could you perhaps for the version you have managed to get working?

— Reply to this email directly or view it on GitHub https://github.com/nrcharles/itd/issues/1#issuecomment-122023924.

Porco-Rosso commented 9 years ago

I get from ncmpcpp

      Assertion failed: (!np.empty()), function drawTitle, file status.cpp, line 81.
                                                                                  Abort trap: 6

and from the script:

running command: status

volume: 80
repeat: 0
random: 0
single: 0
consume: 0
playlist: 2
playlistlength: 45167
xfade: 0
state: pause
song: 1
songid: 1
time: 0.0450000017881:264
bitrate: 256
audio: 44100:24:2
nextsong: 2
nextsongid: 2
OK

idle
noidle
status

running command: idle
noidle
status

undefined
OK

idle

running command: idle

undefined
OK

noidle
status

running command: noidle
status

undefined
OK

idle

running command: idle

undefined
OK

noidle
status

running command: noidle
status

undefined
OK

idle
noidle

running command: idle
noidle

undefined
OK

status

Repeating until it errors out.