google-deepmind / lab

A customisable 3D platform for agent-based AI research

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: deepmind_lab.so: undefined symbol: PyString_Type error occurred when I was running DeepMind Lab

o00000o opened this issue · comments

My configuration environment is ubuntu16.04 PY3.6 bazel as the latest version
2021-10-16 16-09-31屏幕截图

Hm, that does look a bit like a Python version confusion. Could you try the bazel run command with the additional flag --python_version=PY3?

Hm, that does look a bit like a Python version confusion. Could you try the bazel run command with the additional flag --python_version=PY3?

I think it's missing something,Because I could make a mistake directing the package,import deepmind_lab2021-10-17 17-47-53屏幕截图

Hm... this may be something rather silly, like bazel just using python as the interpreter, not python3. Would it at all be possible for you to change your system symlinks (e.g. for Debianesque systems there's a "python-is-python3" package that does that)?

Or, very simply, you can just run the program directly, not with bazel, after you built it:

python3 bazel-bin/python_random_agent [...]

Otherwise maybe try this idea: bazelbuild/bazel#4815 (comment)

Hm... this may be something rather silly, like bazel just using python as the interpreter, not python3. Would it at all be possible for you to change your system symlinks (e.g. for Debianesque systems there's a "python-is-python3" package that does that)?

Or, very simply, you can just run the program directly, not with bazel, after you built it:

python3 bazel-bin/python_random_agent [...]

Otherwise maybe try this idea: bazelbuild/bazel#4815 (comment)

Hello, thank you very much. I have solved this problem.It's all about numpy configuration.There's a solution to both of these #142 #223

Ah, very good, I'm glad!