0

So I wanted to install ReText, which seems to be a rather nice Markdown and reStructuredText Editor. I tried to install it from PyPI, and running setup.py went nicely, it all installed rather nice, but I get this error now:

Traceback (most recent call last):
  File "/usr/bin/retext", line 64, in <module>
    main()
  File "/usr/bin/retext", line 54, in main
    window = ReTextWindow()
  File "/usr/lib/python2.7/site-packages/ReText/window.py", line 173, in __init__
    self.aboutWindowTitle = self.aboutWindowTitle % app_name
TypeError: unsupported operand type(s) for %: 'QString' and 'str'

Pinpointing the error to a solution is beyond me right now, I suspect it is a version issue with Qt, but I'm not sure at all about this.

OS: Fedora 19, Arch: x86_64,

2

1 Answer 1

0

This works for me on Fedora 19 x84_64. There are various fallbacks for Python/Qt, so perhaps you miss some dependency?

sudo yum install python3-PyQt4 python3-docutils python-pyside
tar xf ReText-4.1~beta1.tar.gz
cd ReText-4.1~beta1
PYTHONPATH=/path/to/Markups-0.3 ./retext.py
1
  • I was missting python3-docutils, thanks for the hint! For some reason, Markups-0.3 installs into the python2.7/site-packages, and is always missing for Python 3. I still have to assign the path to the directory where I've unpacked Markups-0.3 to. Dumb, but I guess setup.py doesn't really know what to do as of yet either.
    – polemon
    Aug 17, 2013 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .