I usually try to avoid Qt apps, but I needed a way to preview markdown
text.  One option was pandoc, but it needed to install 100+ packages
as dependancies.  Another option was retext, which only required a few
new packages.

So I installed retext.  The install seemed to go fine, but it doesn't run:

   $ retext
   Traceback (most recent call last):
     File "/usr/lib64/python3.4/site-packages/ReText/__init__.py", line 16, in 
<module>
       from PyQt5 import QtCore, QtPrintSupport, QtGui, QtWidgets, QtWebKit, 
QtWebKitWidgets
   ImportError: cannot import name 'QtPrintSupport'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/usr/lib/python-exec/python3.4/retext", line 23, in <module>
       from ReText import QtCore, QtWidgets, QtWebKit, datadirs, globalSettings
     File "/usr/lib64/python3.4/site-packages/ReText/__init__.py", line 19, in 
<module>
       from PyQt4 import QtCore, QtGui, QtWebKit
   RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the 
QObject class

Two questions:

 1) If retext requires Qt with printing support, shouldn't that be a
    package dependency?  [Does retext require Qt printing support?]

 2) What is the "RuntimeError:" trying to say?  Aren't PyQt4 and PyQt5
    independent from each other?  Who cares if they both wrap the same
    QOobject class (in fact, I would have guessed that the both do a
    _lot_ of things).  [Perhaps this is more of a Python question than
    a Gentoo question?]

-- 
Grant Edwards               grant.b.edwards        Yow! I just went below the
                                  at               poverty line!
                              gmail.com            


Reply via email to