matthieu637 / lhpo

Lightweight HyperParameter Optimizer
MIT License
6 stars 2 forks source link

Can not find agent.so #1

Open huangjiancong1 opened 5 years ago

huangjiancong1 commented 5 years ago

bash scripts:

#!/bin/bash

export LANG=en_US.UTF-8
export OMP_NUM_THREADS=1
source /home/birl-spai-ubuntu14/anaconda2/bin/activate clustering
python -O /home/birl-spai-ubuntu14/ddrl/gym/run.py --goal-based --config=/home/birl-spai-ubuntu14/ddrl/gym/config.ini
# python /home/birl-spai-ubuntu14/ddrl/gym/run.py --goal-based

exit $?

command:

~/lhpo $ ./optimizer.bash ~/exp/continuous_bandit_perfect_critic

issue:

(clustering) birl-spai-ubuntu14@ubuntu-16 17:22:41 ~/lhpo 
$ ./optimizer.bash ~/exp/continuous_bandit_perfect_critic
Number of thread set to 1.
./run.bash  >& full.trace
FAILED : (/tmp/tmp.Awjb5lEb88)
{'save_best': False, 'render': False, 'view': False, 'test_only': False, 'capture': False, 'goal_based': True, 'load': None, 'config': '/home/birl-spai-ubuntu14/ddrl/gym/config.ini'}
State space: Box(31,)
- low: [-inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf
 -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf -inf
 -inf -inf -inf]
- high: [inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf inf
 inf inf inf inf inf inf inf inf inf inf inf inf inf]
Action space: Box(4,)
- low: [-1. -1. -1. -1.]
- high: [1. 1. 1. 1.]
Create agent with (nb_motors, nb_sensors) :  4 31
Traceback (most recent call last):
  File "/home/birl-spai-ubuntu14/ddrl/gym/run.py", line 214, in <module>
    DDRLAg=load_so_libray(config)
  File "/home/birl-spai-ubuntu14/ddrl/gym/agent.py", line 17, in load_so_libray
    lib = cdll.LoadLibrary(lib_path)
  File "/home/birl-spai-ubuntu14/anaconda2/envs/clustering/lib/python3.6/ctypes/__init__.py", line 426, in LoadLibrary
    return self._dlltype(name)
  File "/home/birl-spai-ubuntu14/anaconda2/envs/clustering/lib/python3.6/ctypes/__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/jim/ddrl/agent/cacla/lib/libddrl-hpenfac.so: cannot open shared object file: No such file or directory
1
matthieu637 commented 5 years ago

Does /home/jim/ddrl/agent/cacla/lib/libddrl-hpenfac.so exists?

Shouldn't it start by /home/birl-spai-ubuntu14/ in config.ini? Are you using NFS?