Git Product home page Git Product logo

Comments (10)

minrk avatar minrk commented on August 15, 2024

The requirements.txt is only for the not-yet released jupyter/ipython dependencies. setup.py expresses the terminado dependency. How did you install the notebook?

from notebook.

CarlFK avatar CarlFK commented on August 15, 2024

https://github.com/jupyter/jupyter_notebook#jupyter-notebook

Dev quickstart:
...
pip install -r requirements.txt

from notebook.

minrk avatar minrk commented on August 15, 2024

Yes, as mentioned above, the requirements.txt only gets the dependencies that pip install -e . will fail to get. pip install -e . will get terminado. Did you do pip install -e . or something else to install the notebook package?

from notebook.

CarlFK avatar CarlFK commented on August 15, 2024

pip install -e .

2021 git clone https://github.com/jupyter/jupyter_notebook.git
2022 cd jupyter_notebook/
2023 pip install -r requirements.txt
2024 pip install -e .
2025 jupyter notebook
2026 grep terminado requirements.txt
2027 pip install terminado
2028 jupyter notebook
2029 history

Hmm, This shouldn't matter, but the VE is left over from attempting to follow

https://github.com/ipython/ipython#development-installation
pip install -e ".[notebook]" --user
Could not find any downloads that satisfy the requirement jupyter-notebook (from ipython==4.0.0-dev)

Tried to figure out how to fix, gave up, but did not clean up the VE.

from notebook.

minrk avatar minrk commented on August 15, 2024

Those exact steps worked for me. What version of pip?

from notebook.

minrk avatar minrk commented on August 15, 2024

and setuptools, perhaps.

from notebook.

CarlFK avatar CarlFK commented on August 15, 2024
(ipn)carl@twist:~/src/jupyter_notebook$ pip -V
pip 1.5.4 from /home/carl/.virtualenvs/ipn/local/lib/python2.7/site-packages (python 2.7)
(ipn)carl@twist:~/src/jupyter_notebook$ python 
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> setuptools.__version__
'2.2'

I just tried again with a clean VE, still errors.
I also grepped the output of pip install -e . for terminado, found nothing.

from notebook.

minrk avatar minrk commented on August 15, 2024

Does it work if you pip install --upgrade setuptools pip first? Current setuptools is 15.1.

I ran this, for a clean env:

python2 -m virtualenv /tmp/test-req
source /tmp/test-req/bin/activate
pip install -r requirements.txt -e .

Which finished with:

Successfully installed appnope-0.1.0 backports.ssl-match-hostname-3.4.0.2 certifi-14.5.14 
decorator-3.4.2 ipython ipython-genutils ipython-kernel jinja2-2.7.3 jsonschema-2.4.0 
jupyter-client jupyter-core jupyter-nbconvert jupyter-nbformat jupyter-notebook 
markupsafe-0.23 mistune-0.5.1 path.py-7.3 pexpect-3.3 pickleshare-0.5 ptyprocess-0.4 
pygments-2.0.2 pyzmq-14.5.0 simplegeneric-0.8.1 terminado-0.5 tornado-4.1 traitlets

And pip freeze:

appnope==0.1.0
backports.ssl-match-hostname==3.4.0.2
certifi==14.5.14
decorator==3.4.2
-e git+https://github.com/ipython/ipython.git@d538c7ac9dcee2e75ff5e670376ac4d3ad6715ee#egg=ipython-master
-e git+https://github.com/ipython/ipython_genutils.git@cd17ef4c300b63392738c673f41c09e5b4dfaa6d#egg=ipython_genutils-master
-e git+https://github.com/ipython/ipython_kernel.git@e02f13bfb74d1e8c82b1cf30b49e376b12fbc2c9#egg=ipython_kernel-master
Jinja2==2.7.3
jsonschema==2.4.0
-e git+https://github.com/jupyter/jupyter_client.git@67e7a98405c154c0f4f04024d5442af63b553dae#egg=jupyter_client-master
-e git+https://github.com/jupyter/jupyter_core.git@c0e8787e3c7e32ff632f7e6058ac083ffb9642e7#egg=jupyter_core-master
-e git+https://github.com/jupyter/jupyter_nbconvert.git@da1d3ee05ce3453bb2c5e2c0625160711f4419fa#egg=jupyter_nbconvert-master
-e git+https://github.com/jupyter/jupyter_nbformat.git@137926e731512b70fdf26266e9ad68254eec5b58#egg=jupyter_nbformat-master
-e [email protected]:jupyter/jupyter_notebook.git@68d41f59924939f42a538956f112f4682c5853b7#egg=jupyter_notebook-master
MarkupSafe==0.23
mistune==0.5.1
path.py==7.3
pexpect==3.3
pickleshare==0.5
ptyprocess==0.4
Pygments==2.0.2
pyzmq==14.5.0
simplegeneric==0.8.1
terminado==0.5
tornado==4.1
-e git+https://github.com/ipython/traitlets.git@4b26dff292a23b89976afa7732894c5bb1969f03#egg=traitlets-master

from notebook.

CarlFK avatar CarlFK commented on August 15, 2024

updating setuptools fixed it.

(test-req)carl@twist:~/src/jupyter_notebook$ pip install --upgrade setuptools pip

  Running setup.py install for ptyprocess
  Running setup.py install for terminado
  Running setup.py develop for jupyter-notebook
Successfully installed backports.ssl-match-hostname-3.4.0.2 certifi-14.5.14 decorator-3.4.2 ipython ipython-genutils ipython-kernel jinja2-2.7.3 jsonschema-2.4.0 jupyter-client jupyter-core jupyter-nbconvert jupyter-nbformat jupyter-notebook markupsafe-0.23 mistune-0.5.1 path.py-7.3 pexpect-3.3 pickleshare-0.5 ptyprocess-0.4 pygments-2.0.2 pyzmq-14.5.0 simplegeneric-0.8.1 terminado-0.5 tornado-4.1 traitlets

before I updated:

(test-req)carl@twist:~/src/jupyter_notebook$ pip install -r requirements.txt -e .

Successfully installed ipython-genutils traitlets jupyter-core jupyter-nbformat jupyter-client ipython ipython-kernel jupyter-nbconvert jinja2 tornado jupyter-notebook decorator jsonschema pyzmq pickleshare simplegeneric pexpect mistune pygments markupsafe certifi backports.ssl-match-hostname path.py

(test-req)carl@twist:~/src/jupyter_notebook$ pip freeze
Jinja2==2.7.3
MarkupSafe==0.23
Pygments==2.0.2
argparse==1.2.1
backports.ssl-match-hostname==3.4.0.2
certifi==14.05.14
decorator==3.4.2
-e git+https://github.com/ipython/ipython.git@d538c7ac9dcee2e75ff5e670376ac4d3ad6715ee#egg=ipython-master
-e git+https://github.com/ipython/ipython_genutils.git@cd17ef4c300b63392738c673f41c09e5b4dfaa6d#egg=ipython_genutils-master
-e git+https://github.com/ipython/ipython_kernel.git@4e153d4f6a1fc6c5780f0c198c132d29c3e9532e#egg=ipython_kernel-master
jsonschema==2.4.0
-e git+https://github.com/jupyter/jupyter_client.git@67e7a98405c154c0f4f04024d5442af63b553dae#egg=jupyter_client-master
-e git+https://github.com/jupyter/jupyter_core.git@c0e8787e3c7e32ff632f7e6058ac083ffb9642e7#egg=jupyter_core-master
-e git+https://github.com/jupyter/jupyter_nbconvert.git@da1d3ee05ce3453bb2c5e2c0625160711f4419fa#egg=jupyter_nbconvert-master
-e git+https://github.com/jupyter/jupyter_nbformat.git@137926e731512b70fdf26266e9ad68254eec5b58#egg=jupyter_nbformat-master
-e git+https://github.com/jupyter/jupyter_notebook.git@68d41f59924939f42a538956f112f4682c5853b7#egg=jupyter_notebook-master
mistune==0.5.1
path.py==7.3
pexpect==3.3
pickleshare==0.5
pyzmq==14.5.0
simplegeneric==0.8.1
tornado==4.1
-e git+https://github.com/ipython/traitlets.git@4b26dff292a23b89976afa7732894c5bb1969f03#egg=traitlets-master
wsgiref==0.1.2

from notebook.

minrk avatar minrk commented on August 15, 2024

Weird and worrying. I wonder what version of setuptools has this fixed.

from notebook.

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.