Bradley Lucier wrote:
> On Oct 22, 2009, at 8:53 PM, Bradley Lucier wrote:
>
>
>> I built the latest fink on 10.5.8 ppc and installed treeline
>> (compiled on this machine),
>>
>> i treeline
>> 1.2.3-1 Tree-based organization tool
>>
>> When I try to start treeline, I get
>>
>> [brad:~/Desktop] lucier% treeline
>> Traceback (most recent call last):
>> File "/sw/lib/treeline/treeline.py", line 167, in <module>
>> main()
>> File "/sw/lib/treeline/treeline.py", line 156, in main
>> win = treemainwin.TreeMainWin()
>> File "/sw/lib/treeline/treemainwin.py", line 234, in __init__
>> self.setPasteAvail()
>> File "/sw/lib/treeline/treemainwin.py", line 427, in setPasteAvail
>> text = self.clipText()
>> File "/sw/lib/treeline/treemainwin.py", line 434, in clipText
>> text = unicode(QtGui.QApplication.clipboard().text('xml'))
>> TypeError: argument 1 of QClipboard.text() has an invalid type
>>
>> Any suggestions?
>>
>
> On line 434 of treeline.py, I made the following change:
>
> def clipText(self):
> """Return text from the clipboard"""
> try:
> # text = unicode(QtGui.QApplication.clipboard().text('xml'))
> text = unicode(QtGui.QApplication.clipboard().text())
> if not text:
> text = unicode(QtGui.QApplication.clipboard().text())
> except UnicodeError:
> text = ''
> return text
>
> and it now seems to work. I don't know python, and I don't know what
> the problem was.
>
> Brad
>
>
Interesting. I'll see if I can reproduce your issue on a clean
install. My guess is that there's a dependency missing.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users