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 518824 - nautilus-python is not sync with last changes in libnautilus-extension
nautilus-python is not sync with last changes in libnautilus-extension
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
Git Master
Other All
: Normal critical
: ---
Assigned To: Johan (not receiving bugmail) Dahlin
Johan (not receiving bugmail) Dahlin
: 510875 524453 532830 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-02-26 12:04 UTC by izi
Modified: 2008-06-09 22:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for the bug 518824 (1.35 KB, patch)
2008-02-26 12:06 UTC, izi
committed Details | Review

Description izi 2008-02-26 12:04:25 UTC
Steps to reproduce:
1. copy a nautilus-python example script and put it in ~/.nautilus/python-extensions
2. restart nautilus
3. nautilus-python fails to load


Stack trace:

ImportError: /usr/lib/nautilus-python/nautilus.so: undefined symbol: nautilus_file_info_get_vfs_file_info

(nautilus:24701): Nautilus-Python-WARNING **: nautilus_python_init_python failed
seahorse nautilus module initialized

Other information:
I provide a patch of nautilus.def that fixes this problem and that adds also definition for added c functions:

 - nautilus_file_info_get_file_type()
 - nautilus_file_info_get_location()
 - nautilus_file_info_get_activation_uri()
 - nautilus_file_info_get_parent_location()

Note: I also uploaded this patch in ubuntu launchpad:
https://bugs.launchpad.net/ubuntu/+source/nautilus-python/+bug/195322
Comment 1 izi 2008-02-26 12:06:18 UTC
Created attachment 105974 [details] [review]
patch for the bug 518824
Comment 2 didroe 2008-05-22 08:26:48 UTC
I can confirm this is a problem. I'm using Fedora 9 with Nautilus 2.22.2 and nautilus-python 0.4.3.

There seem to be 3 issues with it:
  - undefined symbol: nautilus_file_info_get_vfs_file_info. ie. the bug above. Using the supplied patch fixes that.
  - it puts it's files in /usr/lib64/nautilus/extensions-1.0, it only worked when I moved the files to the extensions-2.0 folder.
  - it's linked to libpython2.5.so instead of libpython2.5.so.1.0 which means I need the devel package for python installed for it to work.

I'm not sure if the last one is a Fedora packaging problem or whether it's an issue with nautilus-python.
Comment 3 Germán Poo-Caamaño 2008-05-31 15:17:04 UTC
I also confirm the bug.

I can reproduce the error with the moduleset gnome-2.22 (jhbuild).
Comment 4 Germán Poo-Caamaño 2008-05-31 15:28:41 UTC
I have tested the patch.

Withouth the patch it is not possible to test nautilus extensions written in Python. I'm not sure how distributions are solving this problem, but certainly I do not have this problem in Ubuntu Hardy from packages, but this problem exists with a pristine version from upstream.

(Re-confirming the but, I had choosen NEEDINFO previously by mistake).
Comment 5 Johan (not receiving bugmail) Dahlin 2008-05-31 15:31:20 UTC
Okay, sounds good to me, can you commit it Germán?
Comment 6 Germán Poo-Caamaño 2008-05-31 16:45:01 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 7 Germán Poo-Caamaño 2008-06-09 22:07:29 UTC
*** Bug 532830 has been marked as a duplicate of this bug. ***
Comment 8 Germán Poo-Caamaño 2008-06-09 22:17:47 UTC
*** Bug 510875 has been marked as a duplicate of this bug. ***
Comment 9 Germán Poo-Caamaño 2008-06-09 22:23:28 UTC
*** Bug 524453 has been marked as a duplicate of this bug. ***