Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Exception for when function block files are missing #7

Open
jmotp opened this issue Aug 30, 2023 · 0 comments
Open

Missing Exception for when function block files are missing #7

jmotp opened this issue Aug 30, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jmotp
Copy link

jmotp commented Aug 30, 2023

Traceback (most recent call last):
File "/home/pi/Desktop/dinasore-4diac-IDE-2.0-compatible/core/main.py", line 114, in
m.build_ua_manager_fboot(address, port_opc)
File "/home/pi/Desktop/dinasore-4diac-IDE-2.0-compatible/core/manager.py", line 238, in build_ua_manager_fboot
self.manager_ua_fboot.from_fboot()
File "/home/pi/Desktop/dinasore-4diac-IDE-2.0-compatible/data_model_fboot/ua_manager.py", line 94, in from_fboot
self.parse_fboot(file)
File "/home/pi/Desktop/dinasore-4diac-IDE-2.0-compatible/data_model_fboot/ua_manager.py", line 106, in parse_fboot
self.generate_function_blocks(lines)
File "/home/pi/Desktop/dinasore-4diac-IDE-2.0-compatible/data_model_fboot/ua_manager.py", line 124, in generate_function_blocks
fb_file = open(os.path.join(root_path, '{0}.fbt'.format(child.get('Type'))), 'r')
File "/usr/lib/python3.9/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

This error can mean that the Function Block files are missing

@jmotp jmotp added the enhancement New feature or request label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants