-
Notifications
You must be signed in to change notification settings - Fork 155
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
TypeError: a bytes-like object is required, not 'NoneType' #750
Comments
Hey. Could you paste exactly what command you used to install MineRL, what you run (exactly) and the full output log? We have not shared any prebuilt docker images, only the Dockerfile for building an image, but that has not been updated in a while. You should use the instructions in the README of this repo. |
Hi, thanks for replying, I just built another conda environment and the error persists. I ran installation of JDK8 beforehand with :
log output
test.py
|
Hi, just wondering if there is any available docker image with MineRL installed that we could use. |
@CooLeee Sorry for the delay. There is no prebuilt image of MineRL itself from the MineRL team, although someone might somewhere have a prebuilt image for this. Check e.g., MineDojo. |
@CooLeee |
Hi , I have this issue when running on the docker image built for BASLAT2022. I also checked MineRL Java and JDK versions. running other MineRL environments on this iage like HumanSurvival or MineRLBasaltFindCave does't has this issue.
test.py :
import gym
import minerl
env = gym.make("MineRLNavigate-v0") # A MineRLNavigate-v0 env
obs = env.reset()
print('done reset'+'*'*100) # the reset was never finished
log output :
root@3b815afc0403:/home/project# pip show minerl
Name: minerl
Version: 1.0.0
Summary: MineRL environment and data loader for reinforcement learning from human demonstration in Minecraft
Home-page: http://github.com/minerllabs/minerl
Author: MineRL Labs
Author-email: minerl@andrew.cmu.edu
License: MIT
Location: /home/aicrowd/.conda/envs/minerl/lib/python3.7/site-packages
Requires: coloredlogs, daemoniker, dill, flaky, getch, gym, imagehash, inflection, ipython, jinja2, lxml, numpy, opencv-python, pillow, psutil, pyglet, Pyro4, requests, setuptools, tqdm, typing, xmltodict
Required-by:
root@3b815afc0403:/home/project# java -version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (build 1.8.0_362-8u372-ga~us1-0ubuntu1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.362-b09, mixed mode)
root@3b815afc0403:/home/project# javac -version
javac 1.8.0_362
root@3b815afc0403:/home/project# dpkg --list | grep -i java
ii ca-certificates-java 20180516ubuntu1~18.04.1 all Common CA certificates (JKS keystore)
ii java-common 0.68ubuntu1~18.04.1 all Base package for Java runtimes
ii libatk-wrapper-java 0.33.3-20ubuntu0.1 all ATK implementation for Java using JNI
ii libatk-wrapper-java-jni:amd64 0.33.3-20ubuntu0.1 amd64 ATK implementation for Java using JNI (JNI bindings)
ii openjdk-8-jre:amd64 8u372-ga~us1-0ubuntu1~18.04 amd64 OpenJDK Java runtime, using Hotspot JIT
ii openjdk-8-jre-headless:amd64 8u372-ga~us1-0ubuntu1~18.04 amd64 OpenJDK Java runtime, using Hotspot JIT (headless)
root@3b815afc0403:/home/project# xvfb-run python3 test.py
/home/aicrowd/.conda/envs/minerl/lib/python3.7/runpy.py:125: RuntimeWarning: 'minerl.utils.process_watcher' found in sys.modules after import of package 'minerl.utils', but prior to execution of 'minerl.utils.process_watcher'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
Traceback (most recent call last):
File "test.py", line 11, in
obs = env.reset()
File "/home/aicrowd/.conda/envs/minerl/lib/python3.7/site-packages/gym/wrappers/time_limit.py", line 27, in reset
return self.env.reset(**kwargs)
File "/home/aicrowd/.conda/envs/minerl/lib/python3.7/site-packages/minerl/env/_singleagent.py", line 22, in reset
multi_obs = super().reset()
File "/home/aicrowd/.conda/envs/minerl/lib/python3.7/site-packages/minerl/env/_multiagent.py", line 446, in reset
self._send_mission(self.instances[0], agent_xmls[0], self._get_token(0, ep_uid)) # Master
File "/home/aicrowd/.conda/envs/minerl/lib/python3.7/site-packages/minerl/env/_multiagent.py", line 606, in _send_mission
ok, = struct.unpack("!I", reply)
TypeError: a bytes-like object is required, not 'NoneType'
The text was updated successfully, but these errors were encountered: