File>View Scenario is broken

Bug #583805 reported by Daniel Bültmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openWNS Wrowser
Fix Released
Undecided
Unassigned

Bug Description

If you select View Scenario from the File menu and open any configuration file of openWNS, wrowser crashes with an import error. It seems that the path to the sandbox is not properly included in the sys.path variable.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openwns/wrowser/Windows.py", line 96, in on_actionView_Scenario_triggered
    p = scenario.plotterFactory.create(self.viewScenarioFilename)
  File "/usr/lib/python2.5/site-packages/openwns/wrowser/scenario/plotterFactory.py", line 39, in create
    inspector = inspect.ConfigInspector(scenarioFilename)
  File "/usr/lib/python2.5/site-packages/openwns/wrowser/scenario/inspect.py", line 54, in __init__
    exec(content,self.config)
  File "<string>", line 3, in <module>
ImportError: No module named wns.WNS

description: updated
Revision history for this message
Jan (jan-ellenbeck) wrote :

Same here.

The exakt ImportError depends on the config you load.

For me it says "ImportError: No module named pyconfig" when I load a wimac-tests/configIMTA file. It is possible to work around the bug by doing:
export PYTHONPATH=$PYTHONPATH:/path-to/openwns-sdk/sandbox/dbg/lib/PyConfig

Changed in openwns-wrowser:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.