question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnsatisfiedLinkError on Mac

See original GitHub issue

On 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
devcrocodcommented, Jan 27, 2020

Run in terminal python -m pip install ktnumpy to 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.

0reactions
devcrocodcommented, May 11, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found