Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencies issue #53

Open
ShivamKR12 opened this issue Dec 30, 2024 · 3 comments
Open

dependencies issue #53

ShivamKR12 opened this issue Dec 30, 2024 · 3 comments

Comments

@ShivamKR12
Copy link

please provide the name and versions of every used by this repo, since i am having a lot of troble find the right vresion for it to run

@ShivamKR12
Copy link
Author

PS C:\Users\Shivam\Desktop\new\TerraCraft-master> python -m venv venv

PS C:\Users\Shivam\Desktop\new\TerraCraft-master> cmd
Microsoft Windows [Version 10.0.22631.4602]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Shivam\Desktop\new\TerraCraft-master>.\venv\Scripts\activate

(venv) C:\Users\Shivam\Desktop\new\TerraCraft-master>pip install pyglet==1.5.27
Collecting pyglet==1.5.27
Using cached pyglet-1.5.27-py3-none-any.whl.metadata (7.6 kB)
Using cached pyglet-1.5.27-py3-none-any.whl (1.1 MB)
Installing collected packages: pyglet
Successfully installed pyglet-1.5.27

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

(venv) C:\Users\Shivam\Desktop\new\TerraCraft-master>
(venv) C:\Users\Shivam\Desktop\new\TerraCraft-master>python main.py
C:\Users\Shivam\Desktop\new\TerraCraft-master\main.py:4: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\graphics.py:4: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\config.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\scenemanager.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\savemanager.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\scenes.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\blocks.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\utilities.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\genworld.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\noise.py:4: SyntaxWarning: invalid escape sequence '\ '
"""
C:\Users\Shivam\Desktop\new\TerraCraft-master\game\world.py:3: SyntaxWarning: invalid escape sequence '\ '
"""
Traceback (most recent call last):
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\main.py", line 65, in
main()
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\main.py", line 56, in main
scene_manager = SceneManager(window=window)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\game\scenemanager.py", line 55, in init
self.add_scene(MenuScene(self.window))
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\game\scenes.py", line 124, in init
self.start_label = pyglet.text.Label('Select save & press Enter to start', font_size=25,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text_init_.py", line 469, in init
super(Label, self).init(document, x, y, width, height,
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text_init_.py", line 268, in init
super(DocumentLabel, self).init(document,
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 858, in init
self.document = document
^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 887, in document
self._init_document()
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 1336, in _init_document
self._update()
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 1247, in _update
lines = self._get_lines()
^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 1224, in _get_lines
glyphs = self._get_glyphs()
^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\text\layout.py", line 1384, in _get_glyphs
glyphs.extend(font.get_glyphs(text[start:end]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\font\base.py", line 401, in get_glyphs
glyph_renderer = self.glyph_renderer_class(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\font\win32.py", line 100, in init
self._create_bitmap(width, height)
File "C:\Users\Shivam\Desktop\new\TerraCraft-master\venv\Lib\site-packages\pyglet\font\win32.py", line 324, in _create_bitmap
gdiplus.GdipCreateBitmapFromScan0(width, height, width * 4,
ctypes.ArgumentError: argument 5: TypeError: expected LP_c_ubyte instance instead of c_byte_Array_3520

(venv) C:\Users\Shivam\Desktop\new\TerraCraft-master>

@ShivamKR12
Copy link
Author

@XenonLab-Studio

@ShivamKR12
Copy link
Author

please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant