LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-30-2011, 08:05 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 48
Bleachbit does not launch...


Hello:

I used sbopkg to install Bleachbit.

It does not launch from the 'system' menu - the small icon just bounces and then nothing happens. (user or root)

When I launch it from a terminal, as root, I get the following output:
Code:
bash-4.1# bleachbit
Traceback (most recent call last):
  File "/usr/bin/bleachbit", line 41, in <module>
    import gtk
ImportError: No module named gtk
bash-4.1#
I searched sbopk for 'gtk' but there are a millon hits.

It seems that I have these gtk packages installed:

Code:
gtk+-1.2.10-i486-5
gtk+2-2.24.4-i486-1
gtkmm-2.24.0-i486-1_SBo


Does anyone know what I need to do to get Bleachbit to launch?

Thanks,

Last edited by Robert.Thompson; 06-30-2011 at 08:13 AM.
 
Old 06-30-2011, 08:15 AM   #2
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I believe you need pygtk

Code:
[root@nfluxos guest]# slackpkg search py

Looking for py in package list. Please wait... DONE

The list below shows all packages with name matching "py".

[ installed ] - floppy-5.4-i386-3
[ installed ] - python-2.6.6-i486-1
[ installed ] - dbus-python-0.83.1-i486-1
[ installed ] - notify-python-0.1.1-i486-1
[ installed ] - pycairo-1.8.10-i486-1
[ installed ] - pycups-1.9.55-i486-1
[ installed ] - pygobject-2.26.0-i486-1
[ installed ] - pygtk-2.22.0-i486-1
[ installed ] - pyrex-0.9.9-i486-1
[ installed ] - xdpyinfo-1.2.0-i486-1
[ installed ] - xpyb-1.2-i486-1
 
Old 06-30-2011, 08:25 AM   #3
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by linus72 View Post
I believe you need pygtk

Thanks, linus72 but I believe that it is installed:

Code:
bash-4.1# slackpkg search py
Looking for py in package list. Please wait... DONE
The list below shows all packages with name matching "py".
[ installed ] - floppy-5.4-i386-3
[ installed ] - python-2.6.6-i486-1
[ installed ] - dbus-python-0.83.1-i486-1
[ installed ] - notify-python-0.1.1-i486-1
[ installed ] - pycairo-1.8.10-i486-1
[ installed ] - pycups-1.9.55-i486-1
[ installed ] - pygobject-2.26.0-i486-1
[ installed ] - pygtk-2.22.0-i486-1
[ installed ] - pyrex-0.9.9-i486-1
[ installed ] - xdpyinfo-1.2.0-i486-1
[ installed ] - xpyb-1.2-i486-1
You can search specific files using "slackpkg file-search file".
bash-4.1#
 
Old 06-30-2011, 10:49 AM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Here is the code that seems to be not working:

Code:
if 1 == len(sys.argv):
    import gtk
    import bleachbit.GUI
    gui = bleachbit.GUI.GUI()
    gtk.main()
else:
    import bleachbit.CLI
    bleachbit.CLI.process_cmd_line()
Any ideas?

Thanks,
 
Old 06-30-2011, 12:08 PM   #5
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Works fine here on pure 64bit and 32bit.

You can try -
Code:
keith@disturbed1:~$ python
Python 2.6.6 (r266:84292, Nov 27 2010, 17:27:14) 
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> gtk
<module 'gtk' from '/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.pyc'>
>>> exit()
keith@disturbed1:~$
I'd check your python installation(s).
 
Old 06-30-2011, 12:49 PM   #6
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by disturbed1 View Post
Works fine here on pure 64bit and 32bit.

You can try -
Code:
keith@disturbed1:~$ python
Python 2.6.6 (r266:84292, Nov 27 2010, 17:27:14) 
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> gtk
<module 'gtk' from '/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.pyc'>
>>> exit()
keith@disturbed1:~$
I'd check your python installation(s).
I get this:
Code:
bash-4.1# python
Python 2.5.6 (r256:88840, May 30 2011, 20:25:27) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtk
>>>
How do I check my python installation(s)?

Thanks,
 
Old 06-30-2011, 01:02 PM   #7
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 390

Rep: Reputation: 152Reputation: 152
Quote:
Originally Posted by Robert.Thompson View Post
How do I check my python installation(s)?
It seems you're missing the files installed by the pygtk package. Try reinstalling pygtk:

Code:
upgradepkg --reinstall pygtk-2.16.0-i486-1.txz
That's the package for Slackware 13.1.
 
Old 06-30-2011, 01:15 PM   #8
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
or - slackpkg reinstall pygtk

But, it looks like you have multiple, (or)incorrect, (or)downgraded python(s).
Python 2.5.6 (r256:88840, May 30 2011, 20:25:27)

Figure out why you have an old version of Python, and fix this

Last edited by disturbed1; 06-30-2011 at 01:17 PM.
 
Old 06-30-2011, 01:25 PM   #9
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 390

Rep: Reputation: 152Reputation: 152
Quote:
Originally Posted by disturbed1 View Post
But, it looks like you have multiple, (or)incorrect, (or)downgraded python(s).
Python 2.5.6 (r256:88840, May 30 2011, 20:25:27)

Figure out why you have an old version of Python, and fix this
That's right! For Slack13.1 it should be python-2.6.4.
 
Old 06-30-2011, 01:48 PM   #10
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Hello:

Yesterday, when I was having trouble installing HandBreak, AlienBob suggested that my python was not well.

So, is it possible to:
  1. Get rid of my existing python packages
  2. Install new python packages

Where do I get the proper python package(s). When I look using sbopkg, there are many, many choices - I have no idea which one to install.

I have never seen anything like python-2... in the sbopkg list.

I tried the 'reinstall' suggested above but bleachbit still won't launch.

If my python is broken, how can I fix it or replace it?

Thanks for any help on this,
 
Old 06-30-2011, 02:00 PM   #11
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 390

Rep: Reputation: 152Reputation: 152
Quote:
Originally Posted by Robert.Thompson View Post
So, is it possible to:
  1. Get rid of my existing python packages
  2. Install new python packages

Where do I get the proper python package(s). When I look using sbopkg, there are many, many choices - I have no idea which one to install.
For Slackware 13.1, these are the python (and related) packages:
  • python-2.6.4
  • pyrex-0.9.8.5
  • dbus-python-0.83.1
  • notify-python-0.1.1
  • pygtk-2.16.0
  • pygobject-2.20.0
  • pycups-1.9.48
  • pycairo-1.8.8

The python-2.6.4 in in the d series, the rest are in the l series. Probably you won't need to reinstall them all, only python and pygtk. But do check them just in case.

Remove your old python packages using removepkg. If you have your Slackware DVD handy, just change to slackware/d and/or slackware/l and use installpkg. You can also use slackpkg.
 
Old 06-30-2011, 02:04 PM   #12
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
How did you install Python 2.5.x?
Did you make install or did you use installpkg?
Quote:
I used sbopkg to get a new python
SlackBuilds.org does not have Python 2.5, there is a Python3, so 2.5.x came from some where else.

Python is an official Slackware package.

sbopkg - for 3rd party user maintained, unofficial, unsupported packages.
slackpkg - for official, supported, and upstream maintained Slackware packages.

removepkg is how you remove packages installed with pkgtools (installpkg, upgradepkg).

You can find out your installed packages by grepping /var/log/packages -
Code:
ls /var/log/packages/ |grep python
MySQL-python-1.2.3-x86_64-1_SBo
dbus-python-0.83.1-x86_64-1
notify-python-0.1.1-x86_64-1
python-2.6.6-x86_64-1
@Diantre Robert.Thompson is using 13.37. Most likely he attempted to install Python 2.5.x to get gmail-backup to work
 
Old 06-30-2011, 02:07 PM   #13
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 390

Rep: Reputation: 152Reputation: 152
Quote:
Originally Posted by disturbed1 View Post
@Diantre Robert.Thompson is using 13.37. Most likely he attempted to install Python 2.5.x to get gmail-backup to work
I see. I assumed he's using 13.1 because it says so in his user information... Sorry about that.
 
1 members found this post helpful.
Old 06-30-2011, 03:00 PM   #14
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by Diantre View Post
I see. I assumed he's using 13.1 because it says so in his user information... Sorry about that.
I'm sorry about that!

I never thought to change it to 13.37 when I switched.

And I was never able to get Gmail Backup to work so I left it on the cutting-room floor - I guess I have really screwed my system up.

It seems that I have the correct python installed:
Code:
bash-4.1# slackpkg search py
Looking for py in package list. Please wait... DONE
The list below shows all packages with name matching "py".
[ installed ] - floppy-5.4-i386-3
[ installed ] - python-2.6.6-i486-1
[ installed ] - dbus-python-0.83.1-i486-1
[ installed ] - notify-python-0.1.1-i486-1
[ installed ] - pycairo-1.8.10-i486-1
[ installed ] - pycups-1.9.55-i486-1
[ installed ] - pygobject-2.26.0-i486-1
[ installed ] - pygtk-2.22.0-i486-1
[ installed ] - pyrex-0.9.9-i486-1
[ installed ] - xdpyinfo-1.2.0-i486-1
[ installed ] - xpyb-1.2-i486-1
bash-4.1# 
bash-4.1# ls /var/log/packages/ |grep python
dbus-python-0.83.1-i486-1
notify-python-0.1.1-i486-1
python-2.6.6-i486-1
python-pmw-1.3.2-i486-3_SBo
bash-4.1#
Right or wrong?

Perhaps I've broken it?

Last edited by Robert.Thompson; 06-30-2011 at 03:14 PM.
 
Old 06-30-2011, 04:32 PM   #15
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Maybe not

How did you install the other python (2.5.x)?
What do you have in /usr/lib for python?
/usr/lib/python2.6
/usr/lib/python2.5 ?????

You might be able to do a manual removal, then reninstall the original packages.

To manually remove python only as a last resort, and only if the directories are listed correctly below -
Code:
rm -rf /usr/lib/python2.5
rm -rf /usr/include/python2.5
rm -rf /usr/doc/python-2.5*
rm /usr/bin/python2.5*
You could also a (s/m)locate for other files.

Then reinstall python from Diantre's list-
Code:
slackpkg reinstall python pyrex pygtk pygobject pycups pycairo PyQt
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bleachbit v bleachbit(as root) acein1 Linux - Newbie 3 02-22-2013 12:35 PM
bleachbit not running baronobeefdip Linux - Software 2 05-11-2011 06:22 PM
LXer: Keep Your System Clean with BleachBit LXer Syndicated Linux News 0 05-11-2010 04:11 AM
LXer: Clearing junk with BleachBit LXer Syndicated Linux News 0 03-03-2010 07:00 PM
LXer: BleachBit to cleanup unwanted files on your openSUSE LXer Syndicated Linux News 0 04-17-2009 07:30 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration