Skip to content

Run Jupyter Integration on Windows #2589

Description

@duyguHsnHsn

Environment: 

Windows 11, Powershell, Python 3.10(Installed with Anaconda as recommended in https://github.com/vmware/versatile-data-kit/wiki/Installation#prerequisites)

Description: 

Try to install and run the VDK Jupyter integration, following the steps: 

#1: Install vdk python package 
pip install vdk-ipython

#2: Install vdk notebook package 
pip install vdk-notebook

#3: Install Jupyter Lab 3

pip install jupyterlab==3.6

#4: Install VDK Jupyterlab Extension 

Pull latest from https://github.com/vmware/versatile-data-kit/tree/main/projects/vdk-plugins/vdk-jupyter/vdk-jupyterlab-extension

      cd ..\versatile-data-kit\projects\vdk-plugins\vdk-jupyter\vdk-jupyterlab-extension
      npm ci
      pip install . 

#5: Run Jupyter Lab with the installed VDK Integration 

jupyter lab  

fails with:

  INFO:hatch_jupyter_builder.utils:> C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\overlay\Scripts\jlpm.EXE run build:prod
      yarn run v1.21.1
      warning package.json: License should be a valid SPDX license expression
      $ jlpm clean && jlpm build:lib && jlpm build:labextension
      warning package.json: License should be a valid SPDX license expression
      $ jlpm clean:lib
      warning package.json: License should be a valid SPDX license expression
      error An unexpected error occurred: "Cannot create property '-build-artifactory-eng-vmware-com-api-npm-taurus-npm-local-' on string '{"-build-artifactory-eng-vmware-com-api-npm-taurus-npm-local-":""}'".
      info If you think this is a bug, please open a bug report with the information provided in "C:\Work\Code\Taurus\versatile-data-kit\projects\vdk-plugins\vdk-jupyter\vdk-jupyterlab-extension\yarn-error.log".
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      error Command failed with exit code 1.
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
      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\sabadzhiev\demo-env\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
          main()
        File "C:\Users\sabadzhiev\demo-env\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\sabadzhiev\demo-env\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\overlay\Lib\site-packages\hatchling\build.py", line 56, in build_wheel
          return os.path.basename(next(builder.build(wheel_directory, ['standard'])))
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\overlay\Lib\site-packages\hatchling\builders\plugin\interface.py", line 150, in build
          build_hook.initialize(version, build_data)
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\normal\Lib\site-packages\hatch_jupyter_builder\plugin.py", line 87, in initialize
          raise e
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\normal\Lib\site-packages\hatch_jupyter_builder\plugin.py", line 82, in initialize
          build_func(self.target_name, version, **build_kwargs)
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\normal\Lib\site-packages\hatch_jupyter_builder\utils.py", line 115, in npm_builder
          run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
        File "C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\normal\Lib\site-packages\hatch_jupyter_builder\utils.py", line 229, in run
          return subprocess.check_call(cmd, **kwargs)
        File "C:\Users\sabadzhiev\AppData\Local\anaconda\lib\subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['C:\Users\sabadzhiev\AppData\Local\Temp\pip-build-env-469arcbd\overlay\Scripts\jlpm.EXE', 'run', 'build:prod']' returned non-zero exit status 1.
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

in step #4
Expected: 
The installation in step #4 is successful and the VDK menu in Jupyter lab is available and functional. 
Note: The console output from the operations(install-console-output.txt) and the pip list result(pip-list.txt) are attached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginitiative: VDK Notebooks BetaThis is all the work to accomplish the VDK notebooks beta integration

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions