sublee / trueskill

An implementation of the TrueSkill rating system for Python
https://trueskill.org/
Other
742 stars 112 forks source link

cannot import name imap (Python 3.3.2) #7

Closed emptor8 closed 10 years ago

emptor8 commented 10 years ago

Hi sublee,

Firstly, thanks for implementing a Python version of the Trueskill algorithm!

I'm unfortunately getting the following error when I try to import the trueskill library:

C:\test>python test.py Traceback (most recent call last): File "test.py", line 1, in import trueskill File "C:\Python33\lib\site-packages\trueskill-0.4.1-py3.3.egg\trueskillinit .py", line 12, in ImportError: cannot import name imap

Do you have any ideas as to what is wrong?

Thanks for your help!

ayust commented 10 years ago

trueskill appears to be written for Python 2.x without direct 3.x support. You could try running the 2to3 tool on it to get a version that might work for Python 3.x.

sublee commented 10 years ago

Hi @sponge8, Sorry for my delayed response. As @ayust said, you should use 2to3 to run TrueSkill in Python 3.