-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Running main.py causes the errors:
D:\Python-OGC-Cloth-Test2>"D:\Python\Python3913\python.exe" main.py
pygame 2.6.1 (SDL 2.28.4, Python 3.9.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "D:\Python-OGC-Cloth-Test2\main.py", line 40, in <module>
from src.utils.config_manager import ConfigManager, load_preset, list_presets
File "D:\Python-OGC-Cloth-Test2\src\utils\__init__.py", line 12, in <module>
from .profiler import PerformanceProfiler
ModuleNotFoundError: No module named 'src.utils.profiler'
D:\Python-OGC-Cloth-Test2>"D:\Python\Python3913\python.exe" main.py
pygame 2.6.1 (SDL 2.28.4, Python 3.9.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "D:\Python-OGC-Cloth-Test2\main.py", line 40, in <module>
from src.utils.config_manager import ConfigManager, load_preset, list_presets
File "D:\Python-OGC-Cloth-Test2\src\utils\__init__.py", line 13, in <module>
from .math_utils import *
ModuleNotFoundError: No module named 'src.utils.math_utils'
These modules are missing from your GitHub project. Removing the import of these modules from init.py causes the program to terminate immediately with an error:
D:\Python-OGC-Cloth-Test2>"D:\Python\Python3913\python.exe" main.py
pygame 2.6.1 (SDL 2.28.4, Python 3.9.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Using default configuration
============================================================
OGC Cloth Simulation Test 2
============================================================
Initializing simulation...
Default scene setup complete:
- Cylinder at [0.0, -0.5, 0.0]
- Ground plane at y = -2.0
- Cloth pinned at corners
OGC Cloth Simulation initialized successfully!
Cloth size: 20x20 particles
OGC contact radius: 0.05
Window size: 1200x800
Starting simulation loop...
Press ESC to exit, Space to pause/resume
Starting simulation...
Controls:
Mouse: Orbit camera
Mouse wheel: Zoom
W: Toggle wireframe
P: Toggle particles
C: Toggle contacts
F: Toggle forces
Space: Pause/Resume
R: Reset simulation
ESC: Exit
Simulation error: pack expected 16 items for packing (got 4)
Traceback (most recent call last):
File "D:\Python-OGC-Cloth-Test2\src\simulation_app.py", line 228, in run
self._render_frame()
File "D:\Python-OGC-Cloth-Test2\src\simulation_app.py", line 285, in _render_frame
self.renderer.render_cloth(positions, triangles, edges)
File "D:\Python-OGC-Cloth-Test2\src\rendering\opengl_renderer.py", line 367, in render_cloth
self._render_solid_cloth(positions, triangles, mvp, model, view)
File "D:\Python-OGC-Cloth-Test2\src\rendering\opengl_renderer.py", line 448, in _render_solid_cloth
self.cloth_shader.set_uniform('mvp_matrix', mvp.astype(np.float32))
File "D:\Python-OGC-Cloth-Test2\src\rendering\opengl_renderer.py", line 112, in set_uniform
self.program[name].value = value
File "D:\Python\Python3913\lib\site-packages\_moderngl.py", line 76, in value
data = struct.pack(self.fmt, *value)
struct.error: pack expected 16 items for packing (got 4)
Cleaning up...
Simulation terminated
Simulation completed successfully
I tested it on Python versions 3.8, 3.9, and 3.10. PyCharm is not installed.
Metadata
Metadata
Assignees
Labels
No labels