-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
An error occurred when running Bazel to build the PIP package script and install all DeepMind Lab dependencies #223
Comments
Hm, it works for me now, could you just try again? Maybe run |
What do you mean? Can you describe it more clearly?The second is the dependency package I installed, I don't know if there is any missing, I have tried 3 times.Can you help me? |
Hi, I ran into a few errors myself and found a few workarounds to finally get this thing installed. Below are the notes I made for myself -- maybe they are also helpful for you or anyone to come. This is for Python 3, should you for some reason require the Python 2.7 module, you can simply exchange py3 with py2 at the respective places. Disclaimer: I have not yet tested whether the resulting module actually works. Installing DeepMind Lab as a Python Module: Generally, you can follow the instructions in the GitHub Repo: However, by default, I encountered a few errors. To avoid these you may want to use these tips:
Now, it turns out that for compilation the numpy headers of numpy for Python2.7 are required. So we need to get those from somewhere (maybe it works with Python 3 as well but I wouldn't know which flag to set or button to press). First, I had to install Python 2.7 using
Activated it and installed numpy:
I did all of this in the DM Lab folder ( Now to the complicated part: The header files need to be discovered by the C-compiler (gcc in this case). Luckily, there is this thread on GitHub asking for exactly this. Three steps:
Final note: When finally installing the pip module, the filename is spelled differently than in the GitHub instructions (not the upper case DeepMind_Lab instead of lower case):
* other dependencies I had to install from the apt-repo are: |
@o00000o: can you please describe the error in words rather than with a context-free screenshot? All I was were errors downloading libjpeg, which I can't reproduce. If you have other problems, can you please describe them in some detail? |
Thank you very much. This problem has been bothering me for several days, but there is a new error when I run the "pip install -e ." command. Could you please help me? |
Thank you very much, but there is a new problem running command "pip install -e ." |
Hm, I'm not sure right now if the PY2 version still works. DeepMind Lab should support PY2, but it's possible that other dependencies have dropped support. Coud you try the PY3 version first? Regarding Numpy: there is indeed an issue in principle that you should compile DeepMind Lab against the native Numpy headers that are part of the actual system you'll use at runtime, which, if you're in virtualenv, might come from a PIP-installation. In principle there could be conflicts if you also have a system-wide installation of numpy that's different from the one pip would install. Our current Bazel build rules pick the version that's found by the Python interpreter that Bazel runs (https://github.com/deepmind/lab/blob/cf2f5250e1a00ecce37b3480df28c3a5dcd08b57/python_system.bzl#L42-L43). |
Thank you very much. I have solved the problem yesterday.But I have a new error when I install episodic curiosity and its pip dependencies with "pip install -e ." command. Can you help me? |
@tkoeppe thanks for the hint with the Bazel build rule. It might be that my Bazel command uses the system Python which is essentially a clean installation as I exclusively use virtual environments... however, the headers it required always seemed to be from a numpy version that works with Python 2. Hence, my instruction. But I haven't used Bazel before so I might just be doing something wrong. @o00000o regarding your screenshot, my guess is that there is a problem with the opencv-python module version. My recommendation is to head into Generally, tkoeppe is right, that you should probably try to directly use Python 3. Are there instructions somewhere for this? Out of the box, it seems like that at least the dependencies need to be edited for this. |
Thank you very much, I installed with Py2 successfully, but I made a syntax error when running the code. I think the code does not support Py2, so I installed with Py3 again, and there is a new problem in bazel build -c opt python/pip_package:build_pip_package, can you help me? |
Thank you very much for your help in installing and configuring my environment.ow I am using Anaconda to create virtual environment with PY3.7. There is an enum module problem in the installation process. Could you please help me, or have you ever met similar problems before.I have read a lot of information online that enum34 and PY3.7 encapsulate the enum module conflict, but I did not install enum34 module |
hi,Thank you so much for helping me before.Have you ever encountered this problem RuntimeError: Failed to connect RL API.If so, please help me |
The text was updated successfully, but these errors were encountered: