ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

How to install on Mountain Lion? #499

Open pintohutch opened 11 years ago

pintohutch commented 11 years ago

Hi, I've been trying for a few weeks to get topographica successfully installed and happy on my mac running Mountain Lion, and I haven't been able to win. I've tried:

Is there anyway I can just a step-by-step guide on how to install topographica on the mac from a fresh Mountain Lion install? It's really frustrating that I would love to take advantage of this software package for my neuroscience research, but I can't just because of stupid install dependencies and complier issues with the OS.

jbednar commented 11 years ago
From: dclark87 Date: Mar 2 12:52:05 2013 -0800
Hi, I've been trying for a few weeks to get topographica
successfully installed and happy on my mac running Mountain Lion,
and I haven't been able to win. I've tried:

Hi, and thanks for your interest! But I'm very sorry to hear that it has been so frustrating. Unfortunately, we don't currently have any Mac users working for us as developers, and so we have had to leave it up to the users to determine how to get the dependencies satisfied on Macs.

| - Using recommended pre-packaged scientific python distributions: | Anaconda CE and EPD Free. Anaconda CE doesn't seem to come with | Tkinter so topographica can't even start up with that.

Ok, thanks for letting us know. We'll remove Anaconda CE from the list of suitable distributions, if that's true.

| EPD Free was the one that worked the best, however after | verifying that I do have Tcl/Tk 8.5 on my machine and gmpy (via | pip install gmpy), there were still warnings how my Tcl/Tk | version was < 8.5 and gmpy.mpq couldnt be found. As a result, the | slower fixed point package was used.

Normally, FixedPoint should only slow things down by 15% or so, so gmpy's absence shouldn't be cause for alarm.

As for the others, one problem that Mac users always seem to be having with Python is that they end up with multiple copies of Python, Tk, and other important libraries, with the bits they need somehow always being installed in the wrong one. I don't know how to achieve getting them in the right one on any particular Mac, but that's usually seemed to be the key.

| The problem with this is that the GCAL tutorial crashes my | computer after 6 minutes because the package isn't optimized to | do floating point math without gmpy.mpq, evidently.

This sounds like something that we should investigate, because Python shouldn't be crashing your computer, ever, and it's extremely unusual that Topographica could even crash Python (certainly not something I've seen in years). We often run without gmpy, with no consequences like that, though it's true we haven't done so recently on a Mac. It would be great to get some sort of transcript or list of the messages that you have before the crash, if that's not lost when it goes down.

One of our students (CC:ed) has had a to-do list item of setting up Mac build slaves for the various Mac flavors for the past several months, but I don't think he's got to that yet. We do have a Mac dedicated to that purpose, but it's not running Mountain Lion (Snow Leopard, I think), so we have to get virtual machines running on it before we can test Mountain Lion or Lion. And unfortunately we have no Mac expert locally who knows how to get around the tangle of incompatible or partial Mac software distributions.

| - Homebrew and Macports, both have similar issues to above.

We definitely have never tried one of those options.

| Is there anyway I can just a step-by-step guide on how to install | topographica on the mac from a fresh Mountain Lion install? It's | really frustrating that I would love to take advantage of this | software package for my neuroscience research, but I can't just | because of stupid install dependencies and complier issues with the | OS.

We would love to have a contribution of such a guide, along with someone to keep it up to date, but so far even the Mac users we did have as developers have gotten so frustrated with trying to do their scientific computation on a Mac that they gave up and just logged in to a Linux machine remotely (so far, four out of four Mac users over six years!). The problems they had weren't to do with Topographica per se, just that they ended up having various problems with dependencies over time, and also wanted to be able to run large jobs on batch machines (which all run Linux anyway), so it wasn't worth the effort to them to track down the little niggling problems that made things tricky on their Mac laptops. We were hoping that the new Mac scientific Python distributions would solve this issue, but it sure sounds like they have not! :-(

Jim

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.

pintohutch commented 11 years ago

Hm ok, well I appreciate the prompt response and honesty. I've also experimented with topographica on my Ubuntu VM, and actually got the GCAL example to train after 10-15 minutes, but then when I tried to load it into topographica's GUI I got this message repeated like 100 times:

%(self.module_name,self.__module_name) File "/usr/local/lib/python2.7/dist-packages/topo/command/__init.py", line 141, in getattr return self._raise() File "/usr/local/lib/python2.7/dist-packages/topo/command/init.py", line 132, in _raise raise ImportError, "No module named %s. Install %s to get this functionality."%(self.__module_name,self.__module_name)

I was hoping maybe there's a step-by-step instruction on installing topographica and the recommended dependencies on a fresh ubuntu install...or if there's a particular linux package that I can try to just get topographica to play as cleanly and friendly as possible?

jbednar commented 11 years ago

Well, the existing instructions were meant to be a step-by-step instruction suitable for a fresh install. :-( Can you clarify how you installed it? (I don't think the usual pip instructions would leave it in /usr/local...) Are you loading the example into the same copy that generated it? The Ubuntu VM should definitely be something we should be able to debug easily, with enough information.

pintohutch commented 11 years ago

Ah ok, well I'm going to setup a fresh install of an Ubuntu 12.04 Desktop on my computer and record my install attempt process in detail. I will get this back on another Github Issue sometime tomorrow for more feedback. Thanks again for being prompt and supportive with the feedback! Hopefully we can get this thing setup over here so I can start doing some cool experiments :)

pintohutch commented 11 years ago

This issue has been moved to: "Fresh Ubuntu 12.04 Install errors"

ceball commented 10 years ago
  • Using recommended pre-packaged scientific python distributions: Anaconda CE and EPD Free. Anaconda CE doesn't seem to come with Tkinter so topographica can't even start up with that.

Ok, thanks for letting us know. We'll remove Anaconda CE from the list of suitable distributions, if that's true.

Just a minor note that I installed Anaconda 1.8 on Ubuntu 12.04.4 and found Tkinter works. Maybe Anaconda on Mac was just suffering from the general Tkinter-on-Mac woes, rather than Anaconda in general not supporting Tkinter.

ceball commented 9 years ago

Another minor note, for future reference if we make a Mac recipe for running Topographica. By "the general Tkinter-on-Mac woes", I meant this: https://www.python.org/download/mac/tcltk/.