realitix / vulkan

The ultimate Python binding for Vulkan API
Apache License 2.0
505 stars 46 forks source link

Cannot run example shown in readme #84

Closed shadow7412 closed 10 months ago

shadow7412 commented 2 years ago

I get the following stack trace when attempting to run example_sdl2.py;

Traceback (most recent call last):
  File "./vulkan_test/vulkan/v2/example/example_sdl2.py", line 38, in <module>
    appInfo = VkApplicationInfo(
  File "./vulkan_test/venv/lib/python3.10/site-packages/vulkan/_vulkan.py", line 3079, in VkApplicationInfo
    return _new('VkApplicationInfo', sType=sType,pNext=pNext,pApplicationName=pApplicationName,applicationVersion=applicationVersion,pEngineName=pEngineName,engineVersion=engineVersion,apiVersion=apiVersion)
  File "./vulkan_test/venv/lib/python3.10/site-packages/vulkan/_vulkan.py", line 3007, in _new
    ptrs[k] = _cast_ptr(v, ktype)
  File "./vulkan_test/venv/lib/python3.10/site-packages/vulkan/_vulkan.py", line 90, in _cast_ptr3
    return _cast_ptr2(x, _type)
  File "./vulkan_test/venv/lib/python3.10/site-packages/vulkan/_vulkan.py", line 74, in _cast_ptr2
    if isinstance(x, _collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

Could it be that python 3.10 isn't supported yet?

shadow7412 commented 2 years ago

Looks like merging #83 should fix this.

realitix commented 10 months ago

It's fixed