Victor, you must have an ancient version. It uses QT. It is not currently written in Python.
Here are the instructions that I gave to someone else who, like me, is not a programmer. If you have any problems, alas, I am not a programmer and cannot provide significant help. These steps worked for me:
I assume you have Snow Leopard.
These preliminary steps worked for me:
1. Open the App Store (in the Apple pull-down menu in the upper left-hand corner). Purchase and download Xcode for $4.99. This will take a while because Xcode is big.
2. Open your Applications folder and double-click on Install Xcode. I don't remember installation options, but if you see any you basically want EVERYTHING. Installation will take a while because Xcode is big. After installation, reboot to be on the safe side.
3. Go to
http://www.macports.org/install.php Since you have installed Xcode and X11 is installed by default as part of Snow Leopard, you can scroll to the second section called "Mac OS X Package (.pkg) Installer." Left-click on the hyperlink for "Snow Leopard" in the first sentence and follow the instructions to install MacPorts from the .dmg file that will be downloaded.
4. Open your Applications folder and the Utilities subfolder therein, and double-click on the Terminal icon.
5. Right-click on the Terminal icon in your Dock, left-click on Options, and left-click again on Keep in Dock. All your commands to MacPorts will be via the command line in the Terminal, so you should have the Terminal in your Dock.
6. Save these two commands to a file somewhere because you will want to enter them periodically, on the command line in the Terminal, to keep MacPorts up-to-date:
sudo port selfupdate
sudo port upgrade outdated
7. Enter "sudo port selfupdate" on the command line, hit Return, enter your password, and hit Return again. Wait for the command line to reappear.
8. Same for "sudo port upgrade outdated" and hit Return, etc. Wait for the command line to reappear.
9. Warning: it took about 7 hours to build QT on my iMac and MacBook, so you may want to do the next step near bedtime and let it run overnight. Enter "sudo port install qt4-mac +debug +universal" on the command line, hit Return, etc.
10. When you see the command line again (after several hours), enter "port info qt4-mac" and hit Return. You are ready to get and build the SleepyHead source code if you see the following output:
$ port info qt4-mac
qt4-mac @4.7.3 (aqua)
Variants: (+)debug, demos, examples, framework, mysql,
odbc, psql83, psql84, psql90, psql91, [+]quartz,
raster, sqlite2, (+)universal
Description: Qt Tool Kit: A cross-platform framework
(headers, data, and libraries) for writing
cross-platform GUI-based applications.
Homepage:
http://qt.nokia.com/
Build Dependencies: pkgconfig
Library Dependencies: zlib, dbus, openssl, sqlite3, tiff, libpng,
libmng, jpeg
Conflicts with: qt3, qt3-mac, qt4-mac-devel
Platforms: macosx
License: unknown
Maintainers:
michaelld@macports.org
The next steps that worked for me are the following:
1. Open, or switch back to, the Terminal.
2. Enter "cd" (no quotes here or below) and hit Return.
3. Enter "mkdir git" and hit Return (yes, g i t, without spaces).
4. Enter "cd git" and hit Return.
5. Enter "git clone git://sleepyhead.git.sourceforge.net/gitroot/sleepyhead/sleepyhead" and hit Return.
[Ooops! I do not know how to enter this ^^^^^ without having it become abbreviated.]
6. Enter "cd sleepyhead" and hit Return.
7. Enter "qmake" and hit Return.
8. Enter "make -j3" and hit Return.
9. Enter "mv sleepyheadqt.app ~/desktop" and hit Return.
10. Enter "make clean" and hit Return.
11. Go to your Desktop and double-click on the sleepyheadqt icon. (If it is not there, then there was a problem building SleepyHead.)
12. To load your data, your SD card will need to be mounted on your system, so that it appears as a Device in the list on the upper left side of a Finder window. You can, alternatively, make a "duplicate" of your SD card and drag the duplicate folder to your Desktop, the Documents folder, or elsewhere. To load your data in SleepyHead, click on the Import icon on the right side of the Welcome window and navigate to your SD card or the duplicate folder. It takes about 10 second to import at this point.
N.B. SleepyHead is currently alpha code - a very rough work in progress. Much does not work, and many things will change. At this point, your use is purely experimental and should be focused on finding bugs and other problems. SleepyHead is not "ready" for ordinary use and should not be used as your main software. Keep your old software and always backup your data. Do not make any medical decisions, or change anything, based on what you see in SleepyHead. Read the disclaimers on the Welcome page.
This forum is perhaps not the best place to be discussing software building issues. You might want to join the mailing list, which you can find at
http://sourceforge.net/mail/?group_id=513997