FS#51838 - [python-ipywidgets] conflicts with jupyter-widgetsnbextension

Attached to Project: Community Packages
Opened by Antonio Rojas (arojas) - Tuesday, 15 November 2016, 07:07 GMT
Last edited by Kyle Keen (keenerd) - Tuesday, 15 November 2016, 22:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

I packaged widgetsnbextension a while ago in the hope that it would fix interacts in Sage (later I figured out that the problem was ipywidgets being too old). Now that ipywidgets has been updated (thanks btw), it will cause conflicts on upgrade for Sage users. So please either
- Add conflicts/replaces/provides=(jupyter-widgetsnbextension) to python-ipywidgets
- or keep widgetsnbextension a separate package and make both python- and pytohn2-ipywidgets depend on it.

Personally I think the latter is better, since otherwise python2-ipywidgets will have to depend on python-ipywidgets. But in that case you should maintain widgetsnbextensions, since it will need to be kept in sync with ipywidgets in the future.
The upstream situation is very confusing: they seem to develop widgetsnbextension in its own repo, but then they also bundle it with ipywidgets.

Thanks

This task depends upon

Closed by  Kyle Keen (keenerd)
Tuesday, 15 November 2016, 22:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-ipywidgets 5.2.2-2
Comment by ToX (ToXSdi) - Tuesday, 15 November 2016, 12:56 GMT
I can confirm this bug, here is the pacman -Syu output:

--------------------------------------------------------
sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
infinality-bundle is up to date
infinality-bundle-multilib is up to date
infinality-bundle-fonts is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (83) bash-4.4-1 bc-1.06.95-3 bluez-5.43-2 bluez-cups-5.43-2 bluez-libs-5.43-2 bluez-utils-5.43-2 cinnamon-screensaver-3.2.2-1 cjs-3.2.0-2
device-mapper-2.02.167-2 eclib-20160720-8 flint-2.5.2-16 fluidsynth-1.1.6-5 folks-0.11.3-3 gap-4.8.3-3 gap-data-4.8.3-3 gap-doc-4.8.3-3
gap-packages-4.8.3-3 gawk-4.1.4-2 gjs-1.46.0-2 gnupg-2.1.15-2 gnuplot-5.0.5-2 guile-2.0.13-2 gutenprint-5.2.11-5 hunspell-1.4.1-2
imagemagick-6.9.6.4-1 inetutils-1.9.4-5 jack-0.125.0-3 js-24.2.0-4 js17-17.0.0-4 jupyter-widgetsnbextension-1:1.2.6-1 lib32-mesa-13.0.1-1
lib32-mesa-libgl-13.0.1-1 lib32-readline-7.0-1 libappindicator-gtk2-12.10.0-12 libappindicator-gtk3-12.10.0-12
libappindicator-sharp-12.10.0-12 libgiac-1.2.2.101-1 libnm-glib-1.4.2-2 libpcap-1.8.1-2 libqalculate-0.9.10-2 libsynctex-2016.41290-7
libusb-1.0.21-1 libutil-linux-2.28.2-2 libwbclient-4.5.1-2 libxml2-2.9.4+12+ge905f08-2 linbox-1.4.2-5 lua-5.3.3-2 lua51-5.1.5-6
lua52-5.2.4-2 lvm2-2.02.167-2 mesa-13.0.1-1 mesa-libgl-13.0.1-1 mesa-vdpau-13.0.1-1 networkmanager-1.4.2-2 ntl-10.2.0-1 octave-4.0.3-2
pacman-mirrorlist-20161114-1 pari-sage-1:2.8.0.alpha-2 parted-3.2-5 pcre-8.39-2 pcre2-10.22-2 portaudio-190600_20161030-1 python-3.5.2-3
python-dateutil-2.6.0-1 python-ipywidgets-5.2.2-1 python-prompt_toolkit-1.0.9-1 python2-2.7.12-2 python2-dateutil-2.6.0-1
python2-prompt_toolkit-1.0.9-1 r-3.3.2-2 readline-7.0-1 rlwrap-0.42-3 ruby-2.3.1-2 sagemath-7.4-5 sagemath-jupyter-7.4-5 samba-4.5.1-2
singular-4.0.3.p5-3 smbclient-4.5.1-2 sqlite-3.15.1-2 texlive-bin-2016.41290-7 util-linux-2.28.2-2 wpa_supplicant-1:2.6-2
youtube-dl-2016.11.14.1-1

Total Installed Size: 2345.68 MiB
Net Upgrade Size: 1.11 MiB

:: Proceed with installation? [Y/n] y
(83/83) checking keys in keyring [########################################################] 100%
(83/83) checking package integrity [########################################################] 100%
(83/83) loading package files [########################################################] 100%
(83/83) checking for file conflicts [########################################################] 100%
error: failed to commit transaction (conflicting files)
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/PKG-INFO exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/SOURCES.txt exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/dependency_links.txt exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/not-zip-safe exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/requires.txt exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension-1.2.6-py3.5.egg-info/top_level.txt exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/__init__.py exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/__pycache__/__init__.cpython-35.pyc exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/__pycache__/_version.cpython-35.pyc exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/_version.py exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/static/extension.js exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/lib/python3.5/site-packages/widgetsnbextension/static/extension.js.map exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
/usr/share/jupyter/nbextensions/jupyter-js-widgets/extension.js.map exists in both 'jupyter-widgetsnbextension' and 'python-ipywidgets'
Errors occurred, no packages were upgraded.

-----------------------------------------------------------------------------------------------------
Comment by Kyle Keen (keenerd) - Tuesday, 15 November 2016, 20:26 GMT
Python2-ipywidgets already depends on python-ipywidgets because of overlapping files, so I agree that having jupyter-widgetsnbextension would be a good idea. I take it you don't need a python2 version of widgetsnbextension?
Comment by Antonio Rojas (arojas) - Tuesday, 15 November 2016, 20:29 GMT
We only provide the python3 version of the notebook so no, there's no need for a python2 version of widgetsnbextension.

Loading...