On Mon, Jun 27, 2016 at 10:50 PM, Edward K. Ream <edream...@gmail.com> wrote: > On Mon, Jun 27, 2016 at 7:31 AM, Zoom.Quiet <zoom.qu...@gmail.com> wrote: > >> >> what i forget something? >> >> $ python /opt/bin/leo/launchLeo.py >> >> File "/opt/bin/Leo-5.2-final/leo/plugins/qt_text.py", line 434, in >> <module> >> class LeoLineTextWidget(QtWidgets.QFrame): >> AttributeError: 'NoneType' object has no attribute 'QFrame' > > > The trace tells us that QtWidgets is None. > > The crash happens in qt_text.py. This file contains this line: > > from leo.core.leoQt import isQt5, QtCore, QtGui, Qsci, QtWidgets > > That is, Leo uses leoQt.py to import QtWidgets. You can see exactly what > leoQt.py is doing by setting trace = True in leoQt.py. > > In short, Leo is not able to import PyQt4 or PyQt5. >
Yes, sorry for all, forget under python install PyQt4 because my pyenv had to reinstall all. thanks for all, leo re-working now. > Edward > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to leo-editor+unsubscr...@googlegroups.com. > To post to this group, send email to leo-editor@googlegroups.com. > Visit this group at https://groups.google.com/group/leo-editor. > For more options, visit https://groups.google.com/d/optout. -- Life's Pathetic, Let's Pythonic! 人生苦短, Python是岸! 俺: http://zoomquiet.io 授: http://creativecommons.org/licenses/by-sa/2.5/cn/ 怒: 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization be learnning! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.