Extra; Options no longer opens

26 views
Skip to first unread message

Graham Harris

unread,
Feb 24, 2018, 8:41:50 PM2/24/18
to wikidpad-devel
Hi,

suddenly, I can no longer get to the Extra; Options menu.

At the same time I get this new error sequence on

ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED
Traceback (most recent call last):
  File "lib/pwiki/PersonalWikiFrame.py", line 1995, in <lambda>
    _(u'Set options'), lambda evt: self.showOptionsDialog(),

...

There were some updates to Python pushed out to Linux Mint 18 (Ubuntu Xenial; Debian) repositories today,
python-apt (1.1.0~beta1build1) to 1.1.0~beta1ubuntu0.16.04.1
python-apt-common (1.1.0~beta1build1) to 1.1.0~beta1ubuntu0.16.04.1
python3-apt (1.1.0~beta1build1) to 1.1.0~beta1ubuntu0.16.04.1

However, reverting to the 1.1.0~beta1build1 versions of each of these three doesn't immediately seem to fix it. I will try a reboot and get back to you....


The most recent change to wx was on 11 January:
Installed the following packages:
libwxbase3.0-0v5 (3.0.2+dfsg-1.3ubuntu0.1)
libwxgtk3.0-0v5 (3.0.2+dfsg-1.3ubuntu0.1)
python-wxgtk3.0 (3.0.2.0+dfsg-1build1)
python-wxversion (3.0.2.0+dfsg-1build1)

Graham Harris

unread,
Feb 24, 2018, 8:53:32 PM2/24/18
to wikidpad-devel
update: rebooting doesn't fix it either. The more complete error message is:


ImportError: /usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_html2.x86_64-linux-gnu.so: undefined symbol: wxEVT_WEBVIEW_NAVIGATED
Traceback (most recent call last):
  File "lib/pwiki/PersonalWikiFrame.py", line 1995, in <lambda>
    _(u'Set options'), lambda evt: self.showOptionsDialog(),
  File "lib/pwiki/PersonalWikiFrame.py", line 4751, in showOptionsDialog
    dlg = OptionsDialog(self, -1, startPanelName=startPanelName)
  File "lib/pwiki/OptionsDialog.py", line 852, in __init__
    panel = pn(self.ctrls.panelPages, self, self.pWiki)
  File "lib/pwiki/MainApp.py", line 880, in optionsPanelFactoryWrapper
    return factory(parent, optionsDlg, wx.GetApp())
  File "/home/graham/bin/WikidPad2_3beta16/user_extensions/__init__.py", line 711, in __init__
    langs = [unicode(lang_def[0], "utf-8", "ignore") for lang_def in get_all_lexers()]
  File "/home/graham/bin/WikidPad2_3beta16/user_extensions/pygments/lexers/__init__.py", line 53, in get_all_lexers
    for lexer in find_plugin_lexers():
  File "/home/graham/bin/WikidPad2_3beta16/user_extensions/pygments/plugin.py", line 53, in find_plugin_lexers
    yield entrypoint.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/dist-packages/mako/ext/pygmentplugin.py", line 7, in <module>
    from pygments.lexers.web import \
ImportError: No module named pygments.lexers.web

I do have a file ~/bin/WikidPad2_3beta16/user_extensions/pygments/lexers/web.py .

Anyone got ideas please?

Michael Butscher

unread,
Mar 7, 2018, 10:20:59 PM3/7/18
to wikidpa...@googlegroups.com
I think the problem is that pygments is not "officially" installed. Now the
pygments contained in the PrettyCode plugin searches for additional lexers to
support even more languages, finds one for mako which in turn tries to import a
part of pygments which can't be found and fails.


As a solution you should first of all in "user_extensions" delete the file
"__init__.py" and (if present) "__init__.pyc", "__init__.pyo" as well as the
whole "pygments" subdirectory. If you have modified some of the files you should
of course keep copies of them.


From

https://github.com/WikidPad/Accessory-PrettyCode/releases/tag/PrettyCode-20170308-py-2.6

download "PrettyCode20170308_py2.6_basedOn_pygments2.2.0.zip" (actually the
version was meant to be 20180308, I made a typo) and place the file AS IT IS
(without unpacking) in "user_extensions".

Since 2.3beta08, WikidPad can handle plugins in ZIP-files.


This new version of PrettyCode doesn't search for additional lexers anymore.


Michael

Graham Harris

unread,
Mar 13, 2018, 8:38:28 PM3/13/18
to wikidpad-devel
Thanks Michael, that did indeed fix the problem.


Reply all
Reply to author
Forward
0 new messages