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

first running topographica error: AttributeError: 'module' object has no attribute 'constanttime #593

Closed zdx3578 closed 9 years ago

zdx3578 commented 9 years ago

I try running topographica,i use Ubuntu 12.04.5 LTS(vm in www.aliyun.com) ,follow http://ioam.github.io/topographica/Downloads/index.html

use cmd bellow:

apt-get update apt-get install python-pip python-tk python-imaging-tk python-numpy apt-get install ipython python-gmpy python-matplotlib python-scipy pip install topographica apt-get install xserver-xorg xfont* gnome gdm

but,when i run topographica:

topographica -g /usr/local/share/topographica/examples/gcal.ty it show error:

root@iZ94dcgzdw8Z:~# topographica -g /usr/local/share/topographica/examples/gcal.ty Traceback (most recent call last): File "/usr/local/bin/topographica", line 13, in import topo File "/usr/local/lib/python2.7/dist-packages/topo/init.py", line 216, in from topo.base.simulation import Simulation File "/usr/local/lib/python2.7/dist-packages/topo/base/init.py", line 18, in from imagen import boundingregion,sheetcoords,patterngenerator # pyflakes:ignore (API import) File "/usr/local/lib/python2.7/dist-packages/imagen/init.py", line 798, in class Translator(PatternGenerator): File "/usr/local/lib/python2.7/dist-packages/imagen/init.py", line 842, in Translator time_fn = param.Callable(default=numbergen.constanttime,doc=""" AttributeError: 'module' object has no attribute 'constanttime' root@iZ94dcgzdw8Z:~#

thank your helping

ceball commented 9 years ago

Hi

Sorry for the trouble - I think we have broken topographica's packaging.

You can either follow the instructions below to get the latest "official" topographica release (0.9.8), which is now quite old, or you can wait for a developer to help you with your other request (#594) about using the latest git version of topographica.

To get topographica 0.9.8 to work, please follow "method 2" from https://github.com/ioam/topographica/issues/581#issuecomment-52298088:

pip uninstall topographica imagen paramtk param
pip install -r toporeq.txt

where toporeq.txt is:

topographica
param==1.0
paramtk==0.8
imagen==1.0
jlstevens commented 9 years ago

This error is due to an old version of param being used with a more recent (git) version of Topographica and I think the problem should be resolved by following the installation instructions above

Unless there are any new problems relating to this, can we now close this issue?

jbednar commented 9 years ago

Sure; it can be reopened if the problem persists.