From: Calvin Walton <calvin.walton@kepstin.ca>
To: Alex <alfragk@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: crda fails to compile
Date: Sat, 16 Apr 2011 14:49:33 -0400 [thread overview]
Message-ID: <1302979775.17255.4.camel@nayuki> (raw)
In-Reply-To: <4DA8163F.6040308@gmail.com>
On Fri, 2011-04-15 at 12:56 +0300, Alex wrote:
> 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,
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.
--
Calvin Walton <calvin.walton@kepstin.ca>
next prev parent reply other threads:[~2011-04-16 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 9:56 crda fails to compile Alex
2011-04-16 18:49 ` Calvin Walton [this message]
2011-04-18 8:57 ` Alex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302979775.17255.4.camel@nayuki \
--to=calvin.walton@kepstin.ca \
--cc=alfragk@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).