So the problem boils down to $ {resource_loc} , as it gives you the full path name /path/to/file/filename.ui - Yes, it includes .ui , so when you say $ {resource_loc} .py it means /path/to/file/filename.ui.py
So, probably the easiest way to fix this problem, since I could not find a way to get eclipse to remove the file extension for me, I made a very small script to work.
You may need to modify it a bit to work for your installation in pyuic.
/ Usr / bin / pyuicEclipse:
#!/bin/bash
pyUICCommand="/usr/bin/pyuic"
x=$1
f=`basename $x`
d=`dirname $x`
fNoUI="`echo $f | sed 's/\.ui$//'`"
$pyUICCommand -o ${d}/${fNoUI}.py $x
make it executable, and the eclipse configuration I used was much simpler:
- PyUIC-> Main-> Location: / usr / bin / pyuicEclipse --- obviously change this to your
- PyUIC- > Main- > : ${resource_loc}
- PyUIC- > - " "
- PyUIC- > - " "
- PyUIC- > Common - File, .
linux, , , , , :)