Closed xlla closed 2 years ago
I found the reason that libgrpc_csharp_ext.dylib can't be load, it reference to a non-exist lib.
otool -L /Users/xlla/git/ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/osx/native/libgrpc_csharp_ext.x64.bundle
/Users/xlla/git/ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/osx/native/libgrpc_csharp_ext.x64.bundle:
/Users/christophergoy/code/ml-agents-grpc/cmake/build/libgrpc_csharp_ext.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.100.5)
/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)
So, where can I found this lib "/Users/christophergoy/code/ml-agents-grpc/cmake/build/libgrpc_csharp_ext.dylib", or how can I build it for use?
Do you happen to have an M1?
If so you may be able to install libgrpc_csharp_ext.dylib manually with this: https://github.com/einari/Grpc.Core.M1
If not we'll have to look at different solutions
hi @AKemendo , I am using x86_64 arch apple. I'd like to build that lib from source, but I don't where the source code based on and which version it depend on.
I'v manage to built the libgrpc_csharp_ext.dylib for x86_64 arch and rename it to
ml-agents/com.unity.ml-agents/Plugins/ProtoBuffer/runtimes/osx/native/libgrpc_csharp_ext.x64.bundle
it works now.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug I want to train hummingbird using ml-agents, I have launched trainer.
2022-06-25 01:33:49 INFO [environment.py:222] Listening on port 5004. Start training by pressing the Play button in the Unity Editor.
but Unity pop up a message on status bar, said "Couldn't connect to trainer on port 5004 using API version 1.5.0. ". I can telnet into localhost 5004, so the server is ready.
To Reproduce Steps to reproduce the behavior:
mlagents-learn config/trainer_config.yaml --run-id hb_01
Console logs / stack traces
In Unity Console, the detail messages is:
I have check the libgrpc_csharp_ext.x64.bundle, it's a fat binary format with arm64. Can I build it for my current macOS version? or how to debug it to find the failure reason? thanks for any hint.
Screenshots
Environment (please complete the following information):