LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Bleachbit does not launch... (http://www.linuxquestions.org/questions/slackware-14/bleachbit-does-not-launch-889182/)

Robert.Thompson 06-30-2011 08:05 AM

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,

linus72 06-30-2011 08:15 AM

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


Robert.Thompson 06-30-2011 08:25 AM

Quote:

Originally Posted by linus72 (Post 4400213)
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#


Robert.Thompson 06-30-2011 10:49 AM

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,

disturbed1 06-30-2011 12:08 PM

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).

Robert.Thompson 06-30-2011 12:49 PM

Quote:

Originally Posted by disturbed1 (Post 4400467)
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,

Diantre 06-30-2011 01:02 PM

Quote:

Originally Posted by Robert.Thompson (Post 4400506)
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.

disturbed1 06-30-2011 01:15 PM

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 :)

Diantre 06-30-2011 01:25 PM

Quote:

Originally Posted by disturbed1 (Post 4400537)
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.

Robert.Thompson 06-30-2011 01:48 PM

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,

Diantre 06-30-2011 02:00 PM

Quote:

Originally Posted by Robert.Thompson (Post 4400570)
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.

disturbed1 06-30-2011 02:04 PM

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 ;)

Diantre 06-30-2011 02:07 PM

Quote:

Originally Posted by disturbed1 (Post 4400589)
@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.

Robert.Thompson 06-30-2011 03:00 PM

Quote:

Originally Posted by Diantre (Post 4400593)
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?

disturbed1 06-30-2011 04:32 PM

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


All times are GMT -5. The time now is 06:22 AM.