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

Homebrew: unable to install package #52

Open
stariy95 opened this issue Oct 18, 2024 · 1 comment
Open

Homebrew: unable to install package #52

stariy95 opened this issue Oct 18, 2024 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@stariy95
Copy link
Member

Tried to install JJava with homebrew, and got this:

==> jupyter kernelspec install /private/tmp/jjava-20241015-59889-g6si40 --config=/private/tmp/jjava-20241015-59889-g6si40/kernel.json --sys-pref
Last 15 lines from /Users/ntimofeev/Library/Logs/Homebrew/jjava/01.kernel.json:
 File "/opt/homebrew/Cellar/jupyterlab/4.2.5_1/libexec/lib/python3.12/site-packages/jupyter_client/kernelspecapp.py", line 337, in start
  return self.subapp.start()
      ^^^^^^^^^^^^^^^^^^^
 File "/opt/homebrew/Cellar/jupyterlab/4.2.5_1/libexec/lib/python3.12/site-packages/jupyter_client/kernelspecapp.py", line 152, in start
  self.kernel_spec_manager.install_kernel_spec(
 File "/opt/homebrew/Cellar/jupyterlab/4.2.5_1/libexec/lib/python3.12/site-packages/jupyter_client/kernelspec.py", line 406, in install_kernel_spec
  shutil.copytree(source_dir, destination)
 File "/opt/homebrew/Cellar/[email protected]/3.12.7_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 600, in copytree
  return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/opt/homebrew/Cellar/[email protected]/3.12.7_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/shutil.py", line 498, in _copytree
  os.makedirs(dst, exist_ok=dirs_exist_ok)
 File "<frozen os>", line 215, in makedirs
 File "<frozen os>", line 225, in makedirs
PermissionError: [Errno 1] Operation not permitted: '/opt/homebrew/Cellar/jupyterlab/4.2.5_1/libexec/share/jupyter/kernels'
@stariy95 stariy95 added this to the 1.0-a5 milestone Oct 18, 2024
@stariy95 stariy95 added the bug Something isn't working label Oct 18, 2024
@stariy95
Copy link
Member Author

In my case there's just no kernels folder:

pwd
/opt/homebrew/Cellar/jupyterlab/4.2.5_1/libexec/share/jupyter

ls
drwxr-xr-x  5 ntimofeev  admin   160B Feb  2  2020 .
drwxr-xr-x  6 ntimofeev  admin   192B Feb  2  2020 ..
drwxr-xr-x  5 ntimofeev  admin   160B Feb  2  2020 lab
drwxr-xr-x  4 ntimofeev  admin   128B Feb  2  2020 labextensions
drwxr-xr-x  3 ntimofeev  admin    96B Feb  2  2020 nbconvert

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

1 participant