Python export not working

Bug #576411 reported by Maciej Muehleisen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openWNS Wrowser
Fix Released
Undecided
Unassigned

Bug Description

When trying to export to python I get the following error:

packages/openwns/wrowser/probeselector/Exporters.py", line 149, in export
    template = open('./exportTemplates/readDBandPlot')
IOError: [Errno 2] No such file or directory: './exportTemplates/readDBandPlot'

Revision history for this message
Ralf Jennen (jen-comnets) wrote :

I receive a similar error message:

File "/usr/lib/python2.5/site-packages/openwns/wrowser/probeselector/Exporters.py", line 94, in export
    createPlotAll(newlocation)
  File "/usr/lib/python2.5/site-packages/openwns/wrowser/probeselector/Exporters.py", line 70, in createPlotAll
    template = open('./exportTemplates/plotAll.py',"r")
IOError: [Errno 2] No such file or directory: './exportTemplates/plotAll.py'

Revision history for this message
Maciej Muehleisen (mue-comnets) wrote : Re: [Bug 576411] Re: Python export not working

Further tracked it:

open('./exportTemplates/plotAll.py',"r") cannot work with an relative path if wrowser is installed globally. Copying the dir to /usr/bin solves the problem, but this is not a real solution. We need to find out where in the python setup.py concept such directories should go.

The exported python files still do not work since they do import wrowser... and not openwns.wrowser... but this can be fixed easily (I will do it)

Ralf Jennen wrote:
> I receive a similar error message:
>
> File "/usr/lib/python2.5/site-packages/openwns/wrowser/probeselector/Exporters.py", line 94, in export
> createPlotAll(newlocation)
> File "/usr/lib/python2.5/site-packages/openwns/wrowser/probeselector/Exporters.py", line 70, in createPlotAll
> template = open('./exportTemplates/plotAll.py',"r")
> IOError: [Errno 2] No such file or directory: './exportTemplates/plotAll.py'
>
>

Revision history for this message
Ramin Rezai Rad (rrr-comnets) wrote :

Fixed in revision 79

Changed in openwns-wrowser:
status: New → Fix Committed
Changed in openwns-wrowser:
status: Fix Committed → 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.