JonnyJD / musicbrainz-isrcsubmit

script to submit ISRCs from disc to musicbrainz
http://jonnyjd.github.io/musicbrainz-isrcsubmit/
GNU General Public License v3.0
40 stars 13 forks source link

"Would you like to open the browser to submit the disc" error #91

Closed fromaj closed 10 years ago

fromaj commented 10 years ago

I'm running OS X 10.9.1 and isrcsubmit 2.0.0-beta.5. Everything works fine except if I choose to open it in a browser. It opens fine but then this shows up in the terminal:

2014-02-19 20:20:37.877 osascript[52765:d07] Error loading /Library/ScriptingAdditions/XMail.osax/Contents/MacOS/XMail:  dlopen(/Library/ScriptingAdditions/XMail.osax/Contents/MacOS/XMail, 262): no suitable image found.  Did find:
    /Library/ScriptingAdditions/XMail.osax/Contents/MacOS/XMail: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/XMail.osax" declares no loadable handlers.

After that I have to re-run the script.

I'm running Firefox if that matters.

JonnyJD commented 10 years ago

Havint to re-run the script is normal. You didn't specify at which point in the script you have been (there are multiple places where a browser an be opened), but you normally don't really use anything when the script exits at that point.

What isrcsubmit is doing on your machine is basically this: python -c "import webbrowser; webbrowser. open("https://musicbrainz.org")' So you can probably re-create your problem just with that line.

What that line is doing according to python source code is this: echo 'open location "%22https://musicbrainz.org%22"' | osascript This probably gives the same error message. Note that this isn't python-specific or even isrcsubmit-specific anymore.

So my guess is then, that this is some problem in your OS X configuration/installation. Possibly you already get that error message when just typing echo "" | osascript into your terminal (echo "" only so osascript exits, giving STRG+D would also work after calling osascript). I found this related problem: http://apple.stackexchange.com/questions/24431/osascript-error

So you should try to remove/uninstall /Library/ScriptingAdditions/XMail.osax or re-install it using the correct architecture (you might have a 64 bit system and the addition is only for 32 bit systems).

For further questions please use some Mac OS X forums etc., since this is no problem in isrcsubmit.

JonnyJD commented 10 years ago

Any update on this? Can you confirm that this doesn't have anything to do with isrcsubmit and is not a problem in that sense? (I would like to close this)

fromaj commented 10 years ago

Sorry, yes it's a problem on my end.

JonnyJD commented 10 years ago

Thanks.