FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-24-2010, 01:22 AM
"Steven P. Ulrick"
 
Default Fedora 12: issue with PyGTK2/Python based applications

Hello Everyone
I have been having a very annoying problem with a lot of Python/PyGTK2
based applications. I can only run them as root. If I try to run them as
a regular user, they fail somewhat like this:

[steve@localhost ~]$ listen
Traceback (most recent call last):
File "listen", line 37, in <module>
import gobject
ImportError: No module named gobject
[steve@localhost ~]$


[steve@localhost ~]$ bleachbit
Traceback (most recent call last):
File "/usr/bin/bleachbit", line 41, in <module>
import gtk
ImportError: No module named gtk
[steve@localhost ~]$

I tried re-compiling the pygtk2 SRPM from Rawhide. I successfully updated
with the resulting RPM's. bleachbit and listen both started working as a
regular user! Unfortunately, I then rebooted into the latest kernel. The
result was that listen and bleachbit no longer worked as a regular user...
I have since used "yum downgrade" to downgrade back to the original pygtk2
RPM's.

So, does any one have any great ideas? Is anyone else having this same
issue?

Thanks in advance for any help you can give me.

Steven P. Ulrick
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-24-2010, 04:45 AM
"Paul W. Frields"
 
Default Fedora 12: issue with PyGTK2/Python based applications

On Tue, Feb 23, 2010 at 08:22:50PM -0600, Steven P. Ulrick wrote:
> Hello Everyone
> I have been having a very annoying problem with a lot of Python/PyGTK2
> based applications. I can only run them as root. If I try to run them as
> a regular user, they fail somewhat like this:
>
> [steve@localhost ~]$ listen
> Traceback (most recent call last):
> File "listen", line 37, in <module>
> import gobject
> ImportError: No module named gobject
> [steve@localhost ~]$
>
>
> [steve@localhost ~]$ bleachbit
> Traceback (most recent call last):
> File "/usr/bin/bleachbit", line 41, in <module>
> import gtk
> ImportError: No module named gtk
> [steve@localhost ~]$
>
> I tried re-compiling the pygtk2 SRPM from Rawhide. I successfully updated
> with the resulting RPM's. bleachbit and listen both started working as a
> regular user! Unfortunately, I then rebooted into the latest kernel. The
> result was that listen and bleachbit no longer worked as a regular user...
> I have since used "yum downgrade" to downgrade back to the original pygtk2
> RPM's.
>
> So, does any one have any great ideas? Is anyone else having this same
> issue?
>
> Thanks in advance for any help you can give me.

Hi Steven, I know there is nothing wrong with pygtk2 itself in F12, as
I am currently using it for a side project.

Did you have a problem with an interrupted yum transaction at some
point? Try running 'package-cleanup --problems' to find out.

--
Paul W. Frields http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
http://redhat.com/ - - - - http://pfrields.fedorapeople.org/
Where open source multiplies: http://opensource.com
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 02-24-2010, 10:44 AM
"Steven P. Ulrick"
 
Default Fedora 12: issue with PyGTK2/Python based applications

> On Tue, Feb 23, 2010 at 08:22:50PM -0600, Steven P. Ulrick wrote:
> > Hello Everyone
> > I have been having a very annoying problem with a lot of Python/PyGTK2
> > based applications. I can only run them as root. If I try to run them
as
> > a regular user, they fail somewhat like this:
> >
> > [steve@localhost ~]$ bleachbit
> > Traceback (most recent call last):
> > File "/usr/bin/bleachbit", line 41, in <module>
> > import gtk
> > ImportError: No module named gtk
> > [steve@localhost ~]$
> >

> > Thanks in advance for any help you can give me.
>
> Hi Steven, I know there is nothing wrong with pygtk2 itself in F12, as
> I am currently using it for a side project.
>
> Did you have a problem with an interrupted yum transaction at some
> point? Try running 'package-cleanup --problems' to find out.

Hello Paul
Here is the result of 'package-cleanup --problems':

[root@localhost ~]# package-cleanup --problems
Loaded plugins: blacklist, fastestmirror, presto, refresh-packagekit
No Problems Found
[root@localhost ~]#

I know of at least one other person on Fedora 12 that is not having this
issue. But I want to re-state something from my original message and get
your comments on that:
1. Going from the assumption/possibility that pygtk2 might be broken on
Fedora 12, I grabbed the pygtk2 SRPM from Rawhide and successfully rebuilt
it.
2. I then successfully ran "rpm -Fvh" on the resulting RPM's.
3. I then opened up a terminal, and since I had not yet logged out and
logged back in, I ran "su - steve"
4. I then re-attempted to run "bleachbit" and "listen" (the two Python
based applications that I am referring to for testing purposes.) The
result was that I could now run both applications as a regular user!

This joy was short lived...

5. I then rebooted, because the kernel had been updated recently. After
rebooting, and logging back in, I tried to run "listen" and "bleachbit"
again. This time I could NOT run them as a regular user.

So, why did upgrading the pygtk2 RPMS temporarily fix my problem, and why
did rebooting result in the problem coming back again? Remember, I did not
run "yum downgrade pygtk2*" until AFTER the reboot, and AFTER I discovered
that my workaround had stopped working...

Steven P. Ulrick
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 01:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org