Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33826 - [scribes] wrong python version used internally

Attached to Project: Community Packages
Opened by Ray Rashif (schivmeister) - Tuesday, 12 February 2013, 10:02 GMT
Last edited by Balló György (City-busz) - Wednesday, 04 September 2013, 21:15 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

There is currently a non-intrusive error upon starting the program:

== Begin Output ==
File "/usr/lib/scribes/GenericPlugins/WordCompletion/SuggestionProcess/ScribesWordCompletionSuggestionGenerator.py", line 5, in <module>
from SCRIBES.Utils import fork_process
ImportError: No module named 'SCRIBES'
Traceback (most recent call last):
File "/usr/lib/scribes/GenericPlugins/RecentOpen/ExternalProcess/ScribesRecentFilesIndexer.py", line 8, in <module>
from gobject import MainLoop, threads_init
File "/usr/lib/python2.7/site-packages/gobject/__init__.py", line 26, in <module>
from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
File "/usr/lib/python2.7/site-packages/glib/__init__.py", line 22, in <module>
from glib._glib import *
ImportError: /usr/lib/libpyglib-2.0-python2.so.0: undefined symbol: _Py_ZeroStruct
Traceback (most recent call last):
File "/usr/lib/scribes/GenericPlugins/WordCompletion/IndexerProcess/ScribesWordCompletionIndexer.py", line 3, in <module>
from SCRIBES.Utils import fork_process
ImportError: No module named 'SCRIBES'
== End Output ==

The scribes codebase basically hardcodes the python path, instead of getting it from the system. This is /usr/bin/python and as such it unintentionally picks up our python3.

As one could probably tell, this interferes with features for word/auto completion. A bug has already been filed upstream independently, [1] and I recommend the patch [2] be applied to our package tentatively until the next release.

[1] https://bugs.launchpad.net/scribes/+bug/774119
[2] https://bugs.launchpad.net/scribes/+bug/774119/+attachment/2099759/+files/python_version.patch
This task depends upon

Closed by  Balló György (City-busz)
Wednesday, 04 September 2013, 21:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  scribes-0.4.954-4

Loading...