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

convert KeyError: 'blocks' #230

Closed
lucasfcnunes opened this issue Jul 4, 2019 · 4 comments
Closed

convert KeyError: 'blocks' #230

lucasfcnunes opened this issue Jul 4, 2019 · 4 comments

Comments

@lucasfcnunes
Copy link

lucasfcnunes commented Jul 4, 2019

I tried to run the example.py but it doesn't work (running in a pipenv):

(minecraft-BPM2hraK) (venvs_mgr)>python example.py
Traceback (most recent call last):
File "D:\Users\lucas\Desktop\CODING\py\minecraft\SpockBot\examples\basic\example.py", line 18, in
from example_plugin import ExamplePlugin
File "D:\Users\lucas\Desktop\CODING\py\minecraft\SpockBot\examples\basic\example_plugin.py", line 17, in
from spockbot.mcdata import blocks
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot_init
.py", line 3, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\plugins_init
.py", line 1, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\plugins\core\net.py", line 15, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\mcp\mcpacket.py", line 13, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\mcp\extensions.py", line 1, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\mcdata_init
.py", line 1, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\spockbot-0.2.0-py3.7.egg\spockbot\mcdata\blocks.py", line 3, in
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in load_backward_compatible
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\minecraft_data-0.4.0-py3.7.egg\minecraft_data\v1_8_init
.py", line 9, in
File "D:\Users\lucas.virtualenvs\minecraft-BPM2hraK\lib\site-packages\minecraft_data-0.4.0-py3.7.egg\minecraft_data\tools.py", line 9, in convert
KeyError: 'blocks'

Can someone help me?

##MORE INFO##
*Running on Windows 10 x64

python -V
Python 3.7.3

pip list
Package Version
asn1crypto 0.24.0
cffi 1.12.3
cryptography 2.7
entrypoints 0.3
flake8 3.7.7
mccabe 0.6.1
minecraft-data 0.4.0
pip 19.1.1
pycodestyle 2.5.0
pycparser 2.19
pyflakes 2.1.1
setuptools 41.0.1
six 1.12.0
spockbot 0.2.0
wheel 0.33.4

@Gjum
Copy link
Member

Gjum commented Jul 5, 2019

This project never got updated, so it won't work with the latest Minecraft version. See also #227

@Gjum Gjum closed this as completed Jul 5, 2019
@solsahar
Copy link

So I am trying to run the bot on Minecraft 1.8.9 and am still getting the error... Am I supposed to use an earlier version?

@nickelpro
Copy link
Member

minecraft-data on PyPi is over three years old, I have no idea how it used to work or what was supported for what version back then. I'm starting to ramp back up activity in the MC community again so perhaps I should rev the minecraft-data release, but I removed the API that spockbot uses awhile back so that still won't fix this bug

@solsahar
Copy link

Ok... I'm sad to hear ;(

Thanks for responding!

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

4 participants