Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

big_viewer.show() error #1

Open
neurohn opened this issue Nov 7, 2016 · 2 comments
Open

big_viewer.show() error #1

neurohn opened this issue Nov 7, 2016 · 2 comments

Comments

@neurohn
Copy link

neurohn commented Nov 7, 2016

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

@alitou
Copy link

alitou commented Apr 3, 2017

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

@neurohn
Copy link
Author

neurohn commented Apr 3, 2017

I ended up not pursuing this further @alitou

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants