UnboundLocalError in overloading.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyBindGen |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
building ns-3-dev with python bindings enabled (changeset 04ef86d43986) yields the following error in build/src/
Traceback (most recent call last):
File "bindings/
main(sys.argv)
File "bindings/
root_
File "/a/users/
self.
File "/a/users/
class_
File "/a/users/
self.
File "/a/users/
utils.
File "/a/users/
return callback(*args, **kwargs)
File "/a/users/
self.
File "/a/users/
settings.
UnboundLocalError: local variable 'ex' referenced before assignment
I worked around this with a small hack:
=== modified file 'pybindgen/
--- pybindgen/
+++ pybindgen/
@@ -111,6 +111,7 @@
+ ex = 'none'
I could not easily determine what has changed in the lte bindings to force this error, but the above workaround lets me build ns-3 and run all python tests successfully.
Changed in pybindgen: | |
status: | New → Fix Committed |
Changed in pybindgen: | |
status: | Fix Committed → Fix Released |