Skip to content

Issue with editable install #108

@xela-95

Description

@xela-95

In my process of fixing #103 I tried to create a clean conda environment in which to install robot-log-visualizer in editable mode, but I get a segmentation fault when I try to launch it.

Repro

visualizer version: main 7f3a88f

conda create -n dev_env
conda activate dev_env
conda install python=3.13 pip

cd into the repo directory:

cd robot-log-visualizer
pip install -e .
robot-log-visualizer

I get:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.3.4 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/home/acroci-iit.local/miniforge3/envs/dev_rlv2/bin/robot-log-visualizer", line 3, in <module>
    from robot_log_visualizer.__main__ import main
  File "/home/acroci-iit.local/repos/robot-log-visualizer/robot_log_visualizer/__main__.py", line 10, in <module>
    from qtpy.QtWidgets import QApplication
  File "/home/acroci-iit.local/miniforge3/envs/dev_rlv2/lib/python3.12/site-packages/qtpy/__init__.py", line 237, in <module>
    from PySide2 import __version__ as PYSIDE_VERSION  # analysis:ignore
  File "/home/acroci-iit.local/miniforge3/envs/dev_rlv2/lib/python3.12/site-packages/PySide2/__init__.py", line 51, in <module>
    _setupQtDirectories()
  File "/home/acroci-iit.local/miniforge3/envs/dev_rlv2/lib/python3.12/site-packages/PySide2/__init__.py", line 21, in _setupQtDirectories
    import shiboken2
  File "/home/acroci-iit.local/miniforge3/envs/dev_rlv2/lib/python3.12/site-packages/shiboken2/__init__.py", line 27, in <module>
    from .shiboken2 import *
[1]    1692928 segmentation fault (core dumped)  robot-log-visualizer

conda list

# packages in environment at /home/acroci-iit.local/miniforge3/envs/dev_rlv3:
#
# Name                     Version          Build               Channel
_libgcc_mutex              0.1              conda_forge         conda-forge
_openmp_mutex              4.5              2_gnu               conda-forge
asttokens                  3.0.0            pypi_0              pypi
bzip2                      1.0.8            hda65f42_8          conda-forge
ca-certificates            2025.10.5        hbd8a1cb_0          conda-forge
decorator                  5.2.1            pypi_0              pypi
executing                  2.2.1            pypi_0              pypi
h5py                       3.15.1           pypi_0              pypi
idyntree                   13.4.2           pypi_0              pypi
ipython                    9.6.0            pypi_0              pypi
ipython-pygments-lexers    1.1.1            pypi_0              pypi
jedi                       0.19.2           pypi_0              pypi
ld_impl_linux-64           2.44             ha97dd6f_2          conda-forge
libexpat                   2.7.1            hecca717_0          conda-forge
libffi                     3.4.6            h2dba641_1          conda-forge
libgcc                     15.2.0           h767d61c_7          conda-forge
libgomp                    15.2.0           h767d61c_7          conda-forge
liblzma                    5.8.1            hb9d3cd8_2          conda-forge
libmpdec                   4.0.0            hb9d3cd8_0          conda-forge
libsqlite                  3.50.4           h0c1763c_0          conda-forge
libuuid                    2.41.2           he9a06e4_0          conda-forge
libzlib                    1.3.1            hb9d3cd8_2          conda-forge
matplotlib-inline          0.1.7            pypi_0              pypi
meshcat                    0.3.2            pypi_0              pypi
ncurses                    6.5              h2d0b736_3          conda-forge
numpy                      2.3.4            pypi_0              pypi
openssl                    3.5.4            h26f9b46_0          conda-forge
packaging                  25.0             pypi_0              pypi
parso                      0.8.5            pypi_0              pypi
pexpect                    4.9.0            pypi_0              pypi
pillow                     12.0.0           pypi_0              pypi
pip                        25.2             pyh145f28c_0        conda-forge
prompt-toolkit             3.0.52           pypi_0              pypi
ptyprocess                 0.7.0            pypi_0              pypi
pure-eval                  0.2.3            pypi_0              pypi
pygments                   2.19.2           pypi_0              pypi
pyngrok                    7.4.0            pypi_0              pypi
pyqtconsole                1.2.3            pypi_0              pypi
pyqtgraph                  0.13.7           pypi_0              pypi
pyside2                    5.13.2           pypi_0              pypi
python                     3.13.9           h2b335a9_100_cp313  conda-forge
python_abi                 3.13             8_cp313             conda-forge
pyyaml                     6.0.3            pypi_0              pypi
pyzmq                      27.1.0           pypi_0              pypi
qtpy                       2.4.3            pypi_0              pypi
readline                   8.2              h8c095d6_2          conda-forge
robot-log-visualizer       0.12.1.dev4      pypi_0              pypi
shiboken2                  5.13.2           pypi_0              pypi
stack-data                 0.6.3            pypi_0              pypi
tk                         8.6.13           noxft_hd72426e_102  conda-forge
tornado                    6.5.2            pypi_0              pypi
traitlets                  5.14.3           pypi_0              pypi
tzdata                     2025b            h78e105d_0          conda-forge
u-msgpack-python           2.8.0            pypi_0              pypi
wcwidth                    0.2.14           pypi_0              pypi

I've also tried with python 3.14 and 3.12 but I get the same error.

CC @traversaro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions