UnsatisfiedLinkError on Mac
See original GitHub issueOn version 0.1.3 on Mac I’m getting the following error 😬 :
java.lang.UnsatisfiedLinkError: org.jetbrains.numkt.Interpreter.callFunc$kotlin_numpy([Ljava/lang/String;[Ljava/lang/Object;Ljava/util/Map;)Lorg/jetbrains/numkt/core/KtNDArray;
at org.jetbrains.numkt.Interpreter.callFunc$kotlin_numpy(Native Method)
at org.jetbrains.numkt.UtilsKt.callFunc(Utils.kt:38)
at org.jetbrains.numkt.UtilsKt.callFunc$default(Utils.kt:36)
at myCode.matmul(myCode.kt:42)
Unfortunately I can’t replicate this in my clean skeleton project, because there it appears the python setup is failing:
java.lang.Exception: "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/x9/sm6f5rgx4y9cqlcv6wxttvzjn76hsr/T/pip-install-knc9um2g/ktnumpy/" when executing the command: python -m pip install ktnumpy
I’ll be switching to Anaconda in the meantime while exploring this. Thanks for all the quick responses.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Java Library Path - UnsatisfiedLinkError on Mac - Stack Overflow
The UnsatisfiedLinkError is thrown when an application attempts to load a native library like .so in Linux, .dll on Windows or .dylib in ......
Read more >java.lang.UnsatisfiedLinkError on Apple macOS Big Sur ...
On a project with sbt-dotenv version 2.1.204, there seems to be an issue during sbt startup. I'm getting an java.lang.UnsatisfiedLinkError ...
Read more >java.lang.UnsatisfiedLinkError on Mac OS X with 2.4.16
Hello, I've downloaded the latest version of DBXML (2.4.16) and built with the following options: "buildall.sh --enable-java –b 64"
Read more >Mac OS: java.lang.UnsatisfiedLinkError: no FloatingPoints
I am trying to run CPAchecker on a MacOS--it would be more > convenient as some other parts of my tool chain currently...
Read more >UnsatisfiedLinkError when loading native libraries on MacOS ...
UnsatisfiedLinkError when loading native libraries on MacOS Catalina ... It appears to be related to the following (Adopt)OpenJdk issue: https://github.com/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Run in terminal
python -m pip install ktnumpyto get a detail error and send it, please.I have not updated the readme file yet. On version 0.1.3 pypi is used to distribute the native library to support python not from anaconda. When installing from pypi, the library is built and linked with libpython, but this will require the c compiler. On Mac Os, you can install and update Xcode to get clang or any other way to install compiler.
@amolgupta Library couldn’t load the native library.
Please write your environments. What version of library are you using? What is the operating system? Which python? kotlin_kernel version? To check whether the native library is installed, enter the following command in the terminal:
pip show ktnumpy.