Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

monad-bayes series Nix environment: update jupyterWith pin #13

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

curiousleo
Copy link
Contributor

This PR updates the pinned revision of jupyterWith.

jupyterWith has macOS CI set up now. The revision this PR updates the pin to has passed macOS CI: https://github.com/tweag/jupyterWith/runs/733371600.

Should fix #12, though I haven't been able to test this myself.

@curiousleo curiousleo changed the title monad-bayes series: update jupyterWith rev monad-bayes series Nix environment: update jupyterWith rev Jun 10, 2020
@curiousleo curiousleo changed the title monad-bayes series Nix environment: update jupyterWith rev monad-bayes series Nix environment: update jupyterWith pin Jun 10, 2020
@curiousleo
Copy link
Contributor Author

Fails for me on Linux with this error:

Fetching URL: https://registry.yarnpkg.com/jupyterlab-ihaskell
Failed to fetch package metadata for 'jupyterlab-ihaskell': URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
Fetching URL: https://registry.yarnpkg.com/jupyterlab-ihaskell
Failed to fetch package metadata for 'jupyterlab-ihaskell': URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))
Traceback (most recent call last):

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 93, in start
    ans = self.run_task()

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 149, in run_task
    for i, arg in enumerate(self.extra_args)

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/labextensions.py", line 149, in <listcomp>
    for i, arg in enumerate(self.extra_args)

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/commands.py", line 388, in install_extension
    return handler.install_extension(extension, pin=pin)

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/commands.py", line 603, in install_extension
    info = self._install_extension(extension, tempdir, pin=pin)

  File "/nix/store/q6m0ks8bdnlfpmn9zklgxda6m8s4jgq0-python3.7-jupyterlab-2.1.0/lib/python3.7/site-packages/jupyterlab/commands.py", line 1550, in _install_extension
    raise ValueError(msg)

ValueError: No version of jupyterlab-ihaskell could be found that is compatible with the current version of JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/application
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/apputils
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/notebook
>=5.1.0 <5.2.0          >=4.0.0 <5.0.0 @jupyterlab/services

An error occured.
ValueError: No version of jupyterlab-ihaskell could be found that is compatible with the current version of JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension      Package
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/application
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/apputils
>=2.1.0 <2.2.0          >=1.0.0 <2.0.0 @jupyterlab/notebook
>=5.1.0 <5.2.0          >=4.0.0 <5.0.0 @jupyterlab/services

An SSL error ... is this a sandbox issue?

@guaraqe
Copy link
Contributor

guaraqe commented Jun 10, 2020

The problem is due to the extension. A temporary workaround is to remove the extension from the environment, which will give code without highlighting:

  jupyterlabWithKernels =
    jupyter.jupyterlabWith {
      kernels = [ ihaskellWithPackages ];
    };

@curiousleo
Copy link
Contributor Author

curiousleo commented Jun 10, 2020

a87ad95 builds for me on Linux.

Edit: but it shows no graphs :/

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

Successfully merging this pull request may close these issues.

nix-shell in monad-bayes-series fails on darwin
2 participants