[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Weechat-dev] [bug #31091] python plugin: import gtk throws error
From: |
anonymous |
Subject: |
[Weechat-dev] [bug #31091] python plugin: import gtk throws error |
Date: |
Fri, 28 Mar 2014 03:11:44 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36 |
Follow-up Comment #6, bug #31091 (project weechat):
I realize this bug has been sitting around for three years...but I'm pretty
sure this is a bug in weechat. It seems quite reproducible. First, we start
with python on the command line, just to demonstrate that things are working
in general:
Python 2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pynotify
>>>
Now, we load the lnotify.py script in weechat, and it works just fine:
/script install lnotify.py
python: loading script "/home/username/.weechat/python/lnotify.py"
python: registered script "lnotify", version 0.1.3 (lnotify - A
libnotify script for weechat)
We remove the script:
/script remove lnotify.py
python: unloading script "lnotify"
python: script removed:
/home/username/.weechat/python/autoload/lnotify.py
python: script removed: /home/username/.weechat/python/lnotify.py
And now try to load it again:
python: loading script "/home/username/.weechat/python/lnotify.py"
python: stdout/stderr: Traceback (most recent call last):
python: stdout/stderr: File
"/home/username/.weechat/python/lnotify.py", line 20, in <module>
python: stdout/stderr: import weechat, string, pynotify
python: stdout/stderr: File
"/usr/lib64/python2.7/site-packages/gtk-2.0/pynotify/__init__.py",
line 19, in <module>
python: stdout/stderr: import gtk
python: stdout/stderr: File
"/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 42,
in <module>
python: stdout/stderr: import gdk
python: stdout/stderr: ImportError: No module named gdk
python: unable to parse file
"/home/username/.weechat/python/lnotify.py"
KABOOM!
This happens every time. Fedora 19, python 2.7.5, weechat 0.4.3.
Now, the problematic "gdk" module is loaded through some sort of weird magic,
so maybe weechat is doing something w/r/t dynamic library symbol lookups that
is making this fragile?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31091>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Weechat-dev] [bug #31091] python plugin: import gtk throws error,
anonymous <=