Skip to contentSkip to conversation

crda fails to compile

DISCUSSION Alex 2 participants 3 messages Apr 15, 2011 – Apr 18, 2011

lore
Share & tools
lore

Alex

author
#0 lore raw

Hi,

the last couple of days i've beeen trying to compile crda on my linux box (gentoo) without success.

I've downloaded crda-1.1.1, and i've installed all the requirements as described in the README file.

However, when i run make i get the following error:

GEN keys-gcrypt.c
Trusted pubkeys: pubkeys/linville.key.pub.pem
File "./utils/key2pub.py", line 6
except ImportError, e:
^
SyntaxError: invalid syntax
make: *** [keys-gcrypt.c] Error 1

Any help would be appreciated,

Alex

#1 lore raw
Quoted 19 lines · Alex

Hi,

the last couple of days i've beeen trying to compile crda on my linux box (gentoo) without success.

I've downloaded crda-1.1.1, and i've installed all the requirements as described in the README file.

However, when i run make i get the following error:

GEN keys-gcrypt.c
Trusted pubkeys: pubkeys/linville.key.pub.pem
File "./utils/key2pub.py", line 6
except ImportError, e:
^
SyntaxError: invalid syntax
make: *** [keys-gcrypt.c] Error 1

Quoted 1 line

Any help would be appreciated,

My guess is that your system installation of python (/usr/bin/python) is actually python-3 instead of python-2. The two versions are
incompatible: a python-2 script won't run on python-3 without porting.

On gentoo you can switch your default python version back to 2 by running the commands:

# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.1 *
# eselect python set 1

Also note that gentoo has a crda package available which you could use instead (I'd recommend this if you're not trying to develop crda):

emerge net-wireless/crda

Hope that helps.

Signature · 1 line
Calvin Walton <[email protected]>
author
#2 lore raw
Quoted 34 lines · Calvin Walton
Quoted 19 lines · Alex

Hi,

the last couple of days i've beeen trying to compile crda on my linux box (gentoo) without success.

I've downloaded crda-1.1.1, and i've installed all the requirements as described in the README file.

However, when i run make i get the following error:

GEN keys-gcrypt.c
Trusted pubkeys: pubkeys/linville.key.pub.pem
File "./utils/key2pub.py", line 6
except ImportError, e:
^
SyntaxError: invalid syntax
make: *** [keys-gcrypt.c] Error 1

Quoted 1 line

Any help would be appreciated,

My guess is that your system installation of python (/usr/bin/python) is actually python-3 instead of python-2. The two versions are
incompatible: a python-2 script won't run on python-3 without porting.

On gentoo you can switch your default python version back to 2 by running the commands:

# eselect python list
Available Python interpreters:
   [1]   python2.7
   [2]   python3.1 *
# eselect python set 1
Quoted 6 lines

Also note that gentoo has a crda package available which you could use instead (I'd recommend this if you're not trying to develop crda):

emerge net-wireless/crda

Hope that helps.

Thanks it works now!

Alex