# Re: [Tex-music] prepmx failing on example document

```Hi everyone,

thank you all for your help. Everything seems to work properly now,
although I do not understand why:```
```
I downloaded prepmx.exe from ctan and replaced the corresponding file in
the MiKTeX installation. After that, everything worked. However, it
still did after I restored the original executable. So.. who knows?
(It's hard to tell what the problem could have been now, since I can't
reproduce it anymore.)

Well, at least it works now.

Benedikt

On 07.04.2018 15:00, Benedikt Wilde wrote:
> Hello everyone,
>
> I have been wanting to start using MusiXTeX for some time now, but the
> following error prevented me from doing so. I have searched for a
> solution in various places online, but could not find any. Hopefully,
> someone here can help me.
>
> When I try to run musixtex on the example file netsoos.mtx from the
> MusiXTeX site [1], I get the following output in the console
>
> d:\folder>musixtex netsoos
> This is musixtex.lua version 0.19.
> ==> This is M-Tx 0.63 (Music from TeXt) <7 January 2018>
> !! prepmx preprocessing of netsoos.mtx fails.
>
> and the program crashes.
> The (rather unhelpful) content of musixtex.log is
>
> This is musixtex.lua version 0.19.
> Processing netsoos.mtx
>   prepmx netsoos
> !! prepmx preprocessing of netsoos.mtx fails.
>
> I am using MiKTeX on Windows 10.
>
> Any ideas on what might be the problem?
> (Note: I do not have a full MiKTeX installation. Could any missing
> packages be causing this behavior?)
>
> Thank you for your help
>
> Benedikt
>
>
> PS: Some time ago I posted a question about this on tex.SE [2]. Then, I
> got the additional error message
>
> C:\Program Files\MiKTeX 2.9\scripts\musixtex\musixtex.lua:564: bad
> argument #1 to 'write' (string expected, got nil)
>
> This message is not present with the current version of musixtex (and
> m-tx), but it may still be the same error.
>
>
>
>
>   [1]: http://icking-music-archive.org/software/htdocs/Introduction.html
>   [2]: