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
File "/home/pi/PyDataLink/pyDatalink.py", line 156, in
DatalinkApp(config_args=parser.parse_args()).start()
File "/home/pi/PyDataLink/pyDatalink.py", line 108, in start
self.datalink__terminal_start()
File "/home/pi/PyDataLink/pyDatalink.py", line 119, in datalink__terminal_start
sys.exit(self.user_interface.main_menu())
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 144, in main_menu
case 0 : self.configure_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 168, in configure_menu
return self.configure_menu_submenu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 380, in configure_menu_submenu
case 0 : self.configure_stream_stream_type_menu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 685, in configure_stream_stream_type_menu
case _ : return self.configure_menu_submenu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 384, in configure_menu_submenu
case _ : return self.configure_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 161, in configure_menu
return self.main_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 150, in main_menu
self.app.close_all()
File "/home/pi/PyDataLink/src/StreamConfig/App.py", line 155, in close_all
SaveConfiguration.create_conf_file(self)
File "/home/pi/PyDataLink/src/Configuration/SaveConfiguration.py", line 60, in create_conf_file
config.set(section_name,"linksChecked" , str(stream.linked_ports))
File "/usr/lib/python3.10/configparser.py", line 1206, in set
super().set(section, option, value)
File "/usr/lib/python3.10/configparser.py", line 904, in set
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'Port0'
(myenv) pi@rpi-ros2:~/PyDataLink$
This is solved by two modifications in SaveConfiguration.py
line 59
#config.add_section(section_name)
to
if not config.has_section(section_name):
config.add_section(section_name)
line 129 add
if not save_config_file.has_section(section_name):
save_config_file.add_section(section_name)
The text was updated successfully, but these errors were encountered:
Upon quitting the TUI I get following error.
File "/home/pi/PyDataLink/pyDatalink.py", line 156, in
DatalinkApp(config_args=parser.parse_args()).start()
File "/home/pi/PyDataLink/pyDatalink.py", line 108, in start
self.datalink__terminal_start()
File "/home/pi/PyDataLink/pyDatalink.py", line 119, in datalink__terminal_start
sys.exit(self.user_interface.main_menu())
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 144, in main_menu
case 0 : self.configure_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 168, in configure_menu
return self.configure_menu_submenu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 380, in configure_menu_submenu
case 0 : self.configure_stream_stream_type_menu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 685, in configure_stream_stream_type_menu
case _ : return self.configure_menu_submenu(selected_port)
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 384, in configure_menu_submenu
case _ : return self.configure_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 161, in configure_menu
return self.main_menu()
File "/home/pi/PyDataLink/src/UserInterfaces/TerminalUserInterface.py", line 150, in main_menu
self.app.close_all()
File "/home/pi/PyDataLink/src/StreamConfig/App.py", line 155, in close_all
SaveConfiguration.create_conf_file(self)
File "/home/pi/PyDataLink/src/Configuration/SaveConfiguration.py", line 60, in create_conf_file
config.set(section_name,"linksChecked" , str(stream.linked_ports))
File "/usr/lib/python3.10/configparser.py", line 1206, in set
super().set(section, option, value)
File "/usr/lib/python3.10/configparser.py", line 904, in set
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'Port0'
(myenv) pi@rpi-ros2:~/PyDataLink$
This is solved by two modifications in SaveConfiguration.py
line 59
#config.add_section(section_name)
to
if not config.has_section(section_name):
config.add_section(section_name)
line 129 add
if not save_config_file.has_section(section_name):
save_config_file.add_section(section_name)
The text was updated successfully, but these errors were encountered: