GNOME Bugzilla – Bug 518824
nautilus-python is not sync with last changes in libnautilus-extension
Last modified: 2008-06-09 22:23:28 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
Created attachment 105974 [details] [review] patch for the bug 518824
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.
I also confirm the bug. I can reproduce the error with the moduleset gnome-2.22 (jhbuild).
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).
Okay, sounds good to me, can you commit it Germán?
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
*** Bug 532830 has been marked as a duplicate of this bug. ***
*** Bug 510875 has been marked as a duplicate of this bug. ***
*** Bug 524453 has been marked as a duplicate of this bug. ***