gbionics / gbionics/robot-log-visualizer
Fix installation and-gui issues on Windows
- Dominant language
- Python
- Stars
- 32
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
This issue summarizes the installation and GUI problems encountered with **robot-log-visualizer** on Windows and how they were resolved.
---
## Problem ⚠️
- Installed `robot-log-visualizer` version **0.12.0** via **conda**.
- Encountered **timestamp array size mismatch** when loading `.mat` files:
```
File "C:\Users\ldanovaro\miniforge3\envs\visualizer-env\Lib\site-packages\robot_log_visualizer\signal_provider\matfile_signal_provider.py",
line 86, in __populate_numerical_data if data[key]["timestamps"][0] < self.initial_time:
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
Traceback (most recent call last): File "C:\Users\ldanovaro\miniforge3\envs\visualizer-env\Lib\site-
packages\robot_log_visualizer\plotter\pyqtgraph_viewer_canvas.py", line 209, in _update_vline def _update_vline(self) ->
None: KeyboardInterrupt
```
Manually patched `robot_log_visualizer/signal_provider/matfile_signal_provider.py` by changing the line 86:
```bash
if data[key]["timestamps"][0] < self.initial_time:
```
with
```bash
ts = np.atleast_1d(data[key]["timestamps"])
if ts[0] < self.initial_time:
self.initial_time = ts[0]
data[key]["timestamps"] = ts
```
- After patching:
- `.mat` files could be loaded.
- **GUI did not work correctly**: right-click context menus on internal structures were missing.
- On another PC, **version 0.9.0 works perfectly**, including full GUI functionality.
---
## Solution ✅
- **Resolved by downgrading to version 0.9.0**:
```bash
conda install -c robotology robot-log-visualizer=0.9.0
````
* After downgrade:
* `.mat` files load correctly.
* Right-click context menus and GUI interactions work as expected.
* Using newer versions (0.12.0/0.13.0) on Windows causes GUI issues, even after patching.
---
## Attempted pip installation
* Tried installing the latest version via **pip** in Python 3.10/3.13 virtual environment.
* Installation failed while building `idyntree`:
```
CMake Error: No CMAKE_C_COMPILER could be found
CMake Error: No CMAKE_CXX_COMPILER could be found
```
* Pip cannot compile `idyntree` on Windows without a full C/C++ build environment.
---
## Recommendation 💡
* **Windows users should use version 0.9.0** for a fully working GUI.
* Prefer **conda** installation to avoid compilation issues.
* Version 0.9.0 ensures all functionalities, including right-click context menus.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.