Hi, I'm trying to do the steps in the GCAL tutorial, so I cloned the latest master from github, but that runs into some problems I just wanted to note here: it tries to use ipython prompt functions that were removed in ipython 5+ for example so I had to downgrade ipython to 4.2 (also tried ipython 2.4).
More importantly, running the generate_example('gcal_10000.typ') method needed for the GCAL tutorial results in errors as per below.
Note, at the time I wrote this issue (just updated it) I hadn't done the build_ext step, so used unoptimized python functions, and that is probably why this hasn't been noticed before. When I did build_ext, this first stacktrace disappeared, but someone might want to check why the unoptimized codepath doesn't work.
Instead, I got another error at the end of the gcal_10000 generation, that crashed the output. Please see the backtrace after this. It's kind of annoying, it seems it's a None usage in the holoview plugin which is just there to do some fancy prompting :) Anybody knows what the issue might be? Like I wrote above, I tried with various ipython versions including 2.4, 4.2 and 5.6. The holoview plugin is fetched by git submodule --init, but maybe it is not checking out a specific branch, and it got upgraded at some point?
Update: I just went into the holoviews file and removed the reference to self.label.lower(), and then at least the generate_example passed. I guess it's some incompatibility with the holoviews submodule.
WARNING: Install distutils and Cython required to build optimized component, falling back to unoptimized components.
Traceback (most recent call last):
File "./topographica", line 17, in <module>
process_argv(sys.argv[1:])
File "/home/bjorn/topographica/topo/misc/commandline.py", line 748, in process_argv
(option,args) = topo_parser.parse_args(args,option)
File "/usr/lib/python2.7/optparse.py", line 1400, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1444, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.7/optparse.py", line 1551, in _process_short_opts
option.process(opt, value, values, self)
File "/usr/lib/python2.7/optparse.py", line 789, in process
self.action, self.dest, opt, value, values, parser)
File "/usr/lib/python2.7/optparse.py", line 809, in take_action
self.callback(self, opt, value, parser, *args, **kwargs)
File "/home/bjorn/topographica/topo/misc/commandline.py", line 493, in c_action
exec value in __main__.__dict__
File "<string>", line 1, in <module>
File "/home/bjorn/topographica/external/holoviews/holoviews/ipython/widgets.py", line 201, in __call__
self.run_hook(self.interval)
File "/home/bjorn/topographica/topo/base/simulation.py", line 1335, in run
ep.process_current_time()
File "/home/bjorn/topographica/topo/sheet/__init__.py", line 353, in process_current_time
self.learn()
File "/home/bjorn/topographica/topo/sheet/__init__.py", line 181, in learn
self._normalize_weights()
File "/home/bjorn/topographica/topo/sheet/__init__.py", line 164, in _normalize_weights
p.apply_learn_output_fns(active_units_mask=active_units_mask)
File "/home/bjorn/topographica/topo/base/cf.py", line 840, in apply_learn_output_fns
of(CFIter(self,active_units_mask=active_units_mask))
File "/home/bjorn/topographica/topo/optimized/unoptimized.py", line 67, in __call__
del cf.norm_total
UnboundLocalError: local variable 'cf' referenced before assignment
File "/home/bjorn/topographica/external/holoviews/holoviews/ipython/widgets.py", line 203, in __call__
super(RunProgress, self).__call__(100 * (completed / float(value)))
File "/home/bjorn/topographica/external/holoviews/holoviews/ipython/widgets.py", line 75, in __call__
% (self.label.lower(), elapsed//3600,
AttributeError: 'NoneType' object has no attribute 'lower'
Hi, I'm trying to do the steps in the GCAL tutorial, so I cloned the latest master from github, but that runs into some problems I just wanted to note here: it tries to use ipython prompt functions that were removed in ipython 5+ for example so I had to downgrade ipython to 4.2 (also tried ipython 2.4).
More importantly, running the generate_example('gcal_10000.typ') method needed for the GCAL tutorial results in errors as per below.
Note, at the time I wrote this issue (just updated it) I hadn't done the build_ext step, so used unoptimized python functions, and that is probably why this hasn't been noticed before. When I did build_ext, this first stacktrace disappeared, but someone might want to check why the unoptimized codepath doesn't work.
Instead, I got another error at the end of the gcal_10000 generation, that crashed the output. Please see the backtrace after this. It's kind of annoying, it seems it's a None usage in the holoview plugin which is just there to do some fancy prompting :) Anybody knows what the issue might be? Like I wrote above, I tried with various ipython versions including 2.4, 4.2 and 5.6. The holoview plugin is fetched by git submodule --init, but maybe it is not checking out a specific branch, and it got upgraded at some point?
Update: I just went into the holoviews file and removed the reference to self.label.lower(), and then at least the generate_example passed. I guess it's some incompatibility with the holoviews submodule.