You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Instructions to install in macOS will fail when installing Python dependecies as described in the README #295
Homebrew and PIP no longer work to install IJavascript Python dependencies.
If you try to install packages with PIP, the installation will fail. When I run pip3 install zeromq I get the following error:
pip3 install pyzmq
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a Python library that isn't in Homebrew,
use a virtual environment:
python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install xyz
If you wish to install a Python application that isn't in Homebrew,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. You can install pipx with
brew install pipx
You may restore the old behavior of pip by passing
the '--break-system-packages' flag to pip, or by adding
'break-system-packages = true' to your pip.conf file. The latter
will permanently disable this error.
If you disable this error, we STRONGLY recommend that you additionally
pass the '--user' flag to pip, or set 'user = true' in your pip.conf
file. Failure to do this can result in a broken Homebrew installation.
Read more about this behavior here: <https://peps.python.org/pep-0668/>
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
This may also be the case for people running Linux Distributions.
Just throwing this out here in case anyone has the same problem
changed the title [-]Instructions to install in macOS no longer work[/-][+]Instructions to install in macOS will fail when installing Python dependecies as described in the README[/+]on Aug 30, 2024
It was not a report. It was a heads up in case other users encounter the same issue. The error I showed in the original report is what I got when installing pyzqm with pip. It did not work.
As I researched the issue I found out that Homebrew no longer lets you install packages to their python instllations using pip. You're now required to install to a virtual environment using pipx.
npm error /Users/username/Library/Caches/node-gyp/22.8.0/include/node/v8-local-handle.h:269:5: error: static assertion failed due to requirement 'std::is_base_of<v8::Value, v8::Data>::value': type check
Can you open a separate issue with your report? This will make your problem visible to developers. I don't think that the error you're experiencing is related to the documentation issue described here.
It was not a report. It was a heads up in case other users encounter the same issue. The error I showed in the original report is what I got when installing pyzqm with pip. It did not work.
As I researched the issue I found out that Homebrew no longer lets you install packages to their python instllations using pip. You're now required to install to a virtual environment using pipx.
I managed to install via using older node, but kernel fails to start:
Failed to start the Kernel.
/Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/node-gyp-build/node-gyp-build.js:60
throw new Error('No native build was found for ' + target + '\n loaded from: ' + dir + '\n')
^
Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=108 uv=1 libc=glibc node=18.20.5
loaded from: /Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/zeromq
at load.resolve.load.path (/Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/node-gyp-build/node-gyp-build.js:60:9)
at load (/Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/node-gyp-build/node-gyp-build.js:22:30)
at Object.<anonymous> (/Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/zeromq/binding.js:1:43)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/zeromq/lib/index.js:6:11)
Node.js v18.20.5.
View Jupyter [log](command:jupyter.viewOutput) for further detail
Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=108 uv=1 libc=glibc node=18.20.5
loaded from: /Users/andy/.nvm/versions/node/v18.20.5/lib/node_modules/ijavascript/node_modules/zeromq
??? I don't understand why it's looking for a build for the electron runtime.
@andynameistaken Let's assume the installation succeeded with an older version of node, but your system is launching the kernel with a different version (electron or otherwise), installing the kernelspec with full path may fix your problem, I'd try and install the kernelspec with the following:
Activity
[-]Instructions to install in macOS no longer work[/-][+]Instructions to install in macOS will fail when installing Python dependecies as described in the README[/+]n-riesco commentedon Sep 1, 2024
I don't recognise the commands you've run to install on macOS.
The instructions to install on macOS can be found here. It's likely they're obsolete, as I can't test them.
Please, could you follow them and post the error message you get? I'll try to help.
caraya commentedon Sep 1, 2024
It was not a report. It was a heads up in case other users encounter the same issue. The error I showed in the original report is what I got when installing pyzqm with pip. It did not work.
As I researched the issue I found out that Homebrew no longer lets you install packages to their python instllations using pip. You're now required to install to a virtual environment using pipx.
See Externally Managed Environments
The steps I took to get IJavascript working are:
brew install pkg-config zeromq pipx
pipx install --include-deps jupyter
pipx inject --include-apps --include-deps jupyter pyzmq
npm install -g ijavascript
ijsinstall
I already manage Node with NVM so I don't need to install it with Homebrew.
Since Jupyter is running on a virtual environment, there's no need to install Jupyter with Homebrew either
Youjin1985 commentedon Sep 12, 2024
I can't build with error
npm error /Users/username/Library/Caches/node-gyp/22.8.0/include/node/v8-local-handle.h:269:5: error: static assertion failed due to requirement 'std::is_base_of<v8::Value, v8::Data>::value': type check
caraya commentedon Sep 12, 2024
@Youjin1985
Can you open a separate issue with your report? This will make your problem visible to developers. I don't think that the error you're experiencing is related to the documentation issue described here.
andynameistaken commentedon Nov 27, 2024
andynameistaken commentedon Nov 28, 2024
I managed to install via using older node, but kernel fails to start:
Perhaps zeromq versions do not match
n-riesco commentedon Nov 30, 2024
andynameistaken commentedon Dec 10, 2024
Well I don't know either, problem still persists.
n-riesco commentedon Dec 13, 2024
@andynameistaken Let's assume the installation succeeded with an older version of node, but your system is launching the kernel with a different version (electron or otherwise), installing the kernelspec with full path may fix your problem, I'd try and install the kernelspec with the following: