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: deepmind_lab.so: undefined symbol: PyString_Type error occurred when I was running DeepMind Lab #227

Open
o00000o opened this issue Oct 16, 2021 · 5 comments

Comments

@o00000o
Copy link

o00000o commented Oct 16, 2021

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

@tkoeppe
Copy link
Collaborator

tkoeppe commented Oct 16, 2021

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?

@o00000o
Copy link
Author

o00000o commented Oct 17, 2021

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屏幕截图

@tkoeppe
Copy link
Collaborator

tkoeppe commented Oct 19, 2021

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)

@o00000o
Copy link
Author

o00000o commented Oct 19, 2021

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

@tkoeppe
Copy link
Collaborator

tkoeppe commented Oct 19, 2021

Ah, very good, I'm glad!

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

2 participants