Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61683 - The vte python module fails to import.
Summary: The vte python module fails to import.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 81006 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-25 12:53 UTC by Jason Gaiser
Modified: 2005-02-07 08:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
..../vtemodule.c.diff (vtemodule.c.diff,445 bytes, patch)
2005-01-27 03:39 UTC, Roland Bär
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Gaiser 2004-08-25 12:53:22 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)



Reproducible: Always
Steps to Reproduce:

1. Start up the python interpreter:
$ python

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


Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function (initvte)



Expected Results:  
No error.

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.

I've already submitted this bug to the gnome bugzilla database:
http://bugzilla.gnome.org/show_bug.cgi?id=150760

However, I figure its something we can easily fix with a patch so I'm submitting
it here as well.
Comment 1 David Stanek 2004-11-07 07:49:51 UTC
It looks like this has been fixed in the newer x11-libs/vte ebuilds. I am using x11-libs/vte-0.11.10-r1 with python2.3.4 and do not see the error.
Comment 2 Ale 2005-01-18 14:27:50 UTC
>>> import vte
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function (initvte)

on my a64 machine (gentoo 2004.3)
Comment 3 Roland Bär 2005-01-27 03:39:53 UTC
Created attachment 49649 [details, diff]
..../vtemodule.c.diff

Please apply to vte-0.11.11/python/vtemodule.c
(The Debian guys had the same problem, same fix)
Comment 4 Fernando Serboncini (RETIRED) gentoo-dev 2005-01-30 19:36:29 UTC
In portage now. Thanks for the report and the patch.
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2005-02-07 08:29:48 UTC
*** Bug 81006 has been marked as a duplicate of this bug. ***