Code Monkey home page Code Monkey logo

Comments (7)

ian-r-rose avatar ian-r-rose commented on June 12, 2024 1

Just opened jupyterlab/jupyterlab#4962 with this fix. Thanks again @slowkow

from jupyterlab-toc.

ian-r-rose avatar ian-r-rose commented on June 12, 2024

What version of JupyterLab are you using? You may have caught us in the middle of the release cycle: v0.3.1 is targeting the new release of JupyterLab (v0.33, still in RC).

Edit: ah, I see 0.32.1 in your original message. This new version of the package will not work with that, I think. I recommend either holding of for a day or so, or trying the RC of JupyterLab 0.33.

from jupyterlab-toc.

slowkow avatar slowkow commented on June 12, 2024

Yes, I think you're right... but there may also be a bug.

I didn't check my version before upgrading, but I can verify that I got this message with the old version (unknown) of jupyterlab and with the new version (0.32.1):

Errored, use --debug for full output:
ValueError: No version of @jupyterlab/toc could be found that is
 compatible with the current version of JupyterLab. However, it
 seems to support a new version of JupyterLab.
 Consider upgrading JupyterLab.

Conflicting Dependencies:
JupyterLab              Extension        Package
>=0.16.3 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/rendermime
>=0.16.3 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/notebook
>=0.16.4 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/apputils
>=0.16.3 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/fileeditor
>=1.1.3 <2.0.0          >=2.0.0 <3.0.0   @jupyterlab/coreutils
>=0.16.3 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/application
>=0.16.3 <0.17.0        >=0.17.0 <0.18.0 @jupyterlab/docmanager

To get this error, first I had to fix a bug in this file:

/data/srlab/slowikow/src/miniconda2/envs/py3/lib/python3.5/site-packages/jupyterlab/commands.py

I changed line 1588 in _fetch_package_metadata() from this:

return json.load(response)

to this:

return json.loads(response.read().decode('utf-8'))

This got me past the issue with TypeError: the JSON ..., but now I get the new issue complaining that my jupyterlab version is too old.

from jupyterlab-toc.

ian-r-rose avatar ian-r-rose commented on June 12, 2024

Interesting. What version of Python are you using? I may have seen this before with 3.5...

from jupyterlab-toc.

slowkow avatar slowkow commented on June 12, 2024

Yep, you are right:

python --version
Python 3.5.2 :: Continuum Analytics, Inc.

from jupyterlab-toc.

ian-r-rose avatar ian-r-rose commented on June 12, 2024

Great, thanks for the report @slowkow! This fix will need to go into the core JupyterLab python package.

from jupyterlab-toc.

ian-r-rose avatar ian-r-rose commented on June 12, 2024

Fixed by jupyterlab/jupyterlab#4962

from jupyterlab-toc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.