fogleman / Minecraft

Simple Minecraft-inspired program using Python and Pyglet
MIT License
5.22k stars 1.23k forks source link

ImportError: No module named 'future' -Python 3.5 #65

Closed mfonner closed 8 years ago

mfonner commented 8 years ago

Error cut and pasted:

Failed to get python-future
Traceback (most recent call last):
  File "C:\Python3.5\lib\site-packages\pyglet\__init__.py", line 44, in <module>
    import future
ImportError: No module named 'future'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 6, in <module>
    from pyglet import image
  File "C:\Python3.5\lib\site-packages\pyglet\__init__.py", line 56, in <module>
    import future
ImportError: No module named 'future'`
progval commented 8 years ago

This bug should be filed against pyglet.

mfonner commented 8 years ago

Will do, thanks!

progval commented 8 years ago

Hmm, actually, I don't know where the Failed to get python-future comes from

progval commented 8 years ago

Have you tried pip install python-future?

mfonner commented 8 years ago

I'm running that now and will let you know.

mfonner commented 8 years ago

Installed Future and now there is an error with xrange:

Traceback (most recent call last):
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 894, in <module>
    main()
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 886, in main
    window = Window(width=800, height=600, caption='Pyglet', resizable=True)
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 480, in __init__
    self.model = Model()
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 150, in __init__
    self._initialize()
  File "C:\Users\mfonner12\Downloads\Minecraft-master\main.py", line 159, in _initialize
    for x in xrange(-n, n + 1, s):
NameError: name 'xrange' is not defined
progval commented 8 years ago

I wrote these fixes awhile ago for Python 3, you can try them: https://github.com/fogleman/Minecraft/compare/master...ProgVal:python3

mfonner commented 8 years ago

Perfect! Thank you.