GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — fix typo in the requested limit name of the wgpu device by jcafhe · Pull Request #679 · fastplotlib/fastplotlib Conversation
Contributor
Hi, when running different examples involving images, the following exception is raised: Traceback (most recent call last): File "***\fastplotlib\examples\gridplot\gridplot_non_square.py", line 20, in <module> figure[0, 0].add_image(data=im) File "***\fastplotlib\fastplotlib\layouts\_graphic_methods_mixin.py", line 75, in add_image return self._create_graphic( ^^^^^^^^^^^^^^^^^^^^^ File "***\fastplotlib\fastplotlib\layouts\_graphic_methods_mixin.py", line 24, in _create_graphic graphic = graphic_class(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "***\fastplotlib\fastplotlib\graphics\image.py", line 126, in __init__ self._data = TextureArray(data, isolated_buffer=isolated_buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "***\fastplotlib\fastplotlib\graphics\_features\_image.py", line 24, in __init__ self._texture_limit_2d = shared.device.limits["max-texture-dimension2d"] ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ KeyError: 'max-texture-dimension2d' It fails for the following examples (non-exhaustive list), on windows10, python 3.12.6, pygfx 0.6.0, wgpu 0.19.1 (can't test right now on linux because of an error related to imgui):
I believe there's a typo in the string passed to the By appling the lower-case style, the examples now work by adding an hyphen before "2d". I don't know if it is specific to my setup, but this fix seems to be aligned with the wgpu API.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Nice find! This explains why there were no errors before. I didn't think to look at the issue tracker of pygfx. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
test failures are due to pygfx/wgpu-py#644, need to wait for the next release of wgpu with pygfx/wgpu-py#645 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If you can update the test as well it should be good to go! https://github.com/fastplotlib/fastplotlib/actions/runs/11975376261/job/33491202021?pr=679#step:8:24 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
That should be ok, all tests pass on my machine, with pygfx installed from its main branch, to be aligned with the CI setup : Do you think that the required pygfx version should be updated too, in the setup.py? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, there are still some errors. I will investigate ... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…hen for the other limits.
|
Looks like there are no imgui wheels for python 3.10 so it's trying to build but it requires |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…eel for imgui-bundle.
|
Thanks. I've added the installation of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
had to update the CI timeout, it takes longer since it has to build imgui 1.5.2 for python 3.10. Anyways this PR will fix all those issues: pygfx/wgpu-py#649 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
ok now it looks like the latest release of pyav 14 hours ago breaks imageio https://github.com/PyAV-Org/PyAV/releases posted in imageio: imageio/imageio#1111 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
ok, no problem, so we just have to wait I guess. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm going to merge this into a temporary branch where we're updating things w.r.t. upstream changes like #686 where we're switching from pyav to ffmpeg. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* use imageio[ffmpeg] instead of pyav (#686) * fix typo in the requested limit name of the wgpu device (#679) * fix typo in the requested limit name of the wgpu device. * fix test config. * fix examples/test and docs * fix max-texture-dimension-2d limit name and replace underscore by hyphen for the other limits. * fix missing dependency (libxrandr) to compile GLFW during building wheel for imgui-bundle. * update CI timeout * update timeout in non-nb test job --------- Co-authored-by: Kushal Kolar <[email protected]> * update to use pygfx.TextureMap * forgot to set imageio[ffmpeg] for all extras * migrate to RenderCanvas, remove event_filter stuff for imgui since that was fixed in pygfx * remove very old irrelevant example * fix docstring * update examples to use fpl.loop.run() * update API docs * black * import ImageWidget only if imgui is installed * enumerate_adapters() -> enumerate_adapters_sync() * remove annoying warnings from cmap * remove more cmap warnings * black --------- Co-authored-by: Jérémie Fache <[email protected]>
* use imageio[ffmpeg] instead of pyav (fastplotlib#686) * fix typo in the requested limit name of the wgpu device (fastplotlib#679) * fix typo in the requested limit name of the wgpu device. * fix test config. * fix examples/test and docs * fix max-texture-dimension-2d limit name and replace underscore by hyphen for the other limits. * fix missing dependency (libxrandr) to compile GLFW during building wheel for imgui-bundle. * update CI timeout * update timeout in non-nb test job --------- Co-authored-by: Kushal Kolar <[email protected]> * update to use pygfx.TextureMap * forgot to set imageio[ffmpeg] for all extras * migrate to RenderCanvas, remove event_filter stuff for imgui since that was fixed in pygfx * remove very old irrelevant example * fix docstring * update examples to use fpl.loop.run() * update API docs * black * import ImageWidget only if imgui is installed * enumerate_adapters() -> enumerate_adapters_sync() * remove annoying warnings from cmap * remove more cmap warnings * black --------- Co-authored-by: Jérémie Fache <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.