You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Redhawk 2.10 + the solution described in issue 55, launching a component in the python sandbox sometimes results in the following error:
bash-4.2# python -i VocoderFileCapture.py
/usr/bin/python 2.7.5 (default, Jun 28 2022, 15:30:04)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Traceback (most recent call last):
File "VocoderFileCapture.py", line 9, in<module>
sb.launch("spx.VocoderService")
File "/usr/local/redhawk/core/lib/python/ossie/utils/sb/domainless.py", line 1358, in launch
objType=objType, shared=shared, stdout=stdout)
File "/usr/local/redhawk/core/lib/python/ossie/utils/sandbox/base.py", line 260, in launch
comp = clazz(self, profile, spd, scd, prf, instanceName, refid, impl)
File "/usr/local/redhawk/core/lib/python/ossie/utils/sandbox/model.py", line 183, in __init__
SandboxResource.__init__(self, *args, **kwargs)
File "/usr/local/redhawk/core/lib/python/ossie/utils/sandbox/model.py", line 54, in __init__
ComponentBase.__init__(self, spd, scd, prf, instanceName, refid, impl)
File "/usr/local/redhawk/core/lib/python/ossie/utils/model/__init__.py", line 1417, in __init__
super(ComponentBase, self).__init__(prf, refid)
File "/usr/local/redhawk/core/lib/python/ossie/utils/model/__init__.py", line 1088, in __init__
includeNil=True)
File "/usr/local/redhawk/core/lib/python/ossie/utils/model/__init__.py", line 1209, in _getPropertySet
p.clean_name = _prop_helpers.addCleanName(id_clean, prop.get_id(), _displayNames, _duplicateNames)
File "/usr/local/redhawk/core/lib/python/ossie/utils/prop_helpers.py", line 256, in addCleanName
count = _duplicateNames[cleanName][namespace] + 1
NameError: global name 'namespace' is not defined
This does not occur for all components. For example, I can launch other components not provided by redhawk successfully.
After some investigation, I found what appears to be a discrepancy in variable names being used in $OSSIEHOME/lib/python/ossie/utils/prop_helpers.py in the addCleanName function (namespace vs namesp). After correcting the discrepancy, I as able to launch the component.
The following diff is now used as a patch file when building our redhawk container:
When using Redhawk 2.10 + the solution described in issue 55, launching a component in the python sandbox sometimes results in the following error:
This does not occur for all components. For example, I can launch other components not provided by redhawk successfully.
After some investigation, I found what appears to be a discrepancy in variable names being used in $OSSIEHOME/lib/python/ossie/utils/prop_helpers.py in the addCleanName function (namespace vs namesp). After correcting the discrepancy, I as able to launch the component.
The following diff is now used as a patch file when building our redhawk container:
The text was updated successfully, but these errors were encountered: