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
Describe the bug
When sending a list of integers using python API I encounter an error: File "C:\Python\lib\site-packages\openc3\script\commands.py", line 32, in cmd return _cmd("cmd", "cmd_no_hazardous_check", *args, **kwargs) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 240, in _cmd _log_cmd(target_name, cmd_name, cmd_params, raw, no_range, no_hazardous) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 179, in _log_cmd print(_cmd_string(target_name, cmd_name, cmd_params, raw)) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 161, in _cmd_string value = f"[{', '.join(value)}]" TypeError: sequence item 0: expected str instance, int found
a fix suggestion (that worked for me) is changing in file openc3\python\openc3\script\commands.py, line 161, in _cmd_string
from value = f"[{', '.join(value)}]"
to value = str(value)
I am using package openc3 version 5.15.2
The text was updated successfully, but these errors were encountered:
First check out our main documentation site at https://openc3.com.
Describe the bug
When sending a list of integers using python API I encounter an error:
File "C:\Python\lib\site-packages\openc3\script\commands.py", line 32, in cmd return _cmd("cmd", "cmd_no_hazardous_check", *args, **kwargs) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 240, in _cmd _log_cmd(target_name, cmd_name, cmd_params, raw, no_range, no_hazardous) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 179, in _log_cmd print(_cmd_string(target_name, cmd_name, cmd_params, raw)) File "C:\Python\lib\site-packages\openc3\script\commands.py", line 161, in _cmd_string value = f"[{', '.join(value)}]" TypeError: sequence item 0: expected str instance, int found
a fix suggestion (that worked for me) is changing in file openc3\python\openc3\script\commands.py, line 161, in _cmd_string
from
value = f"[{', '.join(value)}]"
to
value = str(value)
I am using package openc3 version 5.15.2
The text was updated successfully, but these errors were encountered: