[opensuse] Python not working in 11.4
Several Python applications do not work for me in 11.4 Compiz settings manager: anixx@anixx-desktop:~> ccsm /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: PyCapsule_Import could not import module "gi" Traceback (most recent call last): File "/usr/bin/ccsm", line 129, in <module> mainWin = ccm.MainWin(context, plugin, category) File "/usr/lib/python2.7/site-packages/ccm/Window.py", line 59, in __init__ self.MainPage = MainPage(self, self.Context) File "/usr/lib/python2.7/site-packages/ccm/Pages.py", line 1188, in __init__ pluginWindow = PluginWindow(self.Context) File "/usr/lib/python2.7/site-packages/ccm/Widgets.py", line 1608, in __init__ self.props.hscrollbar_policy = gtk.POLICY_NEVER ImportError: PyCapsule_Import could not import module "gi" Itmages upload tool: anixx@anixx-desktop:~> upload-picture /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: PyCapsule_Import could not import module "gi" (upload-picture:7931): libnotify-WARNING **: Missing symbol 'gdk_screen_make_display_name' Traceback (most recent call last): File "/usr/bin/upload-picture", line 142, in <module> else: daemon.run() File "/usr/bin/upload-picture", line 91, in run main(self.filelist) File "/usr/bin/upload-picture", line 75, in main dialog = SummaryDialog(argv) File "/usr/lib/python2.7/site-packages/itmages/widgets.py", line 1009, in __init__ self.show_notify_message(message, 'nc') File "/usr/lib/python2.7/site-packages/itmages/widgets.py", line 1023, in show_notify_message self.notification.props.icon_name = icon ImportError: PyCapsule_Import could not import module "gi" and others. What should I do to have them working? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 04, 2011 at 09:54:36AM +0400, Ilya Chernykh wrote:
Several Python applications do not work for me in 11.4
Compiz settings manager:
anixx@anixx-desktop:~> ccsm /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: PyCapsule_Import could not import module "gi" [...]
Googling that error indicates that this is caused by some missing package on your system. 'strace ccsm' should give you a hint about what python wanted to load before it died. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 04 April 2011 12:39:39 Michael Schroeder wrote:
Compiz settings manager:
anixx@anixx-desktop:~> ccsm /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception from gtk import _gtk ImportError: PyCapsule_Import could not import module "gi" [...]
Googling that error indicates that this is caused by some missing package on your system. 'strace ccsm' should give you a hint about what python wanted to load before it died.
I've got something like this: write(2, " File \"/usr/lib/python2.7/site-"..., 81 File "/usr/lib/python2.7/site-packages/ccm/Widget s.py", line 1608, in __init__ ) = 81 open("/usr/lib/python2.7/site-packages/ccm/Widgets.py", O_RDONLY) = 8 fstat(8, {st_mode=S_IFREG|0644, st_size=56854, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5e4f568000 read(8, "# -*- coding: UTF-8 -*-\n\n# This "..., 4096) = 4096 read(8, "k.ListStore(str, gtk.gdk.Pixbuf,"..., 4096) = 4096 read(8, "x = gtk.VBox()\n self.box."..., 4096) = 4096 read(8, "one\n\n _x0 = 0\n _y0 "..., 4096) = 4096 read(8, " gobject.TYPE_NONE, (gobject.TYP"..., 4096) = 4096 read(8, " 2, pi)\n cr.line_to (x1 -"..., 4096) = 4096 read(8, ", y2 + radius, radius) \\\n "..., 4096) = 4096 read(8, " value = setting.Value"..., 4096) = 4096 read(8, "key_press_event (self, widget, e"..., 4096) = 4096 read(8, "= self.match\n\n prefix = s"..., 4096) = 4096 read(8, "e)\n self._entry.activate "..., 4096) = 4096 read(8, "ror has occured\"))\n self."..., 4096) = 4096 read(8, "name = \"\"\n _tabel = None"..., 4096) = 4096 read(8, "s):\n for plugin in po"..., 4096) = 3606 write(2, " ", 4 ) = 4 write(2, "self.props.hscrollbar_policy = g"..., 48self.props.hscrollbar_policy = gtk.POLICY_NEVER ) = 48 close(8) = 0 munmap(0x7f5e4f568000, 4096) = 0 write(2, "ImportError", 11ImportError) = 11 write(2, ": ", 2: ) = 2 write(2, "PyCapsule_Import could not impor"..., 45PyCapsule_Import could not import module "gi") = 45 write(2, "\n", 1 ) = 1 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f5e5a2a82d0}, {0x7f5e5a549fc6, [], SA_RESTORER, 0x7 f5e5a2a82d0}, 8) = 0 exit_group(1) = ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 04, 2011 at 12:55:51PM +0400, Ilya Chernykh wrote:
I've got something like this:
write(2, " File \"/usr/lib/python2.7/site-"..., 81 File "/usr/lib/python2.7/site-packages/ccm/Widget s.py", line 1608, in __init__ ) = 81 open("/usr/lib/python2.7/site-packages/ccm/Widgets.py", O_RDONLY) = 8 [...] ) = 48 close(8) = 0 munmap(0x7f5e4f568000, 4096) = 0 write(2, "ImportError", 11ImportError) = 11
Hmm, that doesn't help much. What's output before those lines? Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 04 April 2011 13:06:02 Michael Schroeder wrote:
I've got something like this:
write(2, " File \"/usr/lib/python2.7/site-"..., 81 File "/usr/lib/python2.7/site-packages/ccm/Widget s.py", line 1608, in __init__ ) = 81 open("/usr/lib/python2.7/site-packages/ccm/Widgets.py", O_RDONLY) = 8 [...] ) = 48 close(8) = 0 munmap(0x7f5e4f568000, 4096) = 0 write(2, "ImportError", 11ImportError) = 11
Hmm, that doesn't help much. What's output before those lines?
I have attached the full output.
On Monday 04 April 2011 13:06:02 Michael Schroeder wrote:
Hmm, that doesn't help much. What's output before those lines?
I spotted the problem, and now ccsm works well. It seems that when updating from 11.3 to 11.4 the system did not remove the package libgirepository-1_0-0-0.6.9-1.10.x86_64.rpm from 11.3 repository while installed libgirepository-1_0-1-0.10.1-3.1.x86_64.rpm from 11.4 The packages have common files. It seems the system interpreted the -0- as a part of the name rather than version number. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Apr 04, 2011 at 01:56:28PM +0400, Ilya Chernykh wrote:
On Monday 04 April 2011 13:06:02 Michael Schroeder wrote:
Hmm, that doesn't help much. What's output before those lines?
I spotted the problem, and now ccsm works well.
It seems that when updating from 11.3 to 11.4 the system did not remove the package libgirepository-1_0-0-0.6.9-1.10.x86_64.rpm from 11.3 repository while installed libgirepository-1_0-1-0.10.1-3.1.x86_64.rpm from 11.4
The packages have common files.
It seems the system interpreted the -0- as a part of the name rather than version number.
It *is* part of the name. 11.3 has 'libgirepository-1_0-0', 11.4 has 'libgirepository-1_0-1'. I don't think this makes any sense to put some version information in the name when you mustn't have multiple versions installed in parallel. I opened bug#684826 about that. Anyway, I'm glad that it now works for you. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Ilya Chernykh
-
Michael Schroeder