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

Problems installing topographica on ubuntu (version 12.04) #579

Closed ceball closed 10 years ago

ceball commented 10 years ago

I received the following email from "jiangtao yang, School of Software &Microelectronics of Peking University"...

When I install to topographica on my ubuntu(version 12.04),I have got a problem,and the detail information of problem is:

one

And the location of error is here:

two

Then I have looked the class of numbergen very carefully,but I have found that there is no attribute named constanttime. Though, my question is that how I can solve this problem.I really need your help.Thank you for your time.

ceball commented 10 years ago

I've asked for clarification about how Topographica was installed, so unless someone immediately knows what the problem is (e.g. from recent code changes), then we should wait for more information.

philippjfr commented 10 years ago

numbergen.constanttime hasn't existed for quite a while now and isn't mentioned anywhere in the current codebase, so I assume he is getting an outdated version of Topographica. Could you ask him where he downloaded Topographica from and sugggest he uses the latest version from Github.

philippjfr commented 10 years ago

It could be that he got the latest PyPI releases of Param and ImaGen, which means he'd get a version of numbergen without constanttime and one with constanttime. This might indicate that we should update the imagen release, since it may no longer be compatible with the latest param/numbergen release.

youngjt commented 10 years ago

I have solved the problem. When I install the latest version of topographica once again,I have found that it can not install the param and paramtk package successfully,and the error messages is: (1)$ sudo pip install topographica Downloading/unpacking topographica Running setup.py egg_info for package topographica
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.0 in /usr/lib/python2.7/dist-packages (from topographica) Downloading/unpacking paramtk>=0.8 (from topographica) Cannot fetch index base URL http://pypi.python.org/simple/

$ sudo apt-get install paramtk [sudo] password for yangjiangtao: Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package paramtk yangjiangtao@ubuntu:~$ sudo pip install --user paramtk Downloading/unpacking paramtk Cannot fetch index base URL http://pypi.python.org/simple/ Error <urlopen error [Errno -2] Name or service not known> while getting https://pypi.python.org/packages/source/p/paramtk/paramtk-0.8.tar.gz#md5=dcd9d22793cbc904fd954c7497d37fb4 (from https://pypi.python.org/simple/paramtk/) Exception: ........

Though I download the paramtk package from https://pypi.python.org/simple/paramtk/ and install it.When I install topographica again, there something is wrong.The error messages is: (2)$ sudo pip install topographica Downloading/unpacking topographica Running setup.py egg_info for package topographica Requirement already satisfied (use --upgrade to upgrade): numpy>=1.0 in /usr/lib/python2.7/dist-packages (from topographica) Requirement already satisfied (use --upgrade to upgrade): paramtk>=0.8 in /usr/local/lib/python2.7/dist-packages (from topographica) Requirement already satisfied (use --upgrade to upgrade): PIL>=1.1.6 in /usr/lib/python2.7/dist-packages/PIL (from topographica) Downloading/unpacking imagen>=1.0 (from topographica) Downloading imagen-1.0.tar.gz (49Kb): 49Kb downloaded Running setup.py egg_info for package imagen Downloading/unpacking param>=1.0 (from topographica) Error while getting https://pypi.python.org/packages/source/p/param/param-1.2.1.tar.gz#md5=ebf1ee7f67695b605053942c3b6f6e66 (from https://pypi.python.org/simple/param/) Exception:.........

Though I download the param package from https://pypi.python.org/simple/param/ and install it.Finally I have installed topographica successfully.

(3)$ sudo pip install topographica Downloading/unpacking topographica Running setup.py egg_info for package topographica Requirement already satisfied (use --upgrade to upgrade): numpy>=1.0 in /usr/lib/python2.7/dist-packages (from topographica) Requirement already satisfied (use --upgrade to upgrade): paramtk>=0.8 in /usr/local/lib/python2.7/dist-packages (from topographica) Requirement already satisfied (use --upgrade to upgrade): PIL>=1.1.6 in /usr/lib/python2.7/dist-packages/PIL (from topographica) Downloading/unpacking imagen>=1.0 (from topographica) Running setup.py egg_info for package imagen Requirement already satisfied (use --upgrade to upgrade): param>=1.0 in /usr/local/lib/python2.7/dist-packages (from topographica) Installing collected packages: topographica, imagen Running setup.py install for topographica changing mode of build/scripts-2.7/topographica from 644 to 755 changing mode of /usr/local/bin/topographica to 755 Running setup.py install for imagen Successfully installed topographica imagen Cleaning up...

$ python Python 2.7.3 (default, Feb 27 2014, 19:58:35) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. import topo Creating /home/yangjiangtao/Documents/Topographica quit()