nyroglancer icon indicating copy to clipboard operation
nyroglancer copied to clipboard

big_viewer.show() error

Open neurohn opened this issue 8 years ago • 2 comments

Hi @funkey ,

Thanks for the useful repo! I am running into an error when running the example code. (Note: I corrected for the obvious errors - changing param names etc.) Will you be able to shed some light on this error report:

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-10-f49044f5eb17> in <module>()
----> 1 big_viewer.show()

/home/rohan/myenv/nyr2/lib/python2.7/site-packages/nyroglancer-1.0.2-py2.7.egg/nyroglancer/viewer.pyc in show(self)
     71         """
     72 
---> 73         viewer_url = self.get_server_url() + '/neuroglancer' + '#!' + self.get_encoded_state()
     74         large_html = "<style>.container { width:100% !important; }</style>" if self.large else ""
     75 

/home/rohan/myenv/nyr2/local/lib/python2.7/site-packages/neuroglancer/base_viewer.pyc in get_encoded_state(self)
    103     def get_encoded_state(self):
    104         return urlquote(
--> 105             json.dumps(self.get_json_state(), separators=(',', ':')),
    106             '~@#$&()*!+=:;,.?/\'')

/home/rohan/myenv/nyr2/local/lib/python2.7/site-packages/neuroglancer/base_viewer.pyc in get_json_state(self)
     74         specified_names = set(layer.name for layer in self.layers)
     75         for layer in self.layers:
---> 76             self.register_volume(layer.volume)
     77             name = layer.name
     78             if name is None:

/home/rohan/myenv/nyr2/lib/python2.7/site-packages/nyroglancer-1.0.2-py2.7.egg/nyroglancer/viewer.pyc in register_volume(self, volume)
     88             response = http_client.fetch(self.get_server_url() + '/register_token/' + volume.token + '/' + cf)
     89         except Exception as e:
---> 90             raise RuntimeError("could not register token: " + str(e))
     91         http_client.close()
     92 

RuntimeError: could not register token: HTTP 404: Not Found

Thanks

neurohn avatar Nov 07 '16 21:11 neurohn

I have the same issue, @neurohn did you solve it?

alitou avatar Apr 03 '17 14:04 alitou

I ended up not pursuing this further @alitou

neurohn avatar Apr 03 '17 19:04 neurohn