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
sys.exit(main())
^^^^^^
File "mtadam.py", line 80, in main
model = create_model(*cfg.get('model', {})) # comment this out if want to load a trained model
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "mtadam.py", line 38, in create_model
from models_new.model_dataset_2_stiffness_20000_20dt_all_particles_no_boundary import MyParticleNetwork
File "dt_all_particles_no_boundary.py", line 3, in
import open3d.ml.torch as ml3d
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/ml/torch/init.py", line 108, in
from . import models
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/ml/torch/models.py", line 16, in
from open3d._ml3d.torch.models import
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/init.py", line 1, in
from .pipelines import *
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/pipelines/init.py", line 3, in
from .semantic_segmentation import SemanticSegmentation
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/pipelines/semantic_segmentation.py", line 13, in
from open3d.visualization.tensorboard_plugin import summary
File "/open3d/0.18.1/lib/python3.12/site-packages/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 '}'
MultiProcessRunnerZMQ successfully cleaned-up.
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.
Checklist
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
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
sys.exit(main())
^^^^^^
File "mtadam.py", line 80, in main
model = create_model(*cfg.get('model', {})) # comment this out if want to load a trained model
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "mtadam.py", line 38, in create_model
from models_new.model_dataset_2_stiffness_20000_20dt_all_particles_no_boundary import MyParticleNetwork
File "dt_all_particles_no_boundary.py", line 3, in
import open3d.ml.torch as ml3d
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/ml/torch/init.py", line 108, in
from . import models
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/ml/torch/models.py", line 16, in
from open3d._ml3d.torch.models import
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/init.py", line 1, in
from .pipelines import *
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/pipelines/init.py", line 3, in
from .semantic_segmentation import SemanticSegmentation
File "/open3d/0.18.1/lib/python3.12/site-packages/open3d/_ml3d/torch/pipelines/semantic_segmentation.py", line 13, in
from open3d.visualization.tensorboard_plugin import summary
File "/open3d/0.18.1/lib/python3.12/site-packages/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 '}'
MultiProcessRunnerZMQ successfully cleaned-up.
Expected behavior
No syntax error and continuation of processing.
Open3D, Python and System information
Additional information
although ticked box, latest development wheel not available for 3.12.0.