Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2013, 12:57 PM   #16
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137

Originally Posted by YankeePride13 View Post
First, uninstall the older version of Python. Then places the python binary in your PATH.
Do NOT uninstall Python! The entire package management system in RHEL/CentOS is based on python. If you uninstall the old version there's a good chance you'll break the package management system on your machine.

OP - did you install ALL of python version 3.2.5, or just that package? Is the new version of python in your PATH? Have you tried looking in the standard or optional repos for your distribution to see if the argparse package is available for the version of python you already have? It looks like it's available in the EPEL repo (extra packages for enterprise linux).

# yum list | grep -i argparse
python-argparse.noarch                   1.2.1-2.el6                    epel
You do not want to go futzing around with different versions of python on a RHEL/CentOS/SL system, it's VERY easy to break things. Stick with the default version and use yum to add/remove packages like this.

Last edited by suicidaleggroll; 08-19-2013 at 01:02 PM.
1 members found this post helpful.
Old 08-19-2013, 02:55 PM   #17
LQ Newbie
Registered: Aug 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks suicidaleggroll. I had seen in google searches to not uninstall Python 2.6 from the system. I managed to solve the argparse issue with the program. Now it is telling me that there is no validator to import. I figured it was a similar issue to argparse so I did some looking around, found wheezy.validation and believed it was the same routine I did to fix the argparse issue at that point; however, it keeps saying I have a validator issue no matter what. I checked to see if the validation was installed and it appears to be.
Old 08-19-2013, 03:07 PM   #18
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,237

Rep: Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653Reputation: 1653
Good catch SuicidalEggroll.

Remember to always research an answer before doing it on a production system. Even though people mean well, and aren't being malicious, there can be a big disconnect between your level of expertise and theirs, and what you will be able to tackle on your own.

But best advice, as mentioned: do not uninstall the native python install.


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
LXer: Python Scripts as a Replacement for Bash Utility Scripts LXer Syndicated Linux News 1 01-17-2013 09:08 AM
[SOLVED] scripts is not running thriugh cron ...manually running fine ghoshdastidar1980 Linux - Newbie 3 09-27-2012 03:42 AM
is suid disabled from running all scripts or just from running them as root monsteriname Programming 2 09-05-2009 03:57 AM
Execute python scripts GameMaker Programming 2 02-09-2006 05:46 AM
compiling Python scripts lex1dr Linux - Software 1 06-16-2003 05:24 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

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