LinuxQuestions.org

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

Diantre 06-30-2011 04:38 PM

It looks as if your python is ok. However, your previous post shows Python 2.5.6 (r256:88840, May 30 2011, 20:25:27) when you type python.

What version does python report in your system. Type:

Code:

python -V

Robert.Thompson 07-02-2011 09:12 AM

Hello:

I have 2 python directories in usr/lib:
  1. python2.5
    site-packages
    gtksourceview2.la
    gtksourceview2.so
  2. python2.6
    has 600+ intems
    DOES NOT HAVE THE GTKSOURCEVIEW STUFF in site packages

# python -V yields: python 2.5.6

I probably used sbopkg to install but not 100% certain.

bgeddy 07-02-2011 09:56 AM

It looks like you may have two versions of python installed with the one pointed to by the symbolic link /usr/bin/python being python2.5. To test this try running python2.5 then python2.6 like this.
Code:

python2.5 -V
python2.6 -V

If both work and report differing versions of python you just need to run the following as root:
Code:

unlink /usr/bin/python
ln -s /usr/bin/python2.6 /usr/bin/python

This will leave python2.5 in place that you can still run with python2.5. I think it would be better to totally uninstall python2.5 as having two versions of the same branch of python can cause problems. In any case your package directory /var/log/packages is also messed up as it did did report python2.5 as being installed.

Robert.Thompson 07-02-2011 10:22 AM

Quote:

Originally Posted by bgeddy (Post 4402491)
It looks like you may have two versions of python installed with the one pointed to by the symbolic link /usr/bin/python being python2.5. To test this try running python2.5 then python2.6 like this.
Code:

python2.5 -V
python2.6 -V

If both work and report differing versions of python you just need to run the following as root:
Code:

unlink /usr/bin/python
ln -s /usr/bin/python2.6 /usr/bin/python

This will leave python2.5 in place that you can still run with python2.5. I think it would be better to totally uninstall python2.5 as having two versions of the same branch of python can cause problems. In any case your package directory /var/log/packages is also messed up as it did did report python2.5 as being installed.

Hello:

I did the above, rebooted and did python -V which yielded: Python2.5.6

I guess that the system is still broken, right?

bgeddy 07-02-2011 10:56 AM

That's weird. Did you try running
Code:

python2.5 -V
python2.6 -V

to check if both are installed ?

disturbed1 07-02-2011 12:06 PM

Quote:

Originally Posted by Robert.Thompson (Post 4402510)
Hello:

I did the above, rebooted and did python -V which yielded: Python2.5.6

I guess that the system is still broken, right?

Manually remove the old version of python. Then reinstall the official python packages.

Robert.Thompson 07-02-2011 12:55 PM

Quote:

Originally Posted by bgeddy (Post 4402530)
That's weird. Did you try running
Code:

python2.5 -V
python2.6 -V

to check if both are installed ?

Yes.

I get Python-2.5.6 & Python-2.6.6 respectively.

Robert.Thompson 07-02-2011 12:57 PM

Quote:

Originally Posted by disturbed1 (Post 4402599)
Manually remove the old version of python. Then reinstall the official python packages.

Thanks, I think that I will do that.

Robert.Thompson 07-02-2011 01:04 PM

Thanks to everyone for your help.

I have decided to re-install Slackware 13.37 from the DVD.

AS a highly inexperienced Slacker, there is no telling what I have screwed up over that past few months so, I think that it is best to start over.

Marking as SOLVED.

disturbed1 07-02-2011 01:46 PM

Good luck!

Honestly though, I would have attempted to fix it.
After all, there's no better way to learn then from fixing your own adventures.
I'd bet that's the way many experienced Slackers learned their way around :)

bgeddy 07-02-2011 03:30 PM

Good luck from me too - however I very much agree with what disturbed1 said. It's amazing how much you can learn by solving problems like this and, to be honest, this python version mix up should be very easy to diagnose and fix with a few more steps. You wouldn't believe the problems I have had on systems, such as having my entire file system's ownerships and permissions messed up - no fun that one, and had to fault find and fix. This process has increased my knowledge of how stuff all works by miles and it would yours too. I'm by no means saying I'm a Linux expert but your knowledge is rapidly enhanced when you have to fault find your system. What's more I think its maybe "the Slackware way".

What's more there's a very active and knowledgeable community here that's always very helpful - even the giants, (core team), of Slackware often contribute, Patrick Volkerding (our BDFL), Eric Hameleers, Robby Workman, Vincent Batts, John Jenkins ,Piter PUNK and others - (apologies if I have missed any team members but "and others" is meant to include you - no offence intended). Just notice how many times you'll see "Slackware Contributor" under someone's user name. The core Slackware team are very involved with the community and that's fantastic.

Robert.Thompson 07-04-2011 07:05 AM

Hello:

As I said, I am worried that there may be other problems, so, I have a question...

Is there a way to determine if I have all the correct Slackware 13.37 files on my system?

Thanks,

bgeddy 07-04-2011 08:17 AM

Edit : For type corrections see my next post ..
Quote:

Is there a way to determine if I have all the correct Slackware 13.37 files on my system?
Just make sure /etc/slackpkg/mirrors is correctly pointing to a Salckware 13.37 repo ands as root run
Code:

slackpkg update
skackpkg install-new
slackpkg update-all
 # ONLY RUN THIS IF YOU HAVE NOTHING ADDITIIONAL TO SLACKWARE INSTALLED OR SET UP BLACKLISTS
slackpkg clean-system

Be careful this if you run it be sure to unselect anything added on to Slackware that you want to keep or it will be uninstalled.

Robert.Thompson 07-04-2011 08:32 AM

Quote:

Originally Posted by bgeddy (Post 4404372)
Just make sure /etc/slackpkg/mirrors is correctly pointing to a Salckware 13.37 repo ands as root run
Code:

slackpkg update
skackpkg install-new
slackpkg update-all
 # ONLY RUN THIS IF YOU HAVE NOTHING ADDITIIONAL TO SLACKWARE INSTALLED OR SET UP BLACKLISTS
slackpkg clean system

Be careful this if you run it be sure to unselect anything added on to Slackware that you want to keep or it will be uninstalled.

Thanks bgeddy - I will keep this on file for future reference.

After uninstalling python as suggested above, and then being unable to connect to the net to get additional help, I formatted my hard disk and re-installed from my new Slackware 13.37 DVD.

Thanks again to everyone for there help and advice on this topic.

Marking as SOLVED yet once again.

bgeddy 07-04-2011 12:45 PM

Well as you mentioned putting this on file I think I should correct a few errors in my spelling and such - the commands should be this :
Code:

slackpkg update
skackpkg install-new
slackpkg upgrade-all
 # ONLY RUN THIS IF YOU HAVE NOTHING ADDITIIONAL TO SLACKWARE INSTALLED OR SET UP BLACKLISTS
slackpkg clean-system

Apologies for my sloppy typing.


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