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

"pip install nbformat" freezes on my machine #3148

Closed
stonebig opened this issue Sep 28, 2015 · 11 comments
Closed

"pip install nbformat" freezes on my machine #3148

stonebig opened this issue Sep 28, 2015 · 11 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@stonebig
Copy link
Contributor

I'm on windows 7 / python 3.4 (or Python 2.7)
this starts to work, then freeze

pip list -o

at

D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4.3.amd64>pip lis
t -o
astroid (Current: 1.3.6 Latest: 1.3.8 [wheel])
certifi (Current: 2015.9.6.1 Latest: 2015.9.6.2 [wheel])
click (Current: 5.0 Latest: 5.1 [wheel])
cvxopt (Current: 1.1.7 Latest: 1.1.8 [sdist])
llvmlite (Current: 0.6.0 Latest: 0.7.0 [sdist])
Could not find a version that satisfies the requirement mingwpy (from versions:
)
Some externally hosted files were ignored as access to them may be unreliable (u
se --allow-external mingwpy to allow).
Could not find a version that satisfies the requirement mysql-connector-python (
from versions: )
Some externally hosted files were ignored as access to them may be unreliable (u
se --allow-external mysql-connector-python to allow).

Ctrl-C gives:

Operation cancelled by user
Traceback (most recent call last):
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\Scripts\pip.exe\__main__.py", line 9, in <module>
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\lib\site-packages\pip\__init__.py", line 217, in main
    return command.main(cmd_args)
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\lib\site-packages\pip\basecommand.py", line 248, in main
    pip_version_check(session)
  File "D:\WinPythonQt5\basedir34\build\winpython-3.4.3.amd64\python-3.4
\lib\site-packages\pip\utils\outdated.py", line 117, in pip_version_chec
    SELFCHECK_DATE_FMT
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unl
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1467, in exec_module
  File "<frozen importlib._bootstrap>", line 1555, in get_code
  File "<frozen importlib._bootstrap>", line 1623, in get_data
KeyboardInterrupt

pip list alone gives:

adodbapi (2.6.0.7)
alabaster (0.7.6)
astroid (1.3.6)
Babel (2.1.1)
baresql (0.7.2)
bcolz (0.11.0)
beautifulsoup4 (4.4.0)
blaze (0.8.3)
blosc (1.2.8)
bloscpack (0.9.0)
bokeh (0.10.0)
brewer2mpl (1.4.1)
castra (0.1.6)
certifi (2015.9.6.1)
cffi (1.2.1)
click (5.0)
colorama (0.3.3)
cvxopt (1.1.7)
cx-Freeze (4.3.4)
cycler (0.9.0)
cyordereddict (0.2.2)
Cython (0.23.2)
cytoolz (0.7.3)
dask (0.7.3)
datashape (0.4.7)
db.py (0.4.4)
decorator (4.0.4)
dill (0.2.4)
docopt (0.6.2)
docutils (0.12)
Flask (0.10.1)
guidata (1.7.0b3)
guiqwt (2.4.0b4)
h5py (2.5.0)
holoviews (1.3.2)
husl (4.0.2)
ipykernel (4.0.3)
ipyparallel (4.0.2)
ipython (4.0.0)
ipython-genutils (0.1.0)
ipython-sql (0.3.7.1)
ipywidgets (4.0.3)
itsdangerous (0.24)
jedi (0.9.0)
Jinja2 (2.8)
joblib (0.8.4)
jsonschema (2.5.1)
julia (0.1.1.8)
jupyter (1.0.0)
jupyter-client (4.0.0)
jupyter-console (4.0.2)
jupyter-core (4.0.6)
Keras (0.1.3)
llvmlite (0.6.0)
lmfit (0.8.3)
locket (0.2.0)
logilab-common (1.0.2)
lxml (3.4.4)
MarkupSafe (0.23)
matplotlib (1.5.0rc1)
mingwpy (0.1.0b3)
mistune (0.7.1)
mpld3 (0.2)
multipledispatch (0.4.8)
mysql-connector-python (2.0.4)
nbconvert (4.0.0)
nbformat (4.0.0)
netCDF4 (1.2.0)
networkx (1.10)
nltk (3.0.5)
nose (1.3.7)
notebook (4.0.5)
numba (0.20.0)
numexpr (2.4.4)
numpy (1.9.3)
numpydoc (0.5)
oct2py (3.3.1)
odo (0.3.4)
pandas (0.17.0rc1)
param (1.3.2)
partd (0.3.2)
path.py (8.1.1)
patsy (0.4.0)
pep8 (1.6.2)
pg8000 (1.10.2)
pickleshare (0.5)
Pillow (2.9.0)
pip (7.1.2)
pkginfo (1.2.1)
prettytable (0.7.2)
psutil (3.2.1)
PuLP (1.5.9)
py (1.4.30)
PyAudio (0.2.8)
pybars3 (0.9.1)
pycparser (2.14)
pyflakes (0.9.2)
Pygments (2.0.2)
pyhdf (0.8.3)
pylint (1.4.3)
PyMeta3 (0.5.1)
pymongo (3.0.3)
pyodbc (3.0.10)
PyOpenGL (3.1.0)
pyparsing (2.0.3)
pyqtgraph (0.9.10)
pyserial (2.7)
pytest (2.8.0)
python-dateutil (2.4.2)
python-qwt (0.1.1)
pytz (2015.6)
pywin32 (219)
PyYAML (3.11)
pyzmq (14.7.0)
qtconsole (4.0.1)
redis (2.10.3)
reportlab (3.2.0)
requests (2.7.0)
requests-toolbelt (0.4.0)
rope-py3k (0.9.4.post1)
rpy2 (2.7.0)
scikit-image (0.11.3)
scikit-learn (0.16.1)
scilab2py (0.6)
scipy (0.16.0)
seaborn (0.6.0)
setuptools (18.3)
simplegeneric (0.8.1)
simplejson (3.8.0)
six (1.9.0)
snowballstemmer (1.2.0)
Sphinx (1.3.1)
sphinx-rtd-theme (0.1.9)
spyder (3.0.0.dev0)
SQLAlchemy (1.0.8)
sqlite-bro (0.8.10)
sqlparse (0.1.16)
statsmodels (0.6.1)
sympy (0.7.6.1)
tables (3.2.2)
Theano (0.7.0)
toolz (0.7.3)
tornado (4.2.1)
traitlets (4.0.0)
twine (1.6.1)
twitter (1.17.1)
Werkzeug (0.10.4)
wheel (0.26.0)
winpython (1.2)
xlrd (0.9.4)
XlsxWriter (0.7.3)
xray (0.6.0)
@stonebig
Copy link
Contributor Author

stonebig commented Oct 1, 2015

hi again,

If I add a print line in commands\list.py:

        for dist, version, typ in self.find_packages_latest_versions(options):
            print('looking %s' % dist.project_name)
            if version > dist.parsed_version:

I get this:

pip list -o
looking adodbapi
looking alabaster
looking astroid
astroid (Current: 1.3.6 Latest: 1.3.8 [wheel])
looking Babel
looking baresql
looking bcolz
looking beautifulsoup4
beautifulsoup4 (Current: 4.4.0 Latest: 4.4.1 [wheel])
looking blaze
looking blosc
looking bloscpack
looking bokeh
looking brewer2mpl
looking castra
looking certifi
certifi (Current: 2015.9.6.1 Latest: 2015.9.6.2 [wheel])
looking cffi
looking click
click (Current: 5.0 Latest: 5.1 [wheel])
looking colorama
looking cvxopt
cvxopt (Current: 1.1.7 Latest: 1.1.8 [sdist])
looking cx-Freeze
looking cycler
looking cyordereddict
looking Cython
Cython (Current: 0.23.2 Latest: 0.23.3 [sdist])
looking cytoolz
looking dask
looking datashape
looking db.py
looking decorator
looking dill
looking docopt
looking docutils
looking Flask
Could not find a version that satisfies the requirement formlayout (from version
s: )
Some externally hosted files were ignored as access to them may be unreliable (u
se --allow-external formlayout to allow).
looking guidata
guidata (Current: 1.6.2 Latest: 1.7.0b3 [wheel])
looking guiqwt
guiqwt (Current: 2.3.2 Latest: 2.4.0b4 [sdist])
looking h5py
looking holoviews
looking husl
looking ipykernel
looking ipyparallel
looking ipython
looking ipython-genutils
looking ipython-sql
looking ipywidgets
looking itsdangerous
looking jedi
looking Jinja2
looking joblib
looking jsonschema
looking julia
looking jupyter
looking jupyter-client
looking jupyter-console
looking jupyter-core
looking Keras
looking llvmlite
llvmlite (Current: 0.6.0 Latest: 0.7.0 [sdist])
looking lmfit
lmfit (Current: 0.8.3 Latest: 0.9.0 [sdist])
looking locket
looking logilab-common
looking lxml
looking MarkupSafe
looking matplotlib
Could not find a version that satisfies the requirement mingwpy (from versions:
)
Some externally hosted files were ignored as access to them may be unreliable (u
se --allow-external mingwpy to allow).
looking mistune
looking mpld3
looking multipledispatch
Could not find a version that satisfies the requirement mysql-connector-python (
from versions: )
Some externally hosted files were ignored as access to them may be unreliable (u
se --allow-external mysql-connector-python to allow).
looking nbconvert

suggesting it hangs at nbconvert or nbformat ?

... indeed pip uninstall nbformat solves the problem.... how curious ?

@stonebig
Copy link
Contributor Author

stonebig commented Oct 1, 2015

trying forward:
pip install nbformat hangs on my machine:

D:\....>pip install nbformat
Collecting nbformat

@stonebig stonebig changed the title "pip list -o" freezes on my machine "pip install nbformat" freezes on my machine Oct 1, 2015
@xavfernandez
Copy link
Member

And what does pip install nbformat --verbose output ?

@stonebig
Copy link
Contributor Author

stonebig commented Oct 1, 2015

D:..>pip install nbformat --verbose
Collecting nbformat
  Getting page https://pypi.python.org/simple/nbformat/
  Starting new HTTPS connection (1): pypi.python.org
  "GET /simple/nbformat/ HTTP/1.1" 200 294

and nothing else ... I noticed the --verbose option works on pip list -o --verbose, so my evolution whish was stupid. remains this issue

@xavfernandez
Copy link
Member

Sorry, it works fine on my side so no idea what could cause your issue...

@stonebig
Copy link
Contributor Author

stonebig commented Oct 2, 2015

could it be an issue relative to recent pip caching system ? how can I clear this cache ?

@stonebig
Copy link
Contributor Author

stonebig commented Oct 2, 2015

ok:
pip list -o --no-cache-dir works, where it would hang otherwise.

@xavfernandez
Copy link
Member

It would be interesting to see where it is hanging and why, maybe add a break point to https://github.com/pypa/pip/blob/7.1.2/pip/_vendor/cachecontrol/controller.py#L88 ?

@stonebig
Copy link
Contributor Author

stonebig commented Oct 3, 2015

well I cleared the cache, so further analysis is not possible

@xavfernandez
Copy link
Member

Closing it since we are lacking information on what caused the issue.
Don't hesitate to reopen it if it happened again.

@gerritholl
Copy link

This is due to #3532 .

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants