waf configure & pybindgen

438 views
Skip to first unread message

Lars Eggert

unread,
Feb 18, 2010, 7:14:56 AM2/18/10
to ns-3-...@googlegroups.com
Hi,

I have the latest pybindgen installed, but "waf configure" tells me:

Checking for pybindgen version : not found
pybindgen (found 0.14.0), (need 0.13.0.745)
...
Python Bindings : not enabled (PyBindGen version not correct and newer version could not be retrieved)

This is with ns-3-dev.

Lars

Mathieu Lacage

unread,
Feb 18, 2010, 7:39:46 AM2/18/10
to ns-3-users

On Feb 18, 1:14 pm, Lars Eggert <lars.egg...@nokia.com> wrote:

> I have the latest pybindgen installed, but "waf configure" tells me:

How did you install pybindgen ?

Lars Eggert

unread,
Feb 18, 2010, 9:01:00 AM2/18/10
to ns-3-...@googlegroups.com
On 2010-2-18, at 14:39, Mathieu Lacage wrote:
> On Feb 18, 1:14 pm, Lars Eggert <lars.egg...@nokia.com> wrote:
>
>> I have the latest pybindgen installed, but "waf configure" tells me:
>
> How did you install pybindgen ?

I use the homebrew package manager (http://github.com/mxcl/homebrew) and installed gccxml with it. I made my own formulas to install pygccxml and pybindgen (http://github.com/larseggert/homebrew/commit/b9310cf6555a174033ad851f208d647575f6998f). Python seems to find them fine:

[eggert@lars: /usr/local] python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pybindgen
>>> import pygccxml
>>> ^D

Lars

Gustavo Carneiro

unread,
Feb 18, 2010, 9:07:21 AM2/18/10
to ns-3-...@googlegroups.com
ns-3 usually ships with a copy of pybindgen in the 'allinone' archive.

If you don't use allinone, make sure the installed pybindgen version (see pybindgen.version.__version__) exactly matches the required version in ns-3 (see the top of bindings/python/wscript).  Newer pybindgen does not work, it has to be _that_ version.

Although we are being usually excessively careful; most of the time, newer pybindgen works just fine, in which case you can modify bindings/python/wscript to make it match your installed version.

--
Gustavo J. A. M. Carneiro
INESC Porto, UTM, WiN, http://win.inescporto.pt/gjc
"The universe is always one step beyond logic." -- Frank Herbert

Mathieu Lacage

unread,
Feb 18, 2010, 9:07:37 AM2/18/10
to ns-3-...@googlegroups.com
did you try ./waf generate_version_py before ./waf install ?

--
Mathieu Lacage <mathieu...@gmail.com>

Lars Eggert

unread,
Feb 18, 2010, 12:16:58 PM2/18/10
to ns-3-...@googlegroups.com
Hi,

On 2010-2-18, at 16:07, Gustavo Carneiro wrote:
> If you don't use allinone, make sure the installed pybindgen version (see pybindgen.version.__version__) exactly matches the required version in ns-3 (see the top of bindings/python/wscript). Newer pybindgen does not work, it has to be _that_ version.

thanks for the hint. I changed REQUIRED_PYBINDGEN_VERSION to (0, 14, 0) and it builds fine now.

Lars

Reply all
Reply to author
Forward
0 new messages