Skip to content

Smach viewer not working after messing with wxPython #25

@JanTromp

Description

@JanTromp

Hey everyone,

The smach viewer was working okay but at random moments it would close itself for no reason.
Error being:

Segmentation fault (core dumped)

At startup i got the message:

wxversion 2.8 is not installed, installed versions are ['3.0-gtk2']
wxversion 2.8 is not installed, installed versions are ['3.0-gtk2']

So i thought maybe update this, maybe that will fix it.

so i updated wxPython by (found in this link https://wiki.wxpython.org/How%20to%20install%20wxPython):

pip install -U \ -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \wxPython

This downloaded 102 MB of data and installed the following packages:
Pillow, six, wxPython

After that i started the smach viewer again and got the following error:

Traceback (most recent call last):
File "/home/assembly_project/src/executive_smach_visualization/smach_viewer/scripts/smach_viewer.py", line 77, in
from smach_viewer import xdot
File "/home/assembly_project/src/executive_smach_visualization/smach_viewer/src/smach_viewer/xdot/init.py", line 1, in
import wxxdot
File "/home/assembly_project/src/executive_smach_visualization/smach_viewer/src/smach_viewer/xdot/wxxdot.py", line 45, in
gdkLib = wx.lib.wxcairo._findGDKLib()
AttributeError: 'module' object has no attribute '_findGDKLib'

Anyone able to help me get this back?

I am not that expecrienced with linux so i dont know what all the commands mean when installing something.
I'm afraid i messed it up and i'm not able to fix this by myself.

If there are any questions or things unclear, feel free to drop a comment.

Kind regards,
Jan Tromp

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