Giter VIP home page Giter VIP logo

Comments (3)

r58Playz avatar r58Playz commented on July 21, 2024

Traceback (most recent call last):
File "main.py", line 18, in
from pyglet.gl import *
File "C:\Python27\lib\site-packages\pyglet\gl_init_.py", line 239, in
import pyglet.window
File "C:\Python27\lib\site-packages\pyglet\window_init_.py", line 1896, in
gl.create_shadow_window()
File "C:\Python27\lib\site-packages\pyglet\gl_init
.py", line 208, in create_shadow_window
shadow_window = Window(width=1, height=1, visible=False)
File "C:\Python27\lib\site-packages\pyglet\window\win32_init
.py", line 134, in init
super(Win32Window, self).init(*args, **kwargs)
File "C:\Python27\lib\site-packages\pyglet\window_init
.py", line 501, in init
display = get_platform().get_default_display()
File "C:\Python27\lib\site-packages\pyglet\window_init_.py", line 1845, in get_default_display
return pyglet.canvas.get_display()
File "C:\Python27\lib\site-packages\pyglet\canvas_init_.py", line 77, in get_display
from pyglet.app import displays
File "C:\Python27\lib\site-packages\pyglet\app_init_.py", line 154, in
from pyglet.app.base import EventLoop
File "C:\Python27\lib\site-packages\pyglet\app\base.py", line 4, in
standard_library.install_aliases()
File "C:\Python27\lib\site-packages\future\standard_library_init_.py", line 459, in install_aliases
import(oldmodname)
File "C:\Users\toshi\Minecraft-master\Minecraft-master\commands.py", line 12, in
from blocks import BlockID
File "C:\Users\toshi\Minecraft-master\Minecraft-master\blocks.py", line 17, in
from utils import load_image, make_nbt_from_dict, extract_nbt
File "C:\Users\toshi\Minecraft-master\Minecraft-master\utils.py", line 12, in
import globals as G
File "C:\Users\toshi\Minecraft-master\Minecraft-master\globals.py", line 20, in
from pyglet.resource import get_settings_path
File "C:\Python27\lib\site-packages\pyglet\resource.py", line 88, in
standard_library.install_aliases()
File "C:\Python27\lib\site-packages\future\standard_library_init_.py", line 462, in install_aliases
obj = getattr(oldmod, oldobjname)
AttributeError: 'module' object has no attribute 'getoutput'

from minecraft.

Nebual avatar Nebual commented on July 21, 2024

Hmm, amusing how errors can grow in stale projects purely from the passage of time...

As python2.7 enters its final hours, it seems the futures library has started backporting many of Python3's features back to Python2.7 to ease the transition, including renaming several methods from the deprecated 2.7 https://docs.python.org/2/library/commands.html module to follow their Python3 naming conventions. Pyglet uses part of futures, and we use Pyglet. We had a module named commands.py which conflicted with the official one - a simple rename has allowed this ancient project to boot again, though I wouldn't be surprised if it needed more updating.

I'm slightly tempted to rewrite it in Python3, assuming all the dependencies have Python3 equivalents...

from minecraft.

r58Playz avatar r58Playz commented on July 21, 2024

True. You should rewrite it, to keep the project running.

from minecraft.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.