matplotlib / ipympl

Matplotlib Jupyter Integration
https://matplotlib.org/ipympl/
BSD 3-Clause "New" or "Revised" License
1.59k stars 225 forks source link

[Bug]: ipympl-0.8.2 does not compile #389

Closed brobr closed 3 years ago

brobr commented 3 years ago

Bug summary

Building ipympl-0.8.2 via `python3 setup.py install' stalls on:

ipympl-0.8.2/webpack.config.js Traceback (most recent call last): File "/tmp/SBo/ipympl-0.8.2/setup.py", line 41, in cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec) TypeError: 'NoneType' object is not callable

data_files_spec = [ ('share/jupyter/nbextensions/jupyter-matplotlib', 'ipympl/nbextension', '**'), ('share/jupyter/labextensions/jupyter-matplotlib', 'ipympl/labextension', "**"), ('etc/jupyter/nbconfig/notebook.d', '.', 'jupyter-matplotlib.json'), ]

FWIF, on my system the above files are maybe not found....

bash-5.1$ ls /usr/share/jupyter/*extensions/ /usr/share/jupyter/labextensions/: bqplot jupyterlab-plotly

/usr/share/jupyter/nbextensions/: bqplot jupyter-matplotlib rise jupyter-js-widgets jupyterlab-plotly stan_syntax bash-5.1$ ls /etc/jupyter ls: cannot access '/etc/jupyter': No such file or directory

Code for reproduction

na

Actual outcome

na

Expected outcome

built package

Operating system

Slackware64-current

Matplotlib Version

3.4.3

Matplotlib Backend

Qt5Agg

Python version

Python 3.9.7

Jupyter version

6.3.0

Other libraries

jupyter-packaging 0.11.0

Installation

source

Conda channel

No response

tacaswell commented 3 years ago

@brobr I transferred this to the ipympl repository (rather than core Matplotlib)

ianhi commented 3 years ago

@brobr what version of jupyter_packaging do you have? Instead of of setup.py install I'd recommend doing pip install . as that should use the build config defined in pyproject.toml. For full local install instructions see: https://github.com/matplotlib/ipympl#for-a-development-installation-requires-nodejs

ianhi commented 3 years ago

Other libraries

jupyter-packaging 0.11.0

ah I see. Can you try while using jupyter-packaging 0.7.0 this library hasn't been updated to the newer versions.

brobr commented 3 years ago

Thanks, using jupyter-packaging 0.7.12 worked fine; at least ipympl could be compiled;