Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1: undefined symbol: PyClass_Type #2

Open
hlhfhmt opened this issue Aug 24, 2022 · 0 comments

Comments

@hlhfhmt
Copy link

hlhfhmt commented Aug 24, 2022

I follow your setup and create a env nmprepr in anaconda. When i train the model, i get the following error:

`No personal conf_private.py found.
doodad not detected
CHECKPOINT is not defined in the os variables, it is required for model checkpointing.
Use home directory by default.
2022-08-24 11:15:14.882925 CST | Variant:
2022-08-24 11:15:14.891489 CST |
algorithm: sac
algorithm_kwargs:
batch_size: 256
max_path_length: 50
min_num_steps_before_training: 1000
num_epochs: 3000
num_eval_steps_per_epoch: 1000
num_expl_steps_per_train_loop: 1000
num_trains_per_train_loop: 1000
archi: pointnet
env_name: Narrow-64Pts-LocalSurfaceNormals-v0
log_dir: /home/lxc/narrow/seed0
mode: her
policy_kwargs:
hidden_dim: 256
n_layers: 3
qf_kwargs:
hidden_dim: 256
n_layers: 3
replay_buffer_kwargs:
fraction_goals_env_goals: 0
fraction_goals_rollout_goals: 0.19999999999999996
max_replay_buffer_size: 1000000
resume: false
seed: 0
trainer_kwargs:
alpha: 0.1
discount: 0.99
policy_lr: 0.0003
qf_lr: 0.0003
reward_scale: 1.0
soft_target_tau: 0.005
target_update_period: 1
use_automatic_entropy_tuning: true
version: normal

Start training...
Traceback (most recent call last):
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/lxc/nmprepr/nmp/train.py", line 140, in
main()
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/lxc/nmprepr/nmp/train.py", line 136, in main
sac(variant)
File "/home/lxc/nmprepr/nmp/launcher/sac.py", line 95, in sac
expl_env = gym.make(variant["env_name"])
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/gym/envs/registration.py", line 145, in make
return registry.make(id, **kwargs)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/gym/envs/registration.py", line 90, in make
env = spec.make(**kwargs)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/gym/envs/registration.py", line 59, in make
cls = load(self.entry_point)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/site-packages/gym/envs/registration.py", line 18, in load
mod = importlib.import_module(mod_name)
File "/home/lxc/anaconda3/envs/nmprepr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/lxc/nmprepr/mpenv/envs/narrow.py", line 12, in
from mpenv.envs.base import Base
File "/home/lxc/nmprepr/mpenv/envs/base.py", line 15, in
from mpenv.envs import utils
File "/home/lxc/nmprepr/mpenv/envs/utils.py", line 6, in
import eigenpy
File "/opt/ros/melodic/lib/python2.7/dist-packages/eigenpy/init.py", line 5, in
from .eigenpy_pywrap import *
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1: undefined symbol: PyClass_Type
`
I don't have method to solve it, hope to receive your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant