Open3D
Open3D copied to clipboard
fstring error in summary.py
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
main
branch).
Describe the issue
Running latest git with python/3.12.0 ran into the following error for python/open3d/visualization/tensorboard_plugin/summary.py
line 427 f"{tensor.shape[k-1] for tensor in tensor_tuple}.") ^^^ SyntaxError: f-string: expecting '=', or '!', or ':', or '}'
AI suggested changing to:
f"{[tensor.shape[k-1] for tensor in tensor_tuple]}."
which has allowed the code proceed/run but presumably alters the output.
Steps to reproduce the bug
Apologies - don't have sharable code to replicate at this time
Error message
2024-04-05 19:20:17.981990: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-04-05 19:20:18.001098: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-04-05 19:20:18.001146: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Warning, backtrace signal handler for signal 11 overwrote previous handler.
Warning, backtrace signal handler for signal 7 overwrote previous handler.
Warning, backtrace signal handler for signal 4 overwrote previous handler.
Warning, backtrace signal handler for signal 8 overwrote previous handler.
Traceback (most recent call last):
File "mtadam.py", line 477, in
Expected behavior
No syntax error and continuation of processing.
Open3D, Python and System information
- Operating system: SUSE Linux Enterprise Server 15 SP4
- Python version: 3.12.0 (main, Oct 3 2023, 10:26:30) [GCC 12.3.0]
- Open3D version: 0.18.0+80ae047db
- System architecture: x86_64
- Is this a remote workstation?: yes?
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc 12.3.0
Additional information
although ticked box, latest development wheel not available for 3.12.0.