After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150760 - The vte python module fails to import.
The vte python module fails to import.
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
Nalin Dahyabhai
Depends on:
Blocks:
 
 
Reported: 2004-08-22 08:21 UTC by Jason Gaiser
Modified: 2005-03-17 06:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Jason Gaiser 2004-08-22 08:21:10 UTC
1. Start up the python interpreter:
$ python

2. Import the vte module:
>>> import vte

This results in the following error:
Traceback (most recent call last):
  • File "<stdin>", line 1 in ?
ImportError: dynamic module does not define init function (initvte)

Comment 1 Jason Gaiser 2004-08-22 08:24:47 UTC
This bug appears to be caused by a change in version 1.2 of
vte/python/vtemodule.c.  For some reason, two suspicious underscores appeared in
both the function name('initvte' to 'init_vte') and the first arg to
Py_InitModule('vte' to '_vte').  I'm not a big python guy but I think the
discrepancy between the function name and the name given to DL_EXPORT is to blame.
Comment 2 Manish Singh 2005-03-17 01:58:19 UTC
Yeah, this is pretty obviously a silly screwup. Just rename init_vte to initvte
and all is well.
Comment 3 Manish Singh 2005-03-17 06:45:23 UTC
2005-03-16  Manish Singh  <yosh@gimp.org>

        * python/vtemodule.c: Remove stray underscores so python module
        works again. Fixes bug #150760.