Hi, I’m trying to set up the dev environment for jupyterlab. I’m on a windows machine and I am following the set up guide. I am stuck on the step
pip install -e ".[dev,test]"
and get the following error:
at Object.symlinkSync (node:fs:1653:3)
at C:\Users\Justeen\jupyterlab\buildutils\lib\ensure-repo.js:587:16
at Array.forEach (<anonymous>)
at ensureBuildUtils (C:\Users\Justeen\jupyterlab\buildutils\lib\ensure-repo.js:574:31)
at ensureIntegrity (C:\Users\Justeen\jupyterlab\buildutils\lib\ensure-repo.js:774:5)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
errno: -4048,
syscall: 'symlink',
code: 'EPERM',
path: 'C:\\Users\\Justeen\\jupyterlab\\builder\\lib\\build-labextension.js',
dest: 'C:\\Users\\Justeen\\jupyterlab\\node_modules\\.bin\\build-labextension'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Traceback (most recent call last):
File "c:\users\justeen\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 177, in prepare_metadata_for_build_editable
hook = backend.prepare_metadata_for_build_editable
AttributeError: module 'hatchling.build' has no attribute 'prepare_metadata_for_build_editable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\justeen\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\users\justeen\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\justeen\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 186, in prepare_metadata_for_build_editable
whl_basename = build_hook(metadata_directory, config_settings)
File "C:\Users\Justeen\AppData\Local\Temp\pip-build-env-55xaq875\overlay\Lib\site-packages\hatchling\build.py", line 61, in build_editable
return os.path.basename(next(builder.build(wheel_directory, ['editable'])))
File "C:\Users\Justeen\AppData\Local\Temp\pip-build-env-55xaq875\overlay\Lib\site-packages\hatchling\builders\plugin\interface.py", line 136, in build
build_hook.initialize(version, build_data)
File "C:\Users\Justeen\AppData\Local\Temp\pip-build-env-55xaq875\normal\Lib\site-packages\hatch_jupyter_builder\plugin.py", line 75, in initialize
build_func(self.target_name, version, **build_kwargs)
File "C:\Users\Justeen\jupyterlab\buildapi.py", line 21, in builder
npm_builder(target_name, version, *args, **kwargs)
File "C:\Users\Justeen\AppData\Local\Temp\pip-build-env-55xaq875\normal\Lib\site-packages\hatch_jupyter_builder\utils.py", line 116, in npm_builder
run(npm_cmd + ["run", build_cmd], cwd=str(abs_path))
File "C:\Users\Justeen\AppData\Local\Temp\pip-build-env-55xaq875\normal\Lib\site-packages\hatch_jupyter_builder\utils.py", line 225, in run
return subprocess.check_call(cmd, **kwargs)
File "c:\users\justeen\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files\\nodejs\\node.EXE', 'jupyterlab/staging/yarn.js', 'run', 'build']' returned non-zero exit status 1.
[end of output]```
python version: 3.9
pip version: 22.2.2