tag:help.beatunes.com,2009-07-24:/discussions/problems/5553-failed-to-read-itunes-music-library-filebeaTunes: Discussion 2013-05-17T00:30:58Ztag:help.beatunes.com,2009-07-24:Comment/7915022010-01-02T05:24:32Z2010-01-02T05:24:32ZFailed to read iTunes Music Library File<div><p>Hi Alan,</p>
<p>Thanks for your mail.</p>
<p>Did you ever move your iTunes library by any chance?<br>
After you get that message, does beaTunes work correctly?</p>
<p>Which version of beaTunes are you using?</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/7915022010-01-02T05:33:14Z2013-05-17T00:30:58ZFailed to read iTunes Music Library File<div><p>beaTunes 2.1.0</p>
<p>Yes, once I click OK on the dialog, things seem to work ok.</p>
<p>iTunes Path: C:\Users\Alan\Music\iTunes</p>
<p>Yes, I did move my library. When I upgraded from Vista to Win7,
my username<br>
changed, and music moved from under My Documents. Indeed, the
following is<br>
in my preferences2.xml file</p>
<pre>
<code> <component id="beatunes">
<embed-audiometadata>false</embed-audiometadata>
<itunes-file</code>
</pre>
<p>
persistentid="E7D724E63341F256">C:\Users\Alan\Documents\My<br>
Music\iTunes\iTunes Music Library.xml<br>
C:\Users\alanjstr\Music\iTunes\iTunes<br>
Music Library.xml<br>
C:\Users\Alan\Music\iTunes\iTunes Music<br>
Library.xml</p>
<p>com.tagtraum.beatunes.plaf.GradientBackgroundTheme:-986896<br>
false true</p></div>alanjstrtag:help.beatunes.com,2009-07-24:Comment/7915022010-01-02T19:15:31Z2010-01-02T19:15:31ZFailed to read iTunes Music Library File<div><p>Hi,</p>
<p>do all of these files exist?<br>
<code>C:\Users\alanjstr\Music\iTunes\iTunes Music
Library.xml</code>, <code>C:\Users\Alan\Music\iTunes\iTunes Music
Library.xml</code> and <code>C:\Users\Alan\Documents\My
Music\iTunes\iTunes Music Library.xml</code>?</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/7915022010-01-02T20:42:23Z2013-05-17T00:30:58ZFailed to read iTunes Music Library File<div><p>Nope. Only the one in C:\Users\Alan\Music\iTunes.</p></div>alanjstrtag:help.beatunes.com,2009-07-24:Comment/7915022010-01-03T09:46:22Z2010-01-03T09:46:22ZFailed to read iTunes Music Library File<div><p>Hi Alan,</p>
<p>does deleting the preference2.xml file solve the problem?</p>
<p>Or do all three files show up again in the preference2.xml file
after<br>
it is recreated when restarting beaTunes?</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/7915022010-01-03T17:16:58Z2013-05-17T00:30:58ZFailed to read iTunes Music Library File<div><p>Deleting preferences2.xml from
C:\Users\Alan\AppData\Local\tagtraum<br>
industries\beaTunes did the trick.</p></div>alanjstrtag:help.beatunes.com,2009-07-24:Comment/7915022010-01-03T17:38:44Z2010-01-03T17:38:44ZFailed to read iTunes Music Library File<div><p>Good.</p>
<p>I will add some code to the next update that hopefully works
around the problem of multiple <code>iTunes Music
Library.xml</code> files with the same id.</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/7915022010-01-03T17:44:50Z2013-05-17T00:30:58ZFailed to read iTunes Music Library File<div><p>In the UI, you can select a new one, but it doesn't look like
you can delete<br>
from that list.</p></div>alanjstrtag:help.beatunes.com,2009-07-24:Comment/7915022010-01-04T09:10:13Z2010-01-04T09:10:13ZFailed to read iTunes Music Library File<div><p>Yeah - that's right - no option to delete. And usually, you
actually don't want to delete.</p>
<p>What happens is, that beaTunes asks iTunes which library it is
using. iTunes returns an id. beaTunes then checks the configured
<code>iTunes Music Library.xml</code> files and chooses the one
with the correct id. Now, if you have multiple files with the same
id, one is pretty much chosen at random. In the next update the
behavior will change - beaTunes will select the one with the
correct id that is newest, as that file is constantly modified by
iTunes. This should take care of most (if not all) cases like
yours.</p>
<p>Thanks,</p>
<p>-hendrik</p></div>hendrik