I had the same error's on my Ubuntu 10.10. After a small search I found out the tinker module can not be installed by itself but resides in other packages.
If you're using Windows, you first need to download and install Python 2.x (grab 2.7.1 from http://www.python.org/download/), making sure you get the right version for your OS. Python 3 is a major upgrade, and some of the programs we're using won't work with it. If you're on a Mac, the version of Python that ships with the OS (a custom version of 2.6) will work fine.
This should be enough to allow the program to work. Try double-clicking midicraft.py in the folder I uploaded. This should hopefully give you the GUI for MIDICraft, which allows you to select the MIDI file you're converting and select which world to use. If you want to run the program from the command line on Windows, running something like "c:/path/midicraft.py c:/path/midifile.mid World#" should work; check "midicraft.py --help" for instructions on the options. OSX has to throw "python " in front of that.
I think that's all, doing it from memory. Hopefully it works for you!
Hm. It sure does make it freeze! It's happening somewhere in the initial read, so it's something weird (hopefully them not following MIDI standards) about the file. If I open it up in Finale and immediately export it (without even making any changes) it works fine, so you do that if you need to. I'll try and figure out a way to look into the problem, but for right now I'm not sure what else I can tell you.
e: Well, a bunch of oldschool DOS MIDI checkers are telling me there aren't any problems in there. I'll keep messing with it but for now I don't have much to say! In any case, it's not happening in the code I wrote (i'm using someone else's MIDI reader) so it'll be a little harder for me to address. Thanks for your feedback!
Thanks troubleshooters! Any requests for the next video? I'd like to do something long and impressive but the tempo restrictions etc. make some things unsuitable (Bohemian Rhapsody just wasn't working).
I'm also on Reddit (here and here) and someone made a thread on the Polish CraftSite here.
WScript error ImportError('No module named win32com.client',)
And then when I try to convert a MIDI file:
Exception in Tkinter callback
Traceback (most recent call last):
File "c:\Users\Jonathan\Downloads\midicraft\midicraft\Tkinter.py", line 1410,
in __call__
File "c:\Users\Jonathan\Downloads\midicraft\midicraft\midicraft.py", line 87,
in _convertButtonPressed
File "c:\Users\Jonathan\Downloads\midicraft\midicraft\midicraft.py", line 210,
in convert
IndexError: list index out of range
My OS is as follows:
Microsoft Windows 7 Home Premium 6.1.7600 64-bit
What have I done wrong?
Freak the Mighty: tkinter seems to be a real pain to import. It works on my Windows installation, so I'm just not sure what to say. Has anyone else with that problem on Windows figured it out yet? Try commenting out the other line, so that the effective code is "import Tkinter" (unless that's what you've already done).
ClassiestMedic: The Win32 error isn't anything to worry about. The index error is weird, though—it implies that there's something wrong with the direction it's trying to use. Were you using the GUI or the command line? Which direction did you select? Does the bug happen every time you try to run the program?
ClassiestMedic: The Win32 error isn't anything to worry about. The index error is weird, though—it implies that there's something wrong with the direction it's trying to use. Were you using the GUI or the command line? Which direction did you select? Does the bug happen every time you try to run the program?
I am using MIDICraft.exe in the latest version.
It happens for every direction, and yes, every time I try to run the program.
Thanks for actually helping people who have errors, most modders just ignore them!
Wellp, downloaded the latest version, but I get a different error this time. A cmdprompt window flashes up for about a tenth of a second with a lot of gibberish on it. I managed to get a nice neat little screenshot of it, which I shall now share.
Conorman: Are you using the latest version (check the OP or the post at the top of page 3, hopefully I've removed all the older links from my posts)? You should at least be getting a progress bar. I've only tested it on Windows 7 and OSX, but the latest version shouldn't be as mysterious while it's operating.
ClassiestMedic: That definitely looks like a numpy problem. If you open up a command prompt and type "python" on its own, it should get you into what it calls "interactive mode." It'll display the version and some other information about python, along with a new prompt that should look like ">>>". Try typing "import numpy" there and press enter—if you get more errors, then something is wrong with your numpy installation (it looks like your version of Python is matching up, so it could be a 64-bit error if that's what you installed). As annoying as it is, try different combinations of Python versions and numpy versions (sticking with 32-bit if you can) and see if you can make it happen. Knowing your way around these problems is always useful, and numpy shows up in a lot of Python code—including pymclevel, codewarrior's library for manipulating Minecraft levels.
Yeah, I get a couple error lines when I type import numpy.
I've been trying every possible combination for two hours or so, and haven't had any luck...
Why is it that Python hates me?
Yeah, I get a couple error lines when I type import numpy.
I've been trying every possible combination for two hours or so, and haven't had any luck...
Why is it that Python hates me?
The error you gave us indicates a 64bit/32bit mismatch. Uninstall python and numpy completely, then...
Try: sudo apt-get install python-Tk
Thanks. Also, the song below makes it freeze:
http://www.vgmusic.com/music/console/ni ... bFinal.mid
e: Well, a bunch of oldschool DOS MIDI checkers are telling me there aren't any problems in there. I'll keep messing with it but for now I don't have much to say! In any case, it's not happening in the code I wrote (i'm using someone else's MIDI reader) so it'll be a little harder for me to address. Thanks for your feedback!
And you should be good to go!
I'm also on Reddit (here and here) and someone made a thread on the Polish CraftSite here.
i did comment out the line in midicraft.py, too
First, when it starts:
And then when I try to convert a MIDI file:
My OS is as follows:
Microsoft Windows 7 Home Premium 6.1.7600 64-bit
What have I done wrong?
ClassiestMedic: The Win32 error isn't anything to worry about. The index error is weird, though—it implies that there's something wrong with the direction it's trying to use. Were you using the GUI or the command line? Which direction did you select? Does the bug happen every time you try to run the program?
I am using MIDICraft.exe in the latest version.
It happens for every direction, and yes, every time I try to run the program.
Thanks for actually helping people who have errors, most modders just ignore them!
That means it's working. Just wait for a few minutes, and eventually the window will dissapear, meaning it's finished.
ClassiestMedic: That definitely looks like a numpy problem. If you open up a command prompt and type "python" on its own, it should get you into what it calls "interactive mode." It'll display the version and some other information about python, along with a new prompt that should look like ">>>". Try typing "import numpy" there and press enter—if you get more errors, then something is wrong with your numpy installation (it looks like your version of Python is matching up, so it could be a 64-bit error if that's what you installed). As annoying as it is, try different combinations of Python versions and numpy versions (sticking with 32-bit if you can) and see if you can make it happen. Knowing your way around these problems is always useful, and numpy shows up in a lot of Python code—including pymclevel, codewarrior's library for manipulating Minecraft levels.
I've been trying every possible combination for two hours or so, and haven't had any luck...
Why is it that Python hates me?
The error you gave us indicates a 64bit/32bit mismatch. Uninstall python and numpy completely, then...
Download and install this python: python-2.6.6.msi
Download and install this numpy: numpy-1.5.1-win32-superpack-python2.6.exe
"We will absolutely not keep in mind what external mapeditors will have to do to read data from the disk, that makes no sense whatsoever." - Grum
It worked!
I love you!
I
LOVE
YOU!
*hug hug hug*
You, sir, deserve a medal. I just want to say that this entire project is made of pure cake and win.