Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

Error when importing. #33

Closed minecrafttechwiz closed 9 years ago

minecrafttechwiz commented 9 years ago

When I run "from mcstatus import MinecraftServer", it says: "ImportError: No module named 'six'"

winny- commented 9 years ago

How did you install mcstatus?

minecrafttechwiz commented 9 years ago

First of all, I have a Windows 8.

  1. Install Python.
  2. Download source.
  3. Installed by doing: setup.py install Any other detail, you can request.
winny- commented 9 years ago

Can you verify you have the module 'six' installed?

minecrafttechwiz commented 9 years ago

How can I do that?

minecrafttechwiz commented 9 years ago

Actually, imported all the modules, which were six and dns. Now its doing its thing. Next time, maybe have the modules included?

winny- commented 9 years ago

It turns oun mcstatus's setup.py uses distutils which doesn't check for dependencies. Ideally it should use something like setuptools.

However, in general, you should take a look at pip which is relatively straight forward to install on windows. Then you can install mcstatus and dependencies like this: pip install mcstatus