andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Exception + garbled UI when trying to preview Markdown on v12.10.1 #62

Closed vi closed 12 years ago

vi commented 12 years ago

Trying Enki v12.10.1(8d683782) in my system: preview does not work:

CRITICAL:root:Traceback (most recent call last):
  File "/mnt/sda8/src/git/enki/bin/../enki/plugins/preview/__init__.py", line 39, in _onDocumentChanged
  File "/mnt/sda8/src/git/enki/bin/../enki/plugins/preview/__init__.py", line 65, in _createDock
  File "/mnt/sda8/src/git/enki/bin/../enki/plugins/preview/preview.py", line 120, in __init__
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/__init__.py", line 177, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/Loader/loader.py", line 21, in loadUi
    return self.parse(filename)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 804, in parse
    document = parse(filename)
  File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 862, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 579, in parse
    source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '/mnt/sda8/src/git/enki/bin/../enki/plugins/preview/Preview.ui'

Additionally, the user interface seems garbled by the attempt to load preview:

"Preview" is overlapped with the main menu

andreikop commented 12 years ago

Looks like you've checked out older version in your git, and python interpreter didn't update .pyc files. Try find -name '*.pyc' | xargs rm -rf, reopen if you are still having problems.

andreikop commented 12 years ago

New .py file appeared in master, therefore if

vi commented 12 years ago

find -name '*.pyc' -delete fixed the issue.