Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Could not find a suitable VTK type for <U54 #17

Open
imerelli opened this issue Jan 27, 2025 · 2 comments
Open

TypeError: Could not find a suitable VTK type for <U54 #17

imerelli opened this issue Jan 27, 2025 · 2 comments

Comments

@imerelli
Copy link

Hi, I'm trying to use stv_explorer.py on a mac using python 3.10.
I'm getting this error. Can you help me in solving this problem?

$ python stv_explorer.py --port 1234
Traceback (most recent call last):
File "/Users/imerelli/spateo-viewer/stv_explorer.py", line 4, in
from stviewer.explorer_app import state, static_server
File "/Users/imerelli/spateo-viewer/stviewer/explorer_app.py", line 48, in
) = init_actors(
File "/Users/imerelli/spateo-viewer/stviewer/Explorer/pv_pipeline/pv_actors.py", line 102, in init_actors
) = sample_dataset(path=path)
File "/Users/imerelli/spateo-viewer/stviewer/assets/dataset_acquisition.py", line 176, in sample_dataset
pc_model.point_data[obs_key] = array
File "/Users/imerelli/miniforge3/envs/spateo/lib/python3.10/site-packages/vtkmodules/util/data_model.py", line 45, in setitem
return self.set_array(name, value)
File "/Users/imerelli/miniforge3/envs/spateo/lib/python3.10/site-packages/vtkmodules/util/data_model.py", line 171, in set_array
arr = dsa.numpyTovtkDataArray(copy, name)
File "/Users/imerelli/miniforge3/envs/spateo/lib/python3.10/site-packages/vtkmodules/numpy_interface/dataset_adapter.py", line 146, in numpyTovtkDataArray
vtkarray = numpy_support.numpy_to_vtk(array, array_type=array_type)
File "/Users/imerelli/miniforge3/envs/spateo/lib/python3.10/site-packages/vtkmodules/util/numpy_support.py", line 146, in numpy_to_vtk
vtk_typecode = get_vtk_array_type(z.dtype)
File "/Users/imerelli/miniforge3/envs/spateo/lib/python3.10/site-packages/vtkmodules/util/numpy_support.py", line 69, in get_vtk_array_type
raise TypeError(
TypeError: Could not find a suitable VTK type for <U54

@mkunst23
Copy link

I'm experiencing the same issue. Any resolution or workaround you can suggest?

@Monzale
Copy link

Monzale commented Feb 5, 2025

我遇到了同样的问题。您有什么解决方案或解决方法吗?

use below requirements with python3.10.11

aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
anndata==0.10.9
array_api_compat==1.10.0
async-timeout==5.0.1
attrs==24.3.0
certifi==2024.12.14
charset-normalizer==3.4.1
contourpy==1.3.1
cycler==0.12.1
exceptiongroup==1.2.2
filelock==3.16.1
fonttools==4.55.3
frozenlist==1.5.0
fsspec==2024.12.0
gpytorch==1.13
h5py==3.12.1
idna==3.10
imageio==2.35.1
jaxtyping==0.2.19
Jinja2==3.1.5
joblib==1.4.2
kiwisolver==1.4.8
linear-operator==0.5.3
MarkupSafe==3.0.2
matplotlib==3.7.5
more-itertools==10.6.0
MouseInfo==0.1.3
mpld3==0.5.10
mpmath==1.3.0
msgpack==1.1.0
multidict==6.1.0
natsort==8.4.0
networkx==3.4.2
numpy==1.26.4
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==8.9.2.26
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.18.1
nvidia-nvjitlink-cu12==12.6.85
nvidia-nvtx-cu12==12.1.105
packaging==24.2
pandas==2.2.3
pillow==11.1.0
platformdirs==4.3.6
pooch==1.8.2
POT==0.9.4
propcache==0.2.1
psutil==6.1.1
PyAutoGUI==0.9.54
PyGetWindow==0.0.9
PyMsgBox==1.0.9
pyparsing==3.2.1
pyperclip==1.9.0
PyRect==0.2.0
PyScreeze==1.0.1
python-dateutil==2.9.0.post0
python3-xlib==0.15
pytweening==1.2.0
pytz==2024.2
pyvista==0.44.1
PyYAML==6.0.2
requests==2.32.3
scikit-learn==1.6.1
scipy==1.15.1
scooby==0.10.0
six==1.17.0
sympy==1.13.3
threadpoolctl==3.5.0
torch==2.1.0
tqdm==4.67.1
trame==2.5.2
trame-client==3.5.1
trame-components==2.4.2
trame-deckgl==2.0.3
trame-markdown==2.0.2
trame-matplotlib==2.0.3
trame-plotly==2.1.1
trame-rca==0.6.0
trame-router==2.3.0
trame-server==3.3.0
trame-simput==2.5.1
trame-vega==2.1.1
trame-vtk==2.8.14
trame-vuetify==2.8.0
triton==2.1.0
typeguard==4.4.1
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.3.0
vtk==9.4.1
wslink==2.2.2
yarl==1.18.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants