mattions / neuronvisio

A Graphical User Interface with 3D Visualization features for NEURON simulation enviroment
https://neuronvisio.readthedocs.io
Other
30 stars 15 forks source link

New Mac installation instructions #53

Closed tclose closed 11 years ago

tclose commented 11 years ago

Hi Michele,

Here are my instructions for installing neuronvisio on a Mac.

Cheers,

Tom

mattions commented 11 years ago

Thanks Tom,

merged in master and website updated.

tclose commented 11 years ago

Hi Michele,

No worries, happy to be of help. I just sent you a pull request with some updates to the procedure and these are the error messages I am getting, which you might want to check out.

Cheers,

Tom



On startup I get these warning messages (they seem pretty harmless though)



QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view. QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view. QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view.



When attempting to load models from ModelDB I get this error



WARNING neuronvisio.controls 457 Could not locate a predefined mosinit.hoc. Can't automatically load the model. Check the README for hints on which hoc to use and copy it to Models/144054/mosinit.hoc

INFO neuronvisio.modeldb.ModelDB 99 Opening 'Models/144054'.

OSError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in load_selected_model(self) 457 logger.warning(path_info) 458 self.ui.statusbar.showMessage(path_info, 10000) --> 459 mod.browse() 460 461 def make_animation_screenshots(self, time_start, time_stop=None,

/usr/local/lib/python2.7/site-packages/neuronvisio/modeldb/ModelDB.pyc in browse(self) 98 modelName = self.get_name() 99 logger.info("Opening '" + self.get_dir()+"'.") --> 100 self._start_file(self.get_dir()) 101 else: 102 logger.info("Model does not exists locally")

/usr/local/lib/python2.7/site-packages/neuronvisio/modeldb/ModelDB.pyc in _start_file(self, filename) 250 except: 251 # Implementation for Linux --> 252 subprocess.Popen(['xdg-open', filename]) 253 254

---------------------------------------------------------------------------

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags) 677 p2cread, p2cwrite, 678 c2pread, c2pwrite, --> 679 errread, errwrite) 680 681 if mswindows:

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite) 1247 if fd is not None: 1248 os.close(fd) -> 1249 raise child_exception 1250 1251

OSError: [Errno 2] No such file or directory



When using the time slider to play a recording in the visio, I get this error (I simply hacked out the time text in the visio to get it to work for my presentation):



AttributeError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in on_timeline_value_changed(self) 524 525 time_point_indx = self.ui.timelineSlider.value() --> 526 self.sync_visio_3d(time_point_indx) 527 528 def plot_vector(self):

/usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in sync_visio_3d(self, time_point_indx) 629 630 self.visio.show_variable_timecourse(var, time_point_indx, --> 631 start_value, end_value) 632 633 def tstop_changed(self):

/usr/local/lib/python2.7/site-packages/neuronvisio/visio.pyc in show_variable_timecourse(self, var, time_point, start_value, end_value) 447 time = self.manager.groups['t'][time_point] 448 time_point_string = "%.3f" %round(time, 3) --> 449 self.timelabel.text = time_point_string 450 self.mayavi.visualization.scene.disable_render = False 451

AttributeError: 'NoneType' object has no attribute 'text'

On 5 March 2013 21:59, Michele Mattioni notifications@github.com wrote:

Thanks Tom,

merged in master and website updated.

— Reply to this email directly or view it on GitHubhttps://github.com/mattions/neuronvisio/pull/53#issuecomment-14438603 .

mattions commented 11 years ago

Hey Tom,

this is related with #52

When a new model has been downloaded, Neuonvisio search for the mosinit.hoc to load it. The problem is, some models don't provide that, so Neuronvisio does not know how to load it.

I've opened a new issue #55, so we can clarify with a dialog and give better info to the user.

More over, it seems that on MAC the xdg-open path does not work. I've logged this on #56 I can try to solve #56, but I can't test it on a MAC. Would you like to test it? (Or even have a go at it!)

On Thu, Mar 7, 2013 at 3:41 AM, tclose notifications@github.com wrote:

Hi Michele,

No worries, happy to be of help. I just sent you a pull request with some updates to the procedure and these are the error messages I am getting, which you might want to check out.

Cheers,

Tom



On startup I get these warning messages (they seem pretty harmless though)



QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view. QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view. QAbstractItemView::setSelectionModel() failed: Trying to set a selection model, which works on a different model than the view.



When attempting to load models from ModelDB I get this error



WARNING neuronvisio.controls 457 Could not locate a predefined mosinit.hoc. Can't automatically load the model. Check the README for hints on which hoc to use and copy it to Models/144054/mosinit.hoc

INFO neuronvisio.modeldb.ModelDB 99 Opening 'Models/144054'.

OSError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in load_selected_model(self) 457 logger.warning(path_info) 458 self.ui.statusbar.showMessage(path_info, 10000) --> 459 mod.browse() 460 461 def make_animation_screenshots(self, time_start, time_stop=None,

/usr/local/lib/python2.7/site-packages/neuronvisio/modeldb/ModelDB.pyc in browse(self) 98 modelName = self.get_name() 99 logger.info("Opening '" + self.get_dir()+"'.") --> 100 self._start_file(self.get_dir()) 101 else: 102 logger.info("Model does not exists locally")

/usr/local/lib/python2.7/site-packages/neuronvisio/modeldb/ModelDB.pyc in _start_file(self, filename) 250 except: 251 # Implementation for Linux --> 252 subprocess.Popen(['xdg-open', filename]) 253 254

---------------------------------------------------------------------------

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc

in init(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags) 677 p2cread, p2cwrite, 678 c2pread, c2pwrite, --> 679 errread, errwrite) 680 681 if mswindows:

/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.pyc

in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite) 1247 if fd is not None: 1248 os.close(fd) -> 1249 raise child_exception 1250 1251

OSError: [Errno 2] No such file or directory



When using the time slider to play a recording in the visio, I get this error (I simply hacked out the time text in the visio to get it to work for my presentation):



AttributeError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in on_timeline_value_changed(self) 524 525 time_point_indx = self.ui.timelineSlider.value() --> 526 self.sync_visio_3d(time_point_indx) 527 528 def plot_vector(self):

/usr/local/lib/python2.7/site-packages/neuronvisio/controls.pyc in sync_visio_3d(self, time_point_indx) 629 630 self.visio.show_variable_timecourse(var, time_point_indx, --> 631 start_value, end_value) 632 633 def tstop_changed(self):

/usr/local/lib/python2.7/site-packages/neuronvisio/visio.pyc in show_variable_timecourse(self, var, time_point, start_value, end_value) 447 time = self.manager.groups['t'][time_point] 448 time_point_string = "%.3f" %round(time, 3) --> 449 self.timelabel.text = time_point_string 450 self.mayavi.visualization.scene.disable_render = False 451

AttributeError: 'NoneType' object has no attribute 'text'

On 5 March 2013 21:59, Michele Mattioni notifications@github.com wrote:

Thanks Tom,

merged in master and website updated.

— Reply to this email directly or view it on GitHub< https://github.com/mattions/neuronvisio/pull/53#issuecomment-14438603> .

— Reply to this email directly or view it on GitHubhttps://github.com/mattions/neuronvisio/pull/53#issuecomment-14541455 .

Michele Mattioni, PhD http://michelemattioni.me