Thanks for catching the missing /lib64
!
I corrected the LD_LIBRARY_PATH
path and rerun python register.py --sys-prefix --swift-python-use-conda --use-conda-shared-libs --swift-toolchain ~/swift
with the following output:
kernel.json:
{
"argv": [
"/home/user/anaconda3/bin/python",
"/home/user/Documents/swift-jupyter/parent_kernel.py",
"-f",
"{connection_file}"
],
"display_name": "Swift",
"language": "swift",
"env": {
"PYTHONPATH": "/home/user/swift/usr/lib/python3.7/site-packages",
"LD_LIBRARY_PATH": "/home/user/swift/usr/lib/swift/linux:/home/user/anaconda3/lib",
"REPL_SWIFT_PATH": "/home/user/swift/usr/bin/repl_swift",
"SWIFT_BUILD_PATH": "/home/user/swift/usr/bin/swift-build",
"SWIFT_PACKAGE_PATH": "/home/user/swift/usr/bin/swift-package",
"PYTHON_LIBRARY": "/home/user/anaconda3/lib/libpython3.7m.so"
}
}
Registered kernel 'Swift' as 'swift'!
I guess the output looks correct?
However, I still get the same error when running swift
in the shell and the kernel in jupyter notebook still behaves as a normal python kernel.
In addition I tried that:
Because you mentioned that you have a cuda-10.0
in /usr/local/
directory I created a symlink with this name there which links to the cuda-10.1
directory but this didn’t help.