PDA

View Full Version : iTunesUpdate plugin not working on 7.4



testmatch
2009-09-12, 08:40
Hi,

This is probably one for James, but others might be able to say if the problem is with my installation. Having updated my server from OS X 10.4 to 10.5 to get around the problem of it not starting with Squeezebox Server 7.4 I have a different problem. I find that the iTunesUpdate plugin no longer works. It is fine on 7.3.4 on the same machine, but with 7.4 its entry in the Extras section of the web interface claims no song is playing (instead of giving the track details), and iTunes is not updated.

The server status details are:

Version: 7.4 - r28494 @ Fri Sep 11 04:02:38 PDT 2009
Hostname: mini.local
Server IP Address: 192.168.0.4
Server HTTP Port Number: 9000
Operating system: Mac OS X 10.5.8 (9L30) - EN - utf8
Platform Architecture: ppc
Perl Version: 5.8.8 - darwin-thread-multi-2level
MySQL Version: 5.0.22-standard
Total Players Recognized: 4

and the server log contains entries like:

[09-09-12 09:31:52.9506] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:31:52.9532] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/T..mp3
[09-09-12 09:31:52.9576] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.
[09-09-12 09:32:00.0928] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:32:00.0938] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/T..mp3
[09-09-12 09:32:00.0973] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.
[09-09-12 09:38:23.8433] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:38:23.8451] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/West%20Print.mp3
[09-09-12 09:38:23.8482] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.
[09-09-12 09:38:23.9171] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:38:23.9188] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/West%20Print.mp3
[09-09-12 09:38:23.9231] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.
[09-09-12 09:40:48.2217] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:40:48.2232] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/North%20Print.mp3
[09-09-12 09:40:48.2271] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.
[09-09-12 09:40:48.2363] Plugins::iTunesUpdate::Plugin::startTimingNewSong (1101) Starting a new song
[09-09-12 09:40:48.2372] Plugins::iTunesUpdate::Plugin::getTrackObject (1325) Getting Track for URL file:///Volumes/Iomega%20HDD/Music/iTunes/iTunes%20Music/Bobo%20Stenson%20Trio/Serenity/North%20Print.mp3
[09-09-12 09:40:48.2405] Slim::Control::Request::notify (2104) Error: Failed notify: Can't locate object method "durationSeconds" via package "Slim::Schema::Track" at Plugins/iTunesUpdate/Plugin.pm line 1112.

Am I right that the errors about "durationseconds" mean that iTunesUpdate needs updating to work with 7.4? Or is something amiss with my installation and others have it working fine?

This is with iTunes v7.7

Thanks for any help,

John

James
2009-09-14, 03:54
Looks like the tracks object has changed in 7.4 and the plugin needs updating.
I am not keeping up with 7.4 so can't say when that will be!

James

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

testmatch
2009-09-18, 12:18
[QUOTE=James;458032]Looks like the tracks object has changed in 7.4 and the plugin needs updating.
I am not keeping up with 7.4 so can't say when that will be!

Thanks for confirming it's not my setup, James.

I'll keep an eye open for am updated version - and am happy to test if that would help. In the meantime I'm updating iTunes via a mostly manual bodge.

Regards,

John

prob
2009-10-03, 02:58
James, your plug in is one of the best things about squeezeserver. Is there any prospect of you spending some time getting it running under 7.4?

Paul

govardha
2009-10-04, 07:08
James,

To second another poster here, yours is probably one of the best plugins that makes my setup at home fantastic. I am sure there are other users who also appreciate the effort you put into this plugin.

Hopefully you will get some time to update the plugin some time in the future.

Thanks!
G

bradcook
2009-10-05, 04:03
+1 for a great plugin.

I feel a bit lost without it

barcar
2009-10-05, 04:35
+1 for me too - my favourite plugin. missing it in 7.4!

ajmitchell
2009-10-05, 10:07
+1+1+1+1 agreed. Prob have to go back to 7.3.3. until then!

prabbit
2009-10-05, 11:26
+1 for me too.

James
2009-10-05, 14:23
Hi all, thanks for your messages!

I have posted a new version of iTunesUpdate at http://www.jamescraig.co.uk/SlimServer that appears to work with 7.4 and updated the repository http://www.jamescraig.co.uk/SlimServer/repository.xml to point to this new version. It should also be backward compatible with v7.3.

James

govardha
2009-10-05, 18:37
James,

The plugin is working great. Thanks for the quick turn around!

Best,
G

prob
2009-10-05, 21:25
I am eternally grateful. I was contemplating rolling back to 7.3.

Paul

testmatch
2009-10-06, 00:47
Wonderful - many, many thanks, James.

It's the third party plugin I use the most, so it's great to have it working on 7.4 :o)

John

sbooth1878
2009-10-06, 02:43
Excellent work! Thanks! I'd already upgraded to 7.4 and rolled back because it wasn't working! Reinstalling 7.4 now!

radish112
2009-10-06, 06:15
James,

Nicely done. This little corner of the world is AOK again.

prabbit
2009-10-06, 08:02
Working like a charm. Thank you!

WhaleOil
2009-10-06, 13:50
Good work Sir. Many thanks, all working great again.

Much appreciated
WhaleOil

Peter Stockwell
2009-10-07, 10:05
Didn't work for me, but I loaded the new squezebox server, could that be the reason why ?

tripster67
2009-10-07, 10:23
The update seems to be partially working for me. I have a Duet with 7.4 running on a Vista machine. Play count information gets pushed back to iTunes, but there seems to be an issue with ratings. From the controller, there is no way (that I can find) to add or view ratings. I would guess this would be under "My Apps", but I can't find it there or anywhere else.
Additionally, there doesn't seem to be any way to view or add ratings from the browser interface on the PC. Am I missing something?
Thanks.

James
2009-10-08, 01:24
In the web interface, iTunesUpdate appears in the 'extras' section.
I haven't upgraded my Controller yet, I'm not sure if that still works.

So, it sounds like the plugin hasn't installed properly for you.
How did you have it installed before - manually or with the Extension Downloader?
I'd try uninstalling and reinstalling first.
If that doesn't help, take a look in the log file for any errors...

James
--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

tripster67
2009-10-08, 04:01
In the web interface, iTunesUpdate appears in the 'extras' section.
I haven't upgraded my Controller yet, I'm not sure if that still works.

So, it sounds like the plugin hasn't installed properly for you.
How did you have it installed before - manually or with the Extension Downloader?
I'd try uninstalling and reinstalling first.
If that doesn't help, take a look in the log file for any errors...

James
--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.


I installed it manually. I was unable to use the extension downloader; I added the link to your repository, but the only pluggin that showed up was the Party Shuffle. I uninstalled and reinstalled it, and now I view and set the ratings in the web interface. Still doesn't seem to be any way to do it from the controller.
Thanks!

tripster67
2009-10-08, 06:08
I did discover that, on the controller, you have to go into the home menu configuration in settings to enable the display of 'Extras'. Once this was done, I can go into extras and then select iTunes Update. However, the iTunes Update screen is blank.
Thanks!

ajmitchell
2009-10-08, 10:38
Hi,

With the latest release of itunes and sc7.4 the new itunesupdater doesnt work for me. There no half star rating and no synching/launching itunes???

Looks like there a few of us with this problem, but I thank James for trying!

James
2009-10-09, 01:41
> There no half star rating and no synching/launching itunes???

How did you install it?
Does the plugin show up at all?

James


--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

Peter Stockwell
2009-10-09, 04:08
I reinstalled Mac::AppleScript::Glue and the iTunes updater worked, but I've subsequently changed to snow leaopard (10.6.1) and I can't get Mac::Applescript::Glue to install.

Something about not finding a Mac::Applescript 0.03.

This is very annoying

prob
2009-10-09, 10:55
as I recall squeezeserver updated itself after I restarted it. The plug in page now shows 2.7.1 as being installed.

I wonder if restarting squeezeserver may assist?

ajmitchell
2009-10-10, 09:12
ok first i just over-wrote the old itunesupdate with the new one and re-started by reboot. When this didnt work I deleted the whole directory and rebooted > then installed a fresh copy of 2.7.1 and rebooted again. No luck. Under the new SC control panel I dont see a tab for plugins? whjere can you read which plugs and version are installed? thanks

ajmitchell
2009-10-20, 03:09
Looks like its just me thats not working in itunesupdates? or anyone else

James
2009-10-20, 03:12
Seems like it!
I think you said you installed the plugin manually?
I would suggest using the Extension Downloader as that seems to work fine for everyone.

The plugin doesn't work on the Controller any more - I'm looking into this but it's a bit of a mystery what's changed!

James


--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

simong
2009-11-09, 15:16
Hi,

I can't get itunes update working either... Have had a few funny things happen recently (custom scan etc) but these now seem to be fixed...

I installed it with the extension downloader.

Here is some debugging code (sadly, it's all meaningless to me!) not sure if it helps!

Thanks

Simon

[09-11-09 20:43:39.5362] Plugins::iTunesUpdate::Settings::handler (71) directupdate:$VAR1 = 'on';
[09-11-09 20:43:39.5365] Plugins::iTunesUpdate::Settings::handler (71) set_artwork:$VAR1 = undef;
[09-11-09 20:43:39.5368] Plugins::iTunesUpdate::Settings::handler (71) ignore_filetype:$VAR1 = undef;
[09-11-09 20:43:39.5371] Plugins::iTunesUpdate::Settings::handler (71) halfstar:$VAR1 = undef;
[09-11-09 20:43:39.5374] Plugins::iTunesUpdate::Settings::handler (71) bookmarks:$VAR1 = undef;
[09-11-09 20:44:06.7061] Plugins::iTunesUpdate::Settings::handler (71) directupdate:$VAR1 = 'on';
[09-11-09 20:44:06.7064] Plugins::iTunesUpdate::Settings::handler (71) set_artwork:$VAR1 = undef;
[09-11-09 20:44:06.7067] Plugins::iTunesUpdate::Settings::handler (71) ignore_filetype:$VAR1 = undef;
[09-11-09 20:44:06.7070] Plugins::iTunesUpdate::Settings::handler (71) halfstar:$VAR1 = undef;
[09-11-09 20:44:06.7073] Plugins::iTunesUpdate::Settings::handler (71) bookmarks:$VAR1 = undef;
[09-11-09 20:44:19.1236] Plugins::iTunesUpdate::Settings::handler (71) directupdate:$VAR1 = 'on';
[09-11-09 20:44:19.1240] Plugins::iTunesUpdate::Settings::handler (71) set_artwork:$VAR1 = undef;
[09-11-09 20:44:19.1243] Plugins::iTunesUpdate::Settings::handler (71) ignore_filetype:$VAR1 = undef;
[09-11-09 20:44:19.1247] Plugins::iTunesUpdate::Settings::handler (71) halfstar:$VAR1 = undef;
[09-11-09 20:44:19.1250] Plugins::iTunesUpdate::Settings::handler (71) bookmarks:$VAR1 = undef;
[09-11-09 20:59:02.9916] Slim::Display::Display::string (809) Error: missing string BBC
[09-11-09 20:59:02.9922] Slim::Display::Display::string (809) Backtrace:

James
2009-11-10, 03:04
Sorry, that doesn't help much.
In what way is the plugin not working?
Does it show up in the menus at all?

James

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

simong
2009-11-10, 04:11
Yes - it's listed as an installed plugin that's turned on. Just that iTunes isn't being updated.

Not sure if it makes a difference but I have all my music on an external disc with iTunes library files in their original location.

Thanks for any help,

Simon

James
2009-11-10, 04:13
OK, so maybe a file path problem.

I'd need to see the log file output when a track finishes playing, with the plugin.itunesupdate logging set to debug.

James


--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

simong
2009-11-10, 12:53
Hi,

So I set the logging to debug (plugins.itunesupdate) and have now played a few songs - nothing at all appearing in the server log that relates to the plugin...

Any ideas?

Thanks

simong
2009-11-10, 15:29
and... in case it helps solve the problem, when I'm playing music and I look in Extras, iTunes Update, the message reads:

Now Playing: Nothing being played!

S

James
2009-11-11, 03:10
This is a bit puzzling.
I assume the plugin isn't disabled because it wouldn't show up in the menus.
You are playing local files, not internet radio or similar?
Can you post a full log file from server startup?

James

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

simong
2009-11-11, 12:20
Yes - the music is from a local machine.

Not sure how much of the code you needed - think the bit at the top is the pertinent section but I've also copied it all (below) incase you needed to see more.

[09-11-11 19:14:00.2658] Plugins::iTunesUpdate::Plugin::defaultMap (181) Enabling full star ratings
[09-11-11 19:14:00.2664] Plugins::iTunesUpdate::Plugin::initPlugin (425) initialising
[09-11-11 19:14:00.3047] Slim::Utils::PluginManager::load (325) Warning: Couldn't call Plugins::iTunesUpdate::Plugin->initPlugin: Can't locate Mac/AppleScript/Glue.pm in @INC (@INC contains: /Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/iTunesUpdate/lib CODE(0x10781ce28)

***

[09-11-11 19:13:50.1711] main::init (320) Starting Squeezebox Server (v7.4.2, r29167, Fri Nov 6 04:03:42 PST 2009) perl 5.010000
[09-11-11 19:13:51.9004] main::init (320) Starting Squeezebox Server (v7.4.2, r29167, Fri Nov 6 04:03:42 PST 2009) perl 5.010000
[09-11-11 19:13:56.5229] Slim::bootstrap::BEGIN (64) Added iTunesUpdate logger
[09-11-11 19:14:00.2647] Slim::Web::HTTP::addPageFunction (2373) Error: Slim::Web::HTTP::addPageFunction() is deprecated - please use Slim::Web::Pages->addPageFunction() instead
[09-11-11 19:14:00.2652] Slim::Web::HTTP::addPageFunction (2373) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Web/HTTP.pm line 2373)
frame 1: Slim::Web::HTTP::addPageFunction (Plugins/iTunesUpdate/Plugin.pm line 329)
frame 2: Plugins::iTunesUpdate::Plugin::webPages (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Plugin/Base.pm line 68)
frame 3: Slim::Plugin::Base::initPlugin (Plugins/iTunesUpdate/Plugin.pm line 422)
frame 4: Plugins::iTunesUpdate::Plugin::initPlugin (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Utils/PluginManager.pm line 323)
frame 5: (eval) (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Utils/PluginManager.pm line 323)
frame 6: Slim::Utils::PluginManager::load (./slimserver.pl line 501)
frame 7: main::init (./slimserver.pl line 572)
frame 8: main::main (./slimserver.pl line 1065)

[09-11-11 19:14:00.2658] Plugins::iTunesUpdate::Plugin::defaultMap (181) Enabling full star ratings
[09-11-11 19:14:00.2664] Plugins::iTunesUpdate::Plugin::initPlugin (425) initialising
[09-11-11 19:14:00.3047] Slim::Utils::PluginManager::load (325) Warning: Couldn't call Plugins::iTunesUpdate::Plugin->initPlugin: Can't locate Mac/AppleScript/Glue.pm in @INC (@INC contains: /Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/iTunesUpdate/lib CODE(0x10781ce28) /Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/TrackStat/lib /Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/SQLPlayList/lib /Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/CustomScan/lib /Users/gallant/Library/Caches/SlimServer/InstalledPlugins /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10.0/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10.0/darwin-thread-multi-2level/auto /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/lib /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN /Library/PreferencePanes/Squeezebox.prefPane/Contents/server /Library/Application Support/Squeezebox /Users/gallant/Library/Application Support/Squeezebox /Library/PreferencePanes/Squeezebox.prefPane/Contents/server /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10/darwin-thread-multi-2level/auto /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10.0/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/5.10.0/darwin-thread-multi-2level/auto /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/arch/darwin-thread-multi-2level /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/lib /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN /Library/Application Support/Squeezebox /Users/gallant/Library/Application Support/Squeezebox /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 . CODE(0x10781c630)) at Plugins/iTunesUpdate/Plugin.pm line 435.
[09-11-11 19:14:00.3253] Slim::Plugin::MusicMagic::Plugin::initPlugin (265) Can't connect to port 10002 - MusicIP disabled.
[09-11-11 19:14:00.8207] Plugins::CustomScan::Scanner::refreshData (1832) CustomScan: Synchronizing Custom Scan data, please wait...
[09-11-11 19:14:02.9710] Plugins::CustomScan::Scanner::refreshData (2140) CustomScan: Synchronization finished

James
2009-11-12, 02:16
Oh, so you're on a Mac but you haven't installed Mac::AppleScript::Glue?
That would be the problem!

There are instructions in the plugin's readme file - I guess this is kind of hard to find now but it should be here:
/Users/gallant/Library/Caches/SlimServer/InstalledPlugins/Plugins/iTunesUpdate

James
--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

simong
2009-11-12, 13:28
Thank you so much.... Remember doing this a while ago but guess I needed to repeat for snow leopard?!

Anyway - working a treat.

Most grateful

Simon

morberg
2009-11-21, 07:07
There's something fishy going on here. First of all ratings doesn't "take", even though the log shows that it has received the command. Second playcount is increased by 2 each time a song has finished playing instead of 1. Finally the same song's playcount is increased every time (the song playing when starting up), no matter if I switch song, album, or artist.

I'd be happy to provide log info but I don't quite know what I'm looking for. The server log looks like this after having listened to four different songs, the first one being "Knock 123". After this, the playcount for "Knock 123" has been increased with 8. (Couldn't paste all of the log to the forum, only included last two songs played.)


[09-11-21 15:02:34.9207] Plugins::iTunesUpdate::Plugin::stopTimingSong (1214) Stopping timing file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:34.9210] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1259) Time actually played in track: 686.864651
[09-11-21 15:02:34.9212] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1286) "Knock 123" was played long enough to count as played.
[09-11-21 15:02:34.9215] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1287) Played past percentage threshold of 197.7858 seconds.
[09-11-21 15:02:34.9455] Plugins::iTunesUpdate::Plugin::_searchiTunes (1575) URL: file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:34.9458] Plugins::iTunesUpdate::Plugin::_searchiTunes (1577) fileLoc: /Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:34.9841] Plugins::iTunesUpdate::Plugin::_searchiTunes (1594) Searching iTunes for "Imelda May Love Tattoo Knock 123"
[09-11-21 15:02:35.7656] Plugins::iTunesUpdate::Plugin::_searchiTunesMac (1676) Found track in iTunes: Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:35.7659] Plugins::iTunesUpdate::Plugin::_logTrackToiTunes (1483) Marking as played in iTunes
[09-11-21 15:02:35.9386] Slim::Utils::Misc::msg (1165) Warning: [15:02:35.9382] Use of uninitialized value $token in string eq at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 611.
[09-11-21 15:02:35.9389] Slim::Utils::Misc::msg (1165) Warning: [15:02:35.9387] Use of uninitialized value $str in pattern match (m//) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 821.
[09-11-21 15:02:35.9391] Slim::Utils::Misc::msg (1165) Warning: [15:02:35.9389] Use of uninitialized value $token in substitution (s///) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 611.
[09-11-21 15:02:35.9394] Slim::Utils::Misc::msg (1165) Warning: [15:02:35.9392] Use of uninitialized value $token in substitution (s///) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 627.
[09-11-21 15:02:36.0333] Slim::Control::Request::notify (2108) Error: Failed notify: Mac::AppleScript returned error (-1753)
[09-11-21 15:02:36.0356] Plugins::iTunesUpdate::Plugin::stopTimingSong (1214) Stopping timing file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:36.0359] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1259) Time actually played in track: 687.979579
[09-11-21 15:02:36.0362] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1286) "Knock 123" was played long enough to count as played.
[09-11-21 15:02:36.0364] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1287) Played past percentage threshold of 197.7858 seconds.
[09-11-21 15:02:36.0375] Plugins::iTunesUpdate::Plugin::_searchiTunes (1575) URL: file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:36.0378] Plugins::iTunesUpdate::Plugin::_searchiTunes (1577) fileLoc: /Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:36.0382] Plugins::iTunesUpdate::Plugin::_searchiTunes (1594) Searching iTunes for "Imelda May Love Tattoo Knock 123"
[09-11-21 15:02:36.3680] Plugins::iTunesUpdate::Plugin::_searchiTunesMac (1676) Found track in iTunes: Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:02:36.3683] Plugins::iTunesUpdate::Plugin::_logTrackToiTunes (1483) Marking as played in iTunes
[09-11-21 15:02:36.5743] Slim::Utils::Misc::msg (1165) Warning: [15:02:36.5740] Use of uninitialized value $token in string eq at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 611.
[09-11-21 15:02:36.5746] Slim::Utils::Misc::msg (1165) Warning: [15:02:36.5745] Use of uninitialized value $str in pattern match (m//) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 821.
[09-11-21 15:02:36.5749] Slim::Utils::Misc::msg (1165) Warning: [15:02:36.5747] Use of uninitialized value $token in substitution (s///) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 611.
[09-11-21 15:02:36.5752] Slim::Utils::Misc::msg (1165) Warning: [15:02:36.5750] Use of uninitialized value $token in substitution (s///) at /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm line 627.
[09-11-21 15:02:36.7019] Slim::Control::Request::notify (2108) Error: Failed notify: Mac::AppleScript returned error (-1753)
[09-11-21 15:03:14.7136] Plugins::LazySearch2::Plugin::scanDoneCallback (2060) Lazifying database items not already done
[09-11-21 15:03:15.0422] Plugins::LazySearch2::Plugin::lazifyDatabase (2117) No database items require lazification
[09-11-21 15:05:24.1264] Plugins::iTunesUpdate::Plugin::stopTimingSong (1214) Stopping timing file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.1267] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1259) Time actually played in track: 856.070307
[09-11-21 15:05:24.1269] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1286) "Knock 123" was played long enough to count as played.
[09-11-21 15:05:24.1271] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1287) Played past percentage threshold of 197.7858 seconds.
[09-11-21 15:05:24.1300] Plugins::iTunesUpdate::Plugin::_searchiTunes (1575) URL: file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.1303] Plugins::iTunesUpdate::Plugin::_searchiTunes (1577) fileLoc: /Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.1351] Plugins::iTunesUpdate::Plugin::_searchiTunes (1594) Searching iTunes for "Imelda May Love Tattoo Knock 123"
[09-11-21 15:05:24.4085] Plugins::iTunesUpdate::Plugin::_searchiTunesMac (1676) Found track in iTunes: Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.4089] Plugins::iTunesUpdate::Plugin::_logTrackToiTunes (1483) Marking as played in iTunes
[09-11-21 15:05:24.8477] Slim::Control::Request::notify (2108) Error: Failed notify: Mac::AppleScript returned error (-1753)
[09-11-21 15:05:24.8500] Plugins::iTunesUpdate::Plugin::stopTimingSong (1214) Stopping timing file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.8503] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1259) Time actually played in track: 856.793935
[09-11-21 15:05:24.8505] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1286) "Knock 123" was played long enough to count as played.
[09-11-21 15:05:24.8507] Plugins::iTunesUpdate::Plugin::getActionForTrackPl ay (1287) Played past percentage threshold of 197.7858 seconds.
[09-11-21 15:05:24.8516] Plugins::iTunesUpdate::Plugin::_searchiTunes (1575) URL: file:///Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.8519] Plugins::iTunesUpdate::Plugin::_searchiTunes (1577) fileLoc: /Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:24.8523] Plugins::iTunesUpdate::Plugin::_searchiTunes (1594) Searching iTunes for "Imelda May Love Tattoo Knock 123"
[09-11-21 15:05:25.0537] Plugins::iTunesUpdate::Plugin::_searchiTunesMac (1676) Found track in iTunes: Users/niklas/Music/music/Imelda_May-Love_Tattoo/03-imelda_may-knock_123.mp3
[09-11-21 15:05:25.0541] Plugins::iTunesUpdate::Plugin::_logTrackToiTunes (1483) Marking as played in iTunes
[09-11-21 15:05:25.3126] Slim::Control::Request::notify (2108) Error: Failed notify: Mac::AppleScript returned error (-1753)

James
2009-11-23, 02:45
The Mac::AppleScript::Glue errors don't look good, it's surprising that iTunes is getting updated at all!
Searching the forums it seems a few people have had 1753 errors before, but they just went away after a few restarts.
Perhaps there are some temporary files used by the Applescript that get corrupted in some way?

The only thing I can suggest is adding the following to the Plugin.pm file to enable printing of the Applescript being executed:

$Mac::AppleScript::Glue::Debug{SCRIPT} = 1;

Perhaps this will shed some light on the problem?

James


--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

netchord
2009-12-01, 17:49
Hello,

i'm running 7.3.4 on a mac w/ OS 10.5.8 installed. I've installed the dev tools, but have failed 4 times to get Mac::AppleScript::Glue to install. the first two failures were via the standard install, and the next two I'd tried to force the install. no luck: Install Seems Impossible

Even so, i moved the plugin to the appropriate folder, and it appears in the SC Plugins directory, where i can apparently configure it. it just doesn't actually work.

what would you need to debug (i'm a terminal neophyte, so please be specific).

thanks.

James
2009-12-02, 03:16
Indeed, it will not work without Mac::AppleScript::Glue installed.

I can't really help with that, but I would suggest posting the log from when you try installing it for others to have a look at.

James

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

netchord
2009-12-02, 07:29
thanks. here's the log from the normal glue install attempt (not "force install"

netchord
2009-12-02, 18:06
Indeed, it will not work without Mac::AppleScript::Glue installed.

I can't really help with that, but I would suggest posting the log from when you try installing it for others to have a look at.

James

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law.

James- Log posted above. is there someone i might direct this query to directly?

WhaleOil
2009-12-02, 18:23
Hi there

It is a long time since I did this, but I also had enormous trouble getting Mac::AppleScript::Glue to install.

In the end I think I got it to work by logging in as the 'root' user in OS X (just being an administrator user did not seem to be enough). I think you also need to install the 'developer tools' from the OS X disc (or at least you did, not sure if this is still necessary).

If you search these forums for 'whaleoil root' you will find three threads which discuss this issue at some length (in particular one called 'iTunesUpdate on Tiger(Intel)')- many people have had this problem it seems and different things seem to have worked for different people.

Hope this helps.

WhaleOil

mherger
2009-12-02, 23:38
> It is a long time since I did this, but I also had enormous trouble
> getting Mac::AppleScript::Glue to install.

FWIW: we decided it wasn't worth the pain and simply launch the AppleScript as a child task.

--

Michael

netchord
2009-12-03, 06:57
> It is a long time since I did this, but I also had enormous trouble
> getting Mac::AppleScript::Glue to install.

FWIW: we decided it wasn't worth the pain and simply launch the AppleScript as a child task.

--

Michael

Thanks Michael and Whaleoil. how do you launch the applescript as a child task. assuming this is what you meant, i don't see where i can grab a stand alone apple script.

netchord
2009-12-03, 10:12
Hi there

It is a long time since I did this, but I also had enormous trouble getting Mac::AppleScript::Glue to install.

In the end I think I got it to work by logging in as the 'root' user in OS X (just being an administrator user did not seem to be enough). I think you also need to install the 'developer tools' from the OS X disc (or at least you did, not sure if this is still necessary).

If you search these forums for 'whaleoil root' you will find three threads which discuss this issue at some length (in particular one called 'iTunesUpdate on Tiger(Intel)')- many people have had this problem it seems and different things seem to have worked for different people.

Hope this helps.

WhaleOil

found the threads, deleted the config files as suggested, logged in as root, went through the installs, and got the same error, basically, it fails at "make." since i don't know what "make" is, or how to install it, i'm not sure what to do at this point.

fyi, i have installed the dev tools.

netchord
2009-12-05, 08:04
quick update, i've got this working now, will report back in a bit on the (several) circuitous steps i took to get it working.

bouvin
2010-02-13, 19:46
quick update, i've got this working now, will report back in a bit on the (several) circuitous steps i took to get it working.

Might you be prevailed upon to reveal how you got Mac::AppleScript::Glue to work?
TIA

netchord
2010-02-23, 15:37
sorry for the delay in coming back to this, i recently switched computers, and had to go through the process again, which did go smoother this time. i think the key is to do everything inexactly the order the instructions suggest, and even then, you will have to force install. the subsequent tests will still fail, but the plugin will work, at least that's been my experience.

in the prior instance, i ended up deleting the plugin, install logs, and just starting over. that system was OS 10.5.8, this is OS 10.6.2, not sure if that should make a difference.

also, although the instructions are not clear on this point, the "dev tools" are in fact the xcode tools, and you need to run the full xcode installer from the install CD.

here's the output from the "force install", after which the plugin does work:

--------
cpan[2]> force install Mac::AppleScript::Glue
Running install for module 'Mac::AppleScript::Glue'
Running make for J/JL/JLABOVITZ/Mac-AppleScript-Glue-0.03.tar.gz
Has already been unwrapped into directory /Users/basso/.cpan/build/Mac-AppleScript-Glue-0.03-p0N7sL
Has already been made
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic........v-string in use/require non-portable at /Users/basso/.cpan/build/Mac-AppleScript-Glue-0.03-p0N7sL/blib/lib/Mac/AppleScript/Glue.pm line 234.
t/basic........ok
t/finder.......v-string in use/require non-portable at /Users/basso/.cpan/build/Mac-AppleScript-Glue-0.03-p0N7sL/blib/lib/Mac/AppleScript/Glue.pm line 234.
t/finder.......ok
t/pod..........Undefined subroutine &main::pod_ok called at t/pod.t line 26.
# Looks like your test died before it could output anything.
t/pod..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
t/quicktime....v-string in use/require non-portable at /Users/basso/.cpan/build/Mac-AppleScript-Glue-0.03-p0N7sL/blib/lib/Mac/AppleScript/Glue.pm line 234.
t/quicktime....ok 4/5Mac::AppleScript returned error (-1753)
t/quicktime....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 5
Failed 1/5 tests, 80.00% okay
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/pod.t 255 65280 3 6 1-3
t/quicktime.t 255 65280 5 2 5
Failed 2/4 test scripts. 4/18 subtests failed.
Files=4, Tests=18, 7 wallclock secs ( 0.44 cusr + 0.11 csys = 0.55 CPU)
Failed 2/4 test programs. 4/18 subtests failed.
make: *** [test_dynamic] Error 255
JLABOVITZ/Mac-AppleScript-Glue-0.03.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports JLABOVITZ/Mac-AppleScript-Glue-0.03.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make install
Installing /Library/Perl/5.10.0/Mac/AppleScript/Glue.pm
Installing /Library/Perl/5.10.0/Mac/AppleScript/Glue/Application.pm
Installing /Library/Perl/5.10.0/Mac/AppleScript/Glue/Object.pm
Installing /usr/local/share/man/man3/Mac::AppleScript::Glue.3pm
Installing /usr/local/share/man/man3/Mac::AppleScript::Glue::Application.3pm
Installing /usr/local/share/man/man3/Mac::AppleScript::Glue::Object.3pm
Writing /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/Mac/AppleScript/Glue/.packlist
Appending installation info to /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level/perllocal.pod
JLABOVITZ/Mac-AppleScript-Glue-0.03.tar.gz
/usr/bin/make install -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Failed during this command:
JLABOVITZ/Mac-AppleScript-Glue-0.03.tar.gz : make_test FAILED but failure ignored because 'force' in effect

netchord
2010-03-01, 10:07
btw, for unrelated reasons considering moving to SC 7.5- has anyone gotten this plugin to work on 7.5?