Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gohwkis

macrumors newbie
Dec 7, 2012
1
0
Error Message When Running Ruby Script

Help - this is what I am getting

Reading 13429 tracks ***********************************************************************************************
Found 9541 matched tracks
Querying US store for 9541 tracks *******/Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/lib/appscript.rb:542:in `_send_command': CommandError (Appscript::CommandError)
OSERROR: -1700
MESSAGE: Can't make some data into the expected type.
COMMAND: app("/Applications/iTunes.app").sources.ID(75).library_playlists.ID(60526).file_tracks.ID(62839).album.set(nil)
from /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/lib/appscript.rb:642:in `method_missing'
from meta.rb:37:in `update_track'
from meta.rb:91
from meta.rb:89:in `each'
from meta.rb:89
from meta.rb:87:in `each'
from meta.rb:87
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/delegate.rb:137:in `each_slice'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/delegate.rb:137:in `each'
from meta.rb:83:in `each_slice'
from meta.rb:83
from meta.rb:80:in `each'
from meta.rb:80
 

ace.neerav

macrumors newbie
Jun 14, 2009
13
0
Code:
Last login: Wed Dec 12 18:57:11 on console
Neeravs-MacBook-Pro:~ neeravkothari$ cd downloads
Neeravs-MacBook-Pro:downloads neeravkothari$ sudo gem install json
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing json:
	ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
creating Makefile

make
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -DJSON_GENERATOR  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64 -g -O3 -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common   -c generator.c
In file included from generator.c:1:
In file included from ./../fbuffer/fbuffer.h:5:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0/ruby.h:40:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>
          ^
1 error generated.
make: *** [generator.o] Error 1


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.7.5 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.7.5/ext/json/ext/generator/gem_make.out
Neeravs-MacBook-Pro:downloads neeravkothari$ sudo gem install rb-appscript
Building native extensions.  This could take a while...
ERROR:  Error installing rb-appscript:
	ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
create /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/src/osx_ruby.h ...
create /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/src/osx_intern.h ...
creating Makefile

make
Makefile:188: warning: overriding commands for target `/Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/lib'
Makefile:182: warning: ignoring old commands for target `/Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/lib'
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -Isrc -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -Wall  -c src/rbae.c
In file included from src/rbae.c:12:
src/osx_ruby.h:40:11: fatal error: 'stdlib.h' file not found
# include <stdlib.h>
          ^
1 error generated.
make: *** [rbae.o] Error 1


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rb-appscript-0.6.1/gem_make.out
Neeravs-MacBook-Pro:downloads neeravkothari$ ruby meta.rb
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- appscript (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
	from meta.rb:12
 

Gobbomaster

macrumors newbie
Jul 27, 2013
1
0
I was wondering why it's not possible to chagen de metadata of mp3 files, but only aac files. Can someone explain me?
 

ArizonaRenegade

macrumors newbie
Nov 3, 2024
1
0
Hello everyone - I realize this is an old (perhaps ancient even, by Internet standards) thread but is anyone aware of a working Windows solution? I was using the awesome Windows version provided by @schirkan.662283 (https://github.com/b-/itunes-match-tagger) but it recently stopped working for me.

I did reach out directly to schirkan regarding if a newer version was available for download from somewhere and they were gracious enough to respond - even if the answer was disappointingly no.

Thanks in advance for any guidance, much appreciated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.