JdeRobot / VisualStates

Tool for visual programming of robots using automata
https://jderobot.github.io/VisualStates/
GNU General Public License v3.0
8 stars 8 forks source link

Import error in running binary package of visualstates #152

Closed pankhurivanjani closed 4 years ago

pankhurivanjani commented 4 years ago

Hi I am trying to run the newer ros-melodic release of visualstates.

When I run the file after sourcing the environment, I get this import error.

pankhuri@pankhuri-LENOVO-IDEAPAD-500-15ISK:~$ rosrun visualstates main.py 
Traceback (most recent call last):
  File "/opt/ros/melodic/lib/visualstates/main.py", line 25, in <module>
    from visualstates.gui.visualstates import VisualStates
  File "/opt/ros/melodic/lib/python2.7/dist-packages/visualstates/gui/visualstates.py", line 28, in <module>
    from .dialogs.librariesdialog import LibrariesDialog
  File "/opt/ros/melodic/lib/python2.7/dist-packages/visualstates/gui/dialogs/librariesdialog.py", line 26, in <module>
    from visualstates.gui.util.editablestringwidget import EditableStringWidget
ImportError: No module named util.editablestringwidget

@pushkalkatara could you suggest something for this?

jiban-jyoti commented 4 years ago

@pankhurivanjani I am also facing the same issue while running the new release of visualstates.

pushkalkatara commented 4 years ago

Hi @pankhurivanjani @jiban-jyoti Thanks for pointing out the issue. Please follow the following steps while we are trying to resolve the issue:

In your ROS workspace,

cd src
git clone https://github.com/JdeRobot/VisualStates.git
cd ..
catkin_make
source devel/setup.bash
rosrun visualstates main.py