arpruss / raspberryjammod

Raspberry Jam Mod - a Mod Forge Minecraft mod implementing most of Raspberry Juice/Pi API
http://www.instructables.com/id/Python-coding-for-Minecraft/
Other
354 stars 94 forks source link

NameError: name 'security' is not defined #10

Closed frjaraur closed 8 years ago

frjaraur commented 8 years ago

Tying to use raspberryjammod on non-bukkit server. I followed install instructions and located code asking for security, but I don't really know how to avoid this error (install issue or needs another module??). Traceback (most recent call last): File "helloworld.py", line 5, in mc = minecraft.Minecraft() File "/home/user/.minecraft/mcpipy/mcpi/minecraft.py", line 193, in init if security.AUTHENTICATION_USERNAME and security.AUTHENTICATION_PASSWORD: NameError: name 'security' is not defined

Many Thanks, Javier R.

arpruss commented 8 years ago

Can you get the latest pythonX-scripts/mcpipy/mcpi/minecraft.py from the repository and see if the problem persists? I think I fixed the bug.

frjaraur commented 8 years ago

Many Thanks, Great work, I added to my dockerized minecraft project as and option if users use it with your mod (https://github.com/frjaraur/DockerizedMinecraftServer). Regards, Javier R.