Open haraldschilly opened 4 years ago
So, somehow, it's a matter for fixing a path or how the binaries are searched. With other custom environments (repo2docker builds) I've not seen such a problem before. Hmm …
~$ find /srv -name coqtop
/srv/conda/envs/notebook/bin/coqtop
~$ find /srv -name coqidetop
/srv/conda/envs/notebook/bin/coqidetop
Thanks for the feedback. The weird thing is that this works fine with MyBinder. I don't know what the difference could be that would explain this. @EugeneLoy (coq_jupyter author) or @slel (feedstocks author): maybe you have an idea?
Well, there are certainly many differences. There must be something going on with mybinder regarding how it does start the environment. In particular, there is an anaconda env called "notebook". Is this always defined? Is MyBinder starting this environment explicitly? If someone can tell me more details or just point me to the code, I'm sure I can figure this out. There are also some environment variables, which must be relevant. I don't know if anaconda sets them (I assume it does).
@Zimmi48
maybe you have an idea?
I don't see any obvious problems yet.
@haraldschilly
What conda environment are you using to run jupyter server?
Also, are you able to run\what is the output of the coqtop --version
and coqidetop --version
under that environment?
well, I don't know how to get this to work at all. probably my main problem is that I don't know what's going on and therefore I lack insight into debugging this. What are these tools doing?
My alternative approach is to just get this to work in cocalc. As far as I can tell it installs fine, but the jupyter server's attempts to run the kernel crash with
Traceback (most recent call last):
File "/ext/anaconda-2019.03/lib/python3.7/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/ext/anaconda-2019.03/lib/python3.7/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/ext/anaconda-2019.03/lib/python3.7/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/ext/anaconda-2019.03/lib/python3.7/site-packages/coq_jupyter/__init__.py", line 3, in <module>
from .kernel import __version__
File "/ext/anaconda-2019.03/lib/python3.7/site-packages/coq_jupyter/kernel.py", line 7, in <module>
from traitlets import Unicode
File "/ext/anaconda-2019.03/lib/python3.7/site-packages/traitlets/__init__.py", line 1, in <module>
from .traitlets import *
File "/ext/anaconda-2019.03/lib/python3.7/site-packages/traitlets/traitlets.py", line 57, in <module>
import six
File "/ext/anaconda-2019.03/lib/python3.7/site-packages/six.py", line 631, in <module>
import struct
File "/ext/anaconda-2019.03/lib/python3.7/struct.py", line 13, in <module>
from _struct import *
ModuleNotFoundError: No module named '_struct'
(base) ~$ coqtop --version; coqidetop --version
The Coq Proof Assistant, version 8.11.0 (February 2020)
compiled on Feb 2 2020 16:19:59 with OCaml 4.06.1
The Coq Proof Assistant, version 8.11.0 (February 2020)
compiled on Feb 2 2020 16:19:59 with OCaml 4.06.1
What environment variables or other settings are relevant? What are the dependencies?
this is the error I get when running this (the server command, slightly modified) in cocalc