ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.2k stars 805 forks source link

SafetyError: The package for jupyter_contrib_nbextensions located at c:\... has an incorrect size. #1566

Open richlysakowski opened 3 years ago

richlysakowski commented 3 years ago

I have never seen this error before. How do I fix a "Safety Error"?

Here's the current version of packages that I am using on Windows 10 Professional:

(jlab_elyra) c:\Users\richadmin\OneDrive>jupyter --version jupyter core : 4.7.1 jupyter-notebook : 6.3.0 qtconsole : not installed ipython : 7.22.0 ipykernel : 5.5.3 jupyter client : 6.1.12 jupyter lab : 2.3.1 nbconvert : 5.6.1 ipywidgets : 7.6.3 nbformat : 5.1.3 traitlets : 5.0.5

Here's the installation command that I used:

(jlab_elyra) c:\Users\richadmin\OneDrive>conda install -c conda-forge jupyter_contrib_nbextensions

And here's the message I got:

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\jlab_elyra

  added / updated specs:
    - jupyter_contrib_nbextensions

The following NEW packages will be INSTALLED:

  jupyter_contrib_c~ conda-forge/noarch::jupyter_contrib_core-0.3.3-py_2
  jupyter_contrib_n~ conda-forge/noarch::jupyter_contrib_nbextensions-0.5.1-pyhd8ed1ab_2
  jupyter_highlight~ conda-forge/win-64::jupyter_highlight_selected_word-0.2.0-py38haa244fe_1002
  jupyter_latex_envs conda-forge/noarch::jupyter_latex_envs-1.4.6-pyhd8ed1ab_1002
  jupyter_nbextensi~ conda-forge/win-64::jupyter_nbextensions_configurator-0.4.1-py38haa244fe_2

The following packages will be UPDATED:

  certifi            pkgs/main::certifi-2020.12.5-py38haa9~ --> conda-forge::certifi-2020.12.5-py38haa244fe_1

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates    pkgs/main::ca-certificates-2021.4.13-~ --> conda-forge::ca-certificates-2020.12.5-h5b45459_0
  openssl              pkgs/main::openssl-1.1.1k-h2bbff1b_0 --> conda-forge::openssl-1.1.1k-h8ffe710_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: \
SafetyError: The package for jupyter_latex_envs located at c:\ProgramData\Anaconda3\pkgs\jupyter_latex_envs-1.4.6-pyhd8ed1ab_1002
appears to be corrupted. The path 'site-packages/latex_envs/latex_envs.py'
has an incorrect size.
  reported size: 22530 bytes
  actual size: 22536 bytes

SafetyError: The package for jupyter_contrib_nbextensions located at c:\ProgramData\Anaconda3\pkgs\jupyter_contrib_nbextensions-0.5.1-pyhd8ed1ab_2
appears to be corrupted. The path 'site-packages/jupyter_contrib_nbextensions/nbconvert_support/exporter_inliner.py'
has an incorrect size.
  reported size: 1563 bytes
  actual size: 1565 bytes

SafetyError: The package for jupyter_contrib_nbextensions located at c:\ProgramData\Anaconda3\pkgs\jupyter_contrib_nbextensions-0.5.1-pyhd8ed1ab_2
appears to be corrupted. The path 'site-packages/jupyter_contrib_nbextensions/nbconvert_support/toc2.py'
has an incorrect size.
  reported size: 1842 bytes
  actual size: 1843 bytes

done
Executing transaction: |
\ Enabling: jupyter_nbextensions_configurator
- Writing config: C:\ProgramData\Anaconda3\envs\jlab_elyra\etc\jupyter
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 ok
Enabling notebook nbextension nbextensions_configurator/config_menu/main...
Enabling tree nbextension nbextensions_configurator/tree_tab/main...

done