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

Wrong type used for argument in ServerQuerier? #30

Closed Naoto-Ida closed 9 years ago

Naoto-Ida commented 9 years ago
MAGIC_PREFIX = bytearray.fromhex("FEFD")
TypeError: fromhex() argument 1 must be unicode, not str

What would be the problem?

winny- commented 9 years ago

Can you share your interpreter version? python --version or import sys; print(sys.version)

I can't seem to create the error condition in cPython 2.7 or 3.4.

petbadger commented 9 years ago

I get the exact same error in Python 2.6.1.

Works fine in Python 2.7.6.

winny- commented 9 years ago

Looking at the setup.py, 2.6.x isn't supported.

petbadger commented 9 years ago

That explains that! Thanks for clarifying!

Naoto-Ida commented 9 years ago

Yes, sorry for not clarifying that.

connorlurring commented 9 years ago

@Naoto-Ida close issue?

Naoto-Ida commented 9 years ago

@WeeSkilz Sorry, I'll close it.