Skip to content

Latest commit

 

History

History
121 lines (111 loc) · 6.83 KB

File metadata and controls

121 lines (111 loc) · 6.83 KB

List of examples with issues.

The template for the issues is:

  • example_path: [optional action required to reproduce the issue] [optional line of code with the issue] Exception message

audio/:

  • raylib_official_examples/audio/audio_sound_positioning.py: TypeError: _make_struct_constructor_function..func() got an unexpected keyword argument 'position' (Camera3D)

core/:

  • raylib_official_examples/core/core_3d_camera_first_person.py: Press P key => AttributeError: module 'pyray' has no attribute 'camera_yaw'
  • raylib_official_examples/core/core_custom_frame_control.py: AttributeError: module 'pyray' has no attribute 'get_target_fps'
  • raylib_official_examples/core/core_custom_logging.py: rl.set_trace_log_callback(custom_log), TypeError: initializer for ctype 'void(*)(int, char *, void *)' must be a cdata pointer, not CFunctionType
  • raylib_official_examples/core/core_drop_files.py: from raylib.defines import MAX_FILEPATH_SIZE
  • raylib_official_examples/core/core_drop_files.py:
    • from raylib.defines import MAX_FILEPATH_SIZE: not defined
    • dropped filenames displayed as "CDATA * char", instead of actual filenames
  • raylib_official_examples/core/core_storage_values.py:
    • AttributeError: module 'pyray' has no attribute 'save_storage_value'
    • AttributeError: module 'pyray' has no attribute 'load_storage_value'
  • raylib_official_examples/core/core_vr_simulator.py: TypeError: _make_struct_constructor_function..func() got an unexpected keyword argument 'h_resolution'

gui/:

  • raylib_official_examples/gui/animation_curve.py: rl.ColorAlpha(rl.RED, 0.9) AttributeError: module 'pyray' has no attribute 'ColorAlpha'
  • raylib_official_examples/gui/gui_value_box_float.py: pressed = rl.gui_text_box_ex(bounds, text_value, 64, edit_mode) AttributeError: module 'pyray' has no attribute 'gui_text_box_ex'
  • raylib_official_examples/gui/controls_test_suite.py: click on "Default" button (botttom-left) to change style rl.gui_load_style_jungle() AttributeError: module 'pyray' has no attribute 'gui_load_style_jungle' Notes: all gui_load_style_*() functions seems to be missing (or are somewhere else)
  • raylib_official_examples/gui/floating_window.py: rl.gui_load_style_dark() AttributeError: module 'pyray' has no attribute 'gui_load_style_dark'
  • raylib_official_examples/gui/custom_sliders.py: AttributeError: module 'pyray' has no attribute 'gui_draw_rectangle'
  • raylib_official_examples/gui/custom_file_dialog.py: rl.draw_rectangle_rounded_lines(dialog_rect, 0.2, 8, 2, rl.BLACK) TypeError: DrawRectangleRoundedLines expected 4 arguments, got 5
  • raylib_official_examples/gui/custom_input_box.py: pressed = rl.gui_text_box_ex(bounds, text_value, RAYGUI_VALUEBOX_MAX_CHARS, edit_mode) AttributeError: module 'pyray' has no attribute 'gui_text_box_ex'
  • raylib_official_examples/gui/image_importer_raw.py: with open(dropped_files.paths[0], "rb") as image_file: TypeError: expected str, bytes or os.PathLike object, not _CDataBase
  • raylib_official_examples/gui/property_list.py: bounds.y + (i * item_height) - scroll_ptr[0], TypeError: unsupported operand type(s) for -: 'float' and '_cffi_backend.__CDataOwn'
  • raylib_official_examples/gui/style_selector.py: rl.gui_load_style_bluish() AttributeError: module 'pyray' has no attribute 'gui_load_style_bluish'

models/:

  • raylib_official_examples/models/models_skybox.py: rl.set_shader_value( skybox.materials[0].shader, rl.get_shader_location(skybox.materials[0].shader, "environmentMap"), rl.MATERIAL_MAP_CUBEMAP, # <== complains about that rl.SHADER_UNIFORM_INT ) TypeError: Argument 2 (7) must be a cdata pointer. Type is void so I don't know what type it should be.If it's a const string you can create it with pyray.ffi.new('char []', b"whatever") . If it's a float you can create it with pyray.ffi.new('float *', 1.0) => most common use cas is passing constant, IMHO, binding should allow it
  • raylib_official_examples/models/models_mesh_generation.py: mesh.vertices = vertices TypeError: initializer for ctype 'float *' must be a cdata pointer, not list
  • raylib_official_examples/models/models_point_rendering.py: mesh.vertices = vertices TypeError: initializer for ctype 'float *' must be a cdata pointer, not list

others/:

  • raylib_official_examples/others/easings_testbed.py: AttributeError: module 'pyray' has no attribute 'ease_linear_none'
  • raylib_official_examples/others/embedded_files_loading.py:

    In the C version, these are loaded from header files

    In our Python version, we'll load from actual files instead

    others..\resources\country.mp3] Failed to open file => IMHO, don't think this feature make sense in python. But a pyinstaller or the like example would make sense
  • raylib_official_examples/others/rlgl_standalone.py: rotation = rl.Quaternion(0.0, 0.0, 0.0, 1.0) ffi.error: undefined struct/union name : struct Quaternion *
  • raylib_official_examples/others/raylib_opengl_interop.py: glBindVertexArray(vao) OpenGL.error.GLError: GLError( err = 1282, description = b'op\xe9ration non valide', baseOperation = glBindVertexArray, cArguments = (np.uint32(2),) ) => Notes: might just be because I'm running on an insanely old NVidia GeForce 750

shaders/:

  • raylib_official_examples/shaders/shaders_hybrid_render.py: camera = rl.Camera3D( ..., position=...) TypeError: _make_struct_constructor_function..func() got an unexpected keyword argument 'position'

shapes/:

  • raylib_official_examples/shapes/shapes_easings_ball_anim.py, raylib_official_examples/shapes/shapes_easings_box_anim.py, raylib_official_examples/shapes/shapes_easings_rectangle_array.py: AttributeError: module 'pyray' has no attribute 'ease_elastic_out'
  • raylib_official_examples/shapes/shapes_rectangle_advanced.py: draw_rectangle_rounded_gradient_h(rec, 0.8, 0.8, 36, rl.BLUE, rl.RED)
    File "E:\prg\prj\puzzlator-py-raylib\raylib_official_examples\shapes\shapes_rectangle_advanced.py", line 119, in draw_rectangle_rounded_gradient_h
    rl.rl_color4ub(color.r, color.g, color.b, color.a)
                   ^^^^^^^
    AttributeError: 'tuple' object has no attribute 'r'
    
  • raylib_official_examples/shapes/shapes_top_down_lights.py: => shadows are buggy. Likely comes from bad conversion of: (quickly fixed 2 invalid python code) vertices = lights[slot].shadows[i].vertices

text/:

  • raylib_official_examples/text/text_draw_3d.py => hello world only show from the back, and no 3D plan text is drawn
  • raylib_official_examples/text/text_raylib_fonts.py: all fonts displayed the bottom instead of behind vertical aligned.
  • text/text_rectangle_bounds.py: all characters inside the rectangle are drawn overlap. Somehow font glyphs all have a glyph.advanceX of 0...
  • raylib_official_examples/text/text_unicode.py: emoji don't show, just some questionmarks in the background.