Re: [ANNOUNCE] ugit: a pyqt-based git gui // was: Re: If you would write git from scratch now, what would you change?
- From
David <davvid@gmail.com>
- Date
- Dec 11, 2007, 20:54 UTC
- Message-ID
- <402731c90712111254q1cb99c6al47538971d93b4592@mail.gmail.com>
- In-Reply-To
- <e5bfff550712111133j66c4b9adx9f57661cc720aa41@mail.gmail.com>
On Dec 11, 2007 11:33 AM, Marco Costalba <mcostalba@gmail.com> wrote:
Show 12 quoted lines
> On Dec 11, 2007 8:14 PM, Jason Sewall <jasonsewall@gmail.com> wrote: > > On Dec 11, 2007 1:20 PM, Marco Costalba <mcostalba@gmail.com> wrote: > > > ./configure --prefix=/usr fixed that for me (and I'm sure there's a > > way to tell python to look in /usr/local... too, but I can't be > > bothered with that. > > > > ./configure --prefix=$HOME/bin > > (half) worked thanks. >
Hello
To allow python to find the libs you just have to set $PYTHONPATH to include $PREFIX/lib/python2.4/site-packages (change that 2.4 to 2.5 if you're on python2.5). Of course in a packaged form that wouldn't be an issue since $PREFIX=/usr, but for test-driving it you'd probably need to set PYTHONPATH. Are there any distros that don't use $PREFIX/lib/python2.x/site-packages? If not, it wouldn't hurt to add an assumption about the installation layout into the main script.
Show 7 quoted lines
> > I re-installed without the prefix and that error disappeared, but now I get > > Traceback (most recent call last): > > File "/usr/local/bin/ugit", line 12, in <module> > > view = GitView (app.activeWindow()) > > File "../py/views.py", line 15, in __init__ > > File "default/ui/Window.py", line 43, in setupUi > > AttributeError: setLeftMargin
As for the setLeftMarginError -- That could be because you have py/qt 4.2. The ui files were generated with designer-qt4 (4.3.x) so you might need a more recent pyqt4. I'll see if I can grab an older version of pyqt and use it for all of the ui designs (.ui files are probably forward but not backwards compatible).