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

运行失败了 #16

Open
Monzale opened this issue Jan 7, 2025 · 1 comment
Open

运行失败了 #16

Monzale opened this issue Jan 7, 2025 · 1 comment

Comments

@Monzale
Copy link

Monzale commented Jan 7, 2025

当我使用python3.10.11 或 python3.8.10时,
pip.exe install -r requirements -i https://pypi.tuna.tsinghua.edu.cn/simple后
启动项目出现了以下问题,请问我哪儿操作错了么

PS D:\spateo-viewer> C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe stv_explorer.py --port 1234
Traceback (most recent call last):
File "stv_explorer.py", line 4, in
from stviewer.explorer_app import state, static_server
File "D:\spateo-viewer\stviewer\explorer_app.py", line 48, in
) = init_actors(
File "D:\spateo-viewer\stviewer\Explorer\pv_pipeline\pv_actors.py", line 102, in init_actors
) = sample_dataset(path=path)
File "D:\spateo-viewer\stviewer\assets\dataset_acquisition.py", line 176, in sample_dataset
pc_model.point_data[obs_key] = array
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\vtkmodules\util\data_model.py", line 45, in setitem
return self.set_array(name, value)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\vtkmodules\util\data_model.py", line 171, in set_array
arr = dsa.numpyTovtkDataArray(copy, name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\vtkmodules\numpy_interface\dataset_adapter.py", line 146, in numpyTovtkDataArray
vtkarray = numpy_support.numpy_to_vtk(array, array_type=array_type)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\vtkmodules\util\numpy_support.py", line 146, in numpy_to_vtk
vtk_typecode = get_vtk_array_type(z.dtype)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\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

@Monzale
Copy link
Author

Monzale commented Jan 14, 2025

已解决,使用python3.9 & 特定pip包成功运行

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

1 participant