Python Issues (argparse, dex, AwesomeWM)

surfrock66
Posts: 38
Joined: Sun May 30, 2010 8:29 am

Python Issues (argparse, dex, AwesomeWM)

Postby surfrock66 » Mon Jun 10, 2013 11:59 am

Sorry, this is gonna be a bit noobish.

So I'm on Amahi 6.1 on Fedora 14, and I'm thinking about switching my WM from Gnome to AwesomeWM. I use awesome on all my other machines. One of my concerns is that startup apps won't start in Awesome...so I'm following this guide:

http://awesome.naquadah.org/wiki/Autost ... ostart_way

Which requires dex, source available here:

https://github.com/jceb/dex

Essentially it's just a python script, however it won't run. This is the error:

Code: Select all

[surfrock66@sr66-blade dex-v0.6]$ dex Traceback (most recent call last): File "/usr/local/bin/dex", line 664, in <module> from argparse import ArgumentParser ImportError: No module named argparse
Opening it up, looks like it's trying to call argparse, but it's not finding it. I have python 3 and python 2.7-8 installed, and the docs say argparse shows up in 2.7. I installed the "python-argparse" package, and still nothing.

I did find this though, not sure what it indicates:

Code: Select all

[surfrock66@sr66-blade dex-v0.6]$ ls -l /usr/bin/python* -rwxr-xr-x 2 root root 4784 Sep 16 2010 /usr/bin/python lrwxrwxrwx 1 root root 6 Jun 10 11:40 /usr/bin/python2 -> python -rwxr-xr-x 2 root root 4784 Sep 16 2010 /usr/bin/python2.7 -rwxr-xr-x 2 root root 6816 Sep 8 2010 /usr/bin/python3 -rwxr-xr-x 2 root root 6816 Sep 8 2010 /usr/bin/python3.1
Thoughts? I'm a python noob, so I have no idea how to fix this.

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: Python Issues (argparse, dex, AwesomeWM)

Postby radioz » Tue Jun 11, 2013 8:31 am

Odd.

Try this:
open up a terminal window on your hda and type 'python'.
What version number does it display?

Then type 'import argparse'
Does that succeed?

I don't know anything about Dex. Does it use Pyton 3?

Who is online

Users browsing this forum: No registered users and 11 guests