Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[development environment]: Module not found error for ipykernel-6.9.2 #958

Closed
savakarrohan opened this issue Jan 25, 2023 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@savakarrohan
Copy link

Description

I made a new local clone of the repository and created a new environment using the binder details mentioned in the documentation.
located here
There appears to be a module versioning error, that occurs when I run the command yarn bootstrap

Reproduce

  • New clone of the repository
  • change the working directory to the repository
  • conda env update --file .binder/environment.yml
  • conda activate jupyterlite-dev
  • yarn bootstrap

Error log

lerna info filter [ '@jupyterlite/app' ]

> @jupyterlite/app:build

$ webpack
@jupyterlite/app: [webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve '../pypi/ipykernel-6.9.2-py3-none-any.whl' in 'D:\StockWhiz\StockWhiz_DevFiles\jupyterlite\packages\pyolite-kernel\lib'
@jupyterlite/app:     at D:\StockWhiz\StockWhiz_DevFiles\jupyterlite\node_modules\webpack\lib\Compilation.js:2016:28
@jupyterlite/app:     at D:\StockWhiz\StockWhiz_DevFiles\jupyterlite\node_modules\webpack\lib\NormalModuleFactory.js:798:13

Diagnosis

There is an installation of ipykernel @ version ~6.20.2
So ipykernel is being added but this requires version 6.9.2 so the command below will replace the above version
I ran the command

  • pip install ipykernel==6.9.2

Expected behavior

  • Correct version of ipykernel to be installed.
  • No extra installations required.

Solution

Add ipykernel==6.9.2 to the binder environment.yml file.

@savakarrohan savakarrohan added the bug Something isn't working label Jan 25, 2023
@savakarrohan
Copy link
Author

savakarrohan commented Jan 25, 2023

I would also like to point that I have the following error when running doit post environment installation

  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\site-packages\doit\action.py", line 461, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "D:\StockWhiz\StockWhiz_DevFiles\jupyterlite\py\jupyterlite\src\jupyterlite\addons\base.py", line 306, in extract_one
    shutil.rmtree(dest)
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 749, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 614, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 614, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 614, in _rmtree_unsafe
    _rmtree_unsafe(fullname, onerror)
  [Previous line repeated 5 more times]
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 619, in _rmtree_unsafe
    onerror(os.unlink, fullname, sys.exc_info())
  File "C:\ProgramData\miniconda3\envs\jupyterlite-dev\lib\shutil.py", line 617, in _rmtree_unsafe
    os.unlink(fullname)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'D:\\StockWhiz\\StockWhiz_DevFiles\\jupyterlite\\examples\\.cache\\archives\\jupyterlab_miami_nights-0.3.2-pyhd8ed1ab_0.tar.bz2\\share\\jupyter\\labextensions\\@timkpaine\\jupyterlab_miami_nights\\themes\\@timkpaine\\jupyterlab_miami_nights\\3b5adc929c114d1cd0fc91cd735847b6.ttf'

I tried deleting the cached library to no avail

@bollwyvl
Copy link
Collaborator

bollwyvl commented Jan 25, 2023 via email

@savakarrohan
Copy link
Author

savakarrohan commented Jan 25, 2023

Solved

Thank you so much, this definetly worked,
For completion's sake, I will add some comments here


Path too long

On Windows one can change the registry editor settings as follows

  • win+r and type regedit to open registry editor,
  • Navigate to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled
  • double click and set the value to 1
  • if LongPathsEnabled is not available create a new DWORD(32-bit) value using right click

doit

doit build should be run first before any yarn tasks

Should I add these comments to part of the contributing guide? just in case?
#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants