Installation Error: "NameError: name 'CoreConfig' is not defined"
See original GitHub issueSystem: Ubuntu 16.04
When I run the installation
jupyter labextension install jupyterlab-spreadsheet
in my Python 3.5.2 virtualenv I get the error:
An error occured. NameError: name 'CoreConfig' is not defined See the log file for details: /tmp/jupyterlab-debug-05zbv00j.log
The log in that location outputs
Traceback (most recent call last):
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/commands.py”, line 1657, in _node_check output = subprocess.check_output([node, ‘node-version-check.js’], cwd=HERE)
File “/usr/lib/python3.5/subprocess.py”, line 626, in check_output **kwargs).stdout
File “/usr/lib/python3.5/subprocess.py”, line 708, in run output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/usr/bin/nodejs’, ‘node-version-check.js’]’ returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/debuglog.py”, line 47, in debug_logging yield
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/labextensions.py”, line 93, in start ans = self.run_task()
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/labextensions.py”, line 147, in run_task for i, arg in enumerate(self.extra_args)
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/labextensions.py”, line 147, in <listcomp> for i, arg in enumerate(self.extra_args)
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/commands.py”, line 319, in install_extension _node_check(logger)
File “/home/skyler/Documents/NN/tf/lib/python3.5/site-packages/jupyterlab/commands.py”, line 1660, in _node_check data = CoreConfig()._data
NameError: name ‘CoreConfig’ is not defined
Exiting application: jupyter
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Solved! That’s because the version of nodejs is low…My version is v4.2.6, I thought I install the newest, but that’s not true, everything is ok when i upgrade to v10.16.3
Hi you can update your nodejs to solve this problem by this simple code
conda install -c conda-forge nodejs
this code is from the official jupyter lab document. https://jupyterlab.readthedocs.io/en/stable/user/extensions.html