Skip to content

java running error on mac system #36

@chenhaoxiang

Description

@chenhaoxiang

Error message:
2023-08-12 22:29:31 INFO SmallvilleConfig:38 - Loading config.yaml...
2023-08-12 22:29:31 INFO SmallvilleConfig:29 - Loading prompts...
2023-08-12 22:29:32 INFO Smallville:39 - Starting server...
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot find TensorFlow native library for OS: darwin, architecture: aarch64. See https://github.com/tensorflow/tensorflow/tree/master/tensorflow/java/README.md for possible solutions (such as building the library from source). Additional information on attempts to find the native library can be obtained by adding org.tensorflow.NativeLibrary.DEBUG=1 to the system properties of the JVM.
at org.tensorflow.NativeLibrary.load(NativeLibrary.java:77)
at org.tensorflow.TensorFlow.init(TensorFlow.java:66)
at org.tensorflow.TensorFlow.(TensorFlow.java:70)
at org.tensorflow.SavedModelBundle.(SavedModelBundle.java:170)
at com.robrua.nlp.bert.Bert.load(Bert.java:152)
at com.robrua.nlp.bert.Bert.load(Bert.java:193)
at io.github.nickm980.smallville.math.SmallvilleMath.getBert(SmallvilleMath.java:14)
at io.github.nickm980.smallville.math.SmallvilleMath.loadBert(SmallvilleMath.java:21)
at io.github.nickm980.smallville.Smallville.main(Smallville.java:42)

Java17、mac、M1;

run io.github.nickm980.smallville.Smallville#main

Should I change the system to run?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions