LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 06-30-2011, 04:38 PM   #16
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 372

Rep: Reputation: 143Reputation: 143

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
 
Old 07-02-2011, 09:12 AM   #17
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
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.
 
Old 07-02-2011, 09:56 AM   #18
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 07-02-2011, 10:22 AM   #19
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 bgeddy View Post
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?
 
Old 07-02-2011, 10:56 AM   #20
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
That's weird. Did you try running
Code:
python2.5 -V
python2.6 -V
to check if both are installed ?
 
Old 07-02-2011, 12:06 PM   #21
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by Robert.Thompson View Post
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.
 
Old 07-02-2011, 12:55 PM   #22
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 bgeddy View Post
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.

Last edited by Robert.Thompson; 07-02-2011 at 12:56 PM. Reason: typo
 
Old 07-02-2011, 12:57 PM   #23
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
Manually remove the old version of python. Then reinstall the official python packages.
Thanks, I think that I will do that.
 
Old 07-02-2011, 01:04 PM   #24
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
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.
 
Old 07-02-2011, 01:46 PM   #25
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 212Reputation: 212Reputation: 212
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
 
Old 07-02-2011, 03:30 PM   #26
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 07-04-2011, 07:05 AM   #27
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 48
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,

Last edited by Robert.Thompson; 07-04-2011 at 07:05 AM. Reason: typo
 
Old 07-04-2011, 08:17 AM   #28
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.

Last edited by bgeddy; 07-04-2011 at 01:00 PM.
 
Old 07-04-2011, 08:32 AM   #29
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 bgeddy View Post
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.
 
Old 07-04-2011, 12:45 PM   #30
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:52 AM.

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