Closed hmaarrfk closed 9 months ago
This environment:
$ mamba list # packages in environment at /home/mark/mambaforge/envs/wgpu_cf: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge alsa-lib 1.2.10 hd590300_0 conda-forge attr 2.5.1 h166bdaf_1 conda-forge bzip2 1.0.8 hd590300_5 conda-forge ca-certificates 2023.11.17 hbcca054_0 conda-forge cairo 1.18.0 h3faef2a_0 conda-forge cffi 1.16.0 py310h2fee648_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge expat 2.5.0 hcb278e6_1 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_1 conda-forge fontconfig 2.14.2 h14ed4e7_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge freetype 2.12.1 h267a509_2 conda-forge freetype-py 2.4.0 pyhd8ed1ab_0 conda-forge gettext 0.21.1 h27087fc_0 conda-forge glib 2.78.3 hfc55251_0 conda-forge glib-tools 2.78.3 hfc55251_0 conda-forge graphite2 1.3.13 h58526e2_1001 conda-forge gst-plugins-base 1.22.7 h8e1006c_1 conda-forge gstreamer 1.22.7 h98fc4e7_1 conda-forge harfbuzz 8.3.0 h3d44ed6_0 conda-forge icu 73.2 h59595ed_0 conda-forge jinja2 3.1.2 pyhd8ed1ab_1 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge krb5 1.21.2 h659d440_0 conda-forge lame 3.100 h166bdaf_1003 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge libblas 3.9.0 20_linux64_openblas conda-forge libcap 2.69 h0f662aa_0 conda-forge libcblas 3.9.0 20_linux64_openblas conda-forge libclang 15.0.7 default_hb11cfb5_4 conda-forge libclang13 15.0.7 default_ha2b6cf4_4 conda-forge libcups 2.3.3 h4637d8d_4 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libevent 2.1.12 hf998b51_1 conda-forge libexpat 2.5.0 hcb278e6_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libflac 1.4.3 h59595ed_0 conda-forge libgcc-ng 13.2.0 h807b86a_3 conda-forge libgcrypt 1.10.3 hd590300_0 conda-forge libgfortran-ng 13.2.0 h69a702a_3 conda-forge libgfortran5 13.2.0 ha4646dd_3 conda-forge libglib 2.78.3 h783c2da_0 conda-forge libgomp 13.2.0 h807b86a_3 conda-forge libgpg-error 1.47 h71f35ed_0 conda-forge libiconv 1.17 hd590300_2 conda-forge libjpeg-turbo 3.0.0 hd590300_1 conda-forge liblapack 3.9.0 20_linux64_openblas conda-forge libllvm15 15.0.7 h5cf9203_3 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libogg 1.3.4 h7f98852_1 conda-forge libopenblas 0.3.25 pthreads_h413a1c8_0 conda-forge libopus 1.3.1 h7f98852_1 conda-forge libpng 1.6.39 h753d276_0 conda-forge libpq 16.1 h33b98f1_7 conda-forge libsndfile 1.2.2 hc60ed4a_1 conda-forge libsqlite 3.44.2 h2797004_0 conda-forge libstdcxx-ng 13.2.0 h7e041cc_3 conda-forge libsystemd0 255 h3516f8a_0 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libvorbis 1.3.7 h9c3ff4c_0 conda-forge libxcb 1.15 h0b41bf4_0 conda-forge libxkbcommon 1.6.0 h5d7e998_0 conda-forge libxml2 2.11.6 h232c23b_0 conda-forge libxslt 1.1.37 h0054252_1 conda-forge libzlib 1.2.13 hd590300_5 conda-forge lz4-c 1.9.4 hcb278e6_0 conda-forge markupsafe 2.1.3 py310h2372a71_1 conda-forge mpg123 1.32.3 h59595ed_0 conda-forge mysql-common 8.0.33 hf1915f5_6 conda-forge mysql-libs 8.0.33 hca2cd23_6 conda-forge ncurses 6.4 h59595ed_2 conda-forge nspr 4.35 h27087fc_0 conda-forge nss 3.96 h1d7d5a4_0 conda-forge numpy 1.26.2 py310hb13e2d6_0 conda-forge openssl 3.2.0 hd590300_1 conda-forge pcre2 10.42 hcad00b1_0 conda-forge pip 23.3.2 pyhd8ed1ab_0 conda-forge pixman 0.42.2 h59595ed_0 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge pulseaudio-client 16.1 hb77b528_5 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pygfx 0.1.17 pyhd8ed1ab_0 conda-forge pylinalg 0.4.1 pyhd8ed1ab_0 conda-forge pyside2 5.15.8 py310h1570d6a_3 conda-forge python 3.10.12 h9a3b687_101_cpython ramonaoptics python_abi 3.10 4_cp310 conda-forge qt-main 5.15.8 h084448b_117 ramonaoptics setuptools 68.2.2 pyhd8ed1ab_0 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge tzdata 2023c h71feb2d_0 conda-forge uharfbuzz 0.37.3 py310hd41b1e2_1 conda-forge wgpu-native 0.18.1.3 h2b8f863_0 conda-forge wgpu-py 0.13.1 pyha804496_0 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge xcb-util 0.4.0 hd590300_1 conda-forge xcb-util-image 0.4.0 h8ee46fc_1 conda-forge xcb-util-keysyms 0.4.0 h8ee46fc_1 conda-forge xcb-util-renderutil 0.3.9 hd590300_1 conda-forge xcb-util-wm 0.4.1 h8ee46fc_1 conda-forge xkeyboard-config 2.40 hd590300_0 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.1.1 hd590300_0 conda-forge xorg-libsm 1.2.4 h7391055_0 conda-forge xorg-libx11 1.8.7 h8ee46fc_0 conda-forge xorg-libxau 1.0.11 hd590300_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h0b41bf4_2 conda-forge xorg-libxrender 0.9.11 hd590300_0 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-xextproto 7.3.0 h0b41bf4_1003 conda-forge xorg-xf86vidmodeproto 2.3.1 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.6 h166bdaf_0 conda-forge zlib 1.2.13 hd590300_5 conda-forge zstd 1.5.5 hfc55251_0 conda-forge
breaks
But this., through pip, works:
$ pip list Package Version ----------- -------- cffi 1.16.0 freetype-py 2.4.0 Jinja2 3.1.2 MarkupSafe 2.1.3 numpy 1.26.2 pip 23.3.2 pycparser 2.21 pygfx 0.1.17 pylinalg 0.4.1 PySide2 5.15.2.1 setuptools 68.2.2 shiboken2 5.15.2.1 uharfbuzz 0.37.3 wgpu 0.13.1 wheel 0.42.0
from wgpu.gui.auto import WgpuCanvas, run import pygfx as gfx import numpy as np data = np.full((100, 100, 3), fill_value=100, dtype='uint8') canvas = WgpuCanvas() renderer = gfx.renderers.WgpuRenderer(canvas, show_fps=True) scene = gfx.Scene() image = gfx.Image( gfx.Geometry(grid=gfx.Texture(data, dim=2)), gfx.ImageBasicMaterial(clim=(0, 255)), ) scene.add(image) camera = gfx.PerspectiveCamera(0) camera.show_object(scene) controller = gfx.PanZoomController(camera, register_events=renderer) canvas.request_draw(lambda: renderer.render(scene, camera)) run()
$ conda info active environment : wgpu_cf active env location : /home/mark/mambaforge/envs/wgpu_cf shell level : 1 user config file : /home/mark/.condarc populated config files : /home/mark/mambaforge/.condarc /home/mark/.condarc conda version : 23.11.0 conda-build version : 3.28.1 python version : 3.9.16.final.0 solver : libmamba (default) virtual packages : __archspec=1=icelake __conda=23.11.0=0 __glibc=2.38=0 __linux=6.5.0=0 __unix=0=0 base environment : /home/mark/mambaforge (writable) conda av data dir : /home/mark/mambaforge/etc/conda conda av metadata url : None channel URLs : https://conda.anaconda.org/conda-forge/linux-64 https://conda.anaconda.org/conda-forge/noarch package cache : /home/mark/mambaforge/pkgs /home/mark/.conda/pkgs envs directories : /home/mark/mambaforge/envs /home/mark/.conda/envs platform : linux-64 user-agent : conda/23.11.0 requests/2.31.0 CPython/3.9.16 Linux/6.5.0-14-generic ubuntu/23.10 glibc/2.38 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.4 UID:GID : 1000:1000 netrc file : None offline mode : False
i fixed the latest version. was a problem with wgpu-native
Solution to issue cannot be found in the documentation.
Issue
This environment:
breaks
But this., through pip, works:
Installed packages
Environment info