question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to parse ipywidgets extras_require

See original GitHub issue

It seems that pipenv is getting confused by the requirements in ipywidgets (https://github.com/jupyter-widgets/ipywidgets/blob/master/setup.py).

extras_require = setuptools_args['extras_require'] = {
    ':python_version<"3.3"' : ['ipython>=4.0.0,<6.0.0'],
    ':python_version>="3.3"': ['ipython>=4.0.0'],
    'test:python_version=="2.7"': ['mock'],
    'test': ['nose'],
}

It declares a conflict between IPython > 6.0.0 and ipywidgets even though my environment is Python 3.6.

Describe your environment
  1. OS Type: Windows Server 2012 (though I expect I could reproduce on Windows 10 x64)
  2. Python version: Python 3.6.4
  3. Pipenv version: version 11.0.2
Expected result

pipenv allows IPython > 6.0.0 to be installed as Python is >= 3.3.

Actual result

Incidentally, I had to add print(c.out) to utils.venv_resolve_deps to get it to print the output from the venv rather than just eating it, so I could work out which packages were going wrong.

Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Could not find a version that matches ipython<6.0.0,>6.0.0,>=4.0.0
Tried: 0.10, 0.10.1, 0.10.1, 0.10.2, 0.10.2, 0.11, 0.11, 0.12, 0.12, 0.12.1, 0.12.1, 0.13, 0.13, 0.13.1, 0.13.1, 0.13.2,
 0.13.2, 1.0.0, 1.0.0, 1.1.0, 1.1.0, 1.2.0, 1.2.0, 1.2.1, 1.2.1, 2.0.0, 2.0.0, 2.0.0, 2.1.0, 2.1.0, 2.1.0, 2.2.0, 2.2.0,
 2.2.0, 2.3.0, 2.3.0, 2.3.0, 2.3.1, 2.3.1, 2.3.1, 2.4.0, 2.4.0, 2.4.0, 2.4.1, 2.4.1, 2.4.1, 3.0.0, 3.0.0, 3.0.0, 3.1.0,
3.1.0, 3.1.0, 3.2.0, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.2.1, 3.2.2, 3.2.2, 3.2.2, 3.2.3, 3.2.3, 3.2.3, 4.0.0b1, 4.0.0b1, 4.0.
0b1, 4.0.0, 4.0.0, 4.0.0, 4.0.1, 4.0.1, 4.0.1, 4.0.2, 4.0.2, 4.0.2, 4.0.3, 4.0.3, 4.0.3, 4.1.0rc1, 4.1.0rc1, 4.1.0rc1, 4
.1.0rc2, 4.1.0rc2, 4.1.0rc2, 4.1.0, 4.1.0, 4.1.0, 4.1.1, 4.1.1, 4.1.1, 4.1.2, 4.1.2, 4.1.2, 4.2.0, 4.2.0, 4.2.0, 4.2.1,
4.2.1, 4.2.1, 5.0.0b1, 5.0.0b1, 5.0.0b1, 5.0.0b2, 5.0.0b2, 5.0.0b2, 5.0.0b3, 5.0.0b3, 5.0.0b3, 5.0.0b4, 5.0.0b4, 5.0.0b4
, 5.0.0rc1, 5.0.0rc1, 5.0.0rc1, 5.0.0, 5.0.0, 5.0.0, 5.1.0, 5.1.0, 5.1.0, 5.2.0, 5.2.0, 5.2.1, 5.2.1, 5.2.2, 5.2.2, 5.3.
0, 5.3.0, 5.4.0, 5.4.0, 5.4.1, 5.4.1, 5.5.0, 5.5.0, 6.0.0rc1, 6.0.0rc1, 6.0.0, 6.0.0, 6.1.0, 6.1.0, 6.2.0, 6.2.0, 6.2.1,
 6.2.1
Steps to replicate

In a clean directory:

pipenv install ipywidgets IPython>6.0.0
pipenv lock

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
techalchemycommented, Mar 6, 2018

@david-gang thanks for submitting those! @kennethreitz just set up our local copy of pypi for testing purposes and is probably most qualified to answer this question

0reactions
david-gangcommented, Mar 6, 2018

I think it is the same issue as #1547 . It is the same platform specific dictionary form which isn’t supported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get ipywidgets working in Jupyter Lab? - Stack Overflow
js installed. Simply install the python ipywidgets package with pip (pip install ipywidgets==7.6. 0) or conda/mamba (conda install -c conda- ...
Read more >
install ipywidgets - Read the Docs
No information is available for this page.
Read more >
ipywidgets | Databricks on AWS
Example notebooks; Best practices for using ipywidgets and Databricks widgets; Which third-party Jupyter widgets are supported in Databricks?
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found