-
Notifications
You must be signed in to change notification settings - Fork 31
Description
I can't enable Python bindings despite trying to replicate the original environment, Ubuntu 18, Python 2.7 and compatible versions of all libraries.
Also, I couldn't find these versions
REQUIRED_PYBINDGEN_VERSION = (0, 17, 0, 887)
REQUIRED_PYGCCXML_VERSION = (0, 9, 5)
Since wscript in the bindings/python folder states "Disable python in static builds (bug #1253)". What is the reason, release notes leave an empty line on bug #1253.
There is some issue with Pybindgen version since the required version couldn't be found; I tried changing the version needed to 17 and then configured successfully but without pybindgen (Error: not enabled (PyBindGen version not correct and newer version could not be retrieved)
).
If I use version 18 then it gives the following error. I tried 19, 20 and so on but same error.
(ha) suleman@ubuntu:~/IEEE-802.11ah-ns-3$ CXXFLAGS="-std=c++11" ./waf configure --enable-examples --enable-tests
Setting top to : /home/suleman/IEEE-802.11ah-ns-3
Setting out to : /home/suleman/IEEE-802.11ah-ns-3/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for cc version : 7.5.0
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for compilation flag -Wl,--soname=foo support : ok
Checking for program 'python' : /home/suleman/miniconda3/envs/ha/bin/python
Checking for python version : (2, 7, 18, 'final', 0)
python-config : /home/suleman/miniconda3/envs/ha/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
Testing pyext configuration : yes
Checking for compilation flag -fvisibility=hidden support : ok
Checking for compilation flag -Wno-array-bounds support : ok
Checking for pybindgen location : not found
Checking for python module 'pybindgen' : 0.18.0
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'version'
Traceback (most recent call last):
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 110, in waf_entry_point
run_commands()
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 171, in run_commands
ctx=run_command(cmd_name)
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 162, in run_command
ctx.execute()
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Configure.py", line 87, in execute
super(ConfigurationContext,self).execute()
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 93, in execute
self.recurse([os.path.dirname(g_module.root_path)])
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
user_function(self)
File "/home/suleman/IEEE-802.11ah-ns-3/wscript", line 457, in configure
conf.recurse('bindings/python')
File "/home/suleman/IEEE-802.11ah-ns-3/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
user_function(self)
File "/home/suleman/IEEE-802.11ah-ns-3/bindings/python/wscript", line 171, in configure
pybindgen_version = tuple([int(x) for x in pybindgen_version_str.split('.')])
ValueError: invalid literal for int() with base 10: ''