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
Docker install gives me errors
|ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'pymodbus'
|ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'packaging'
Error traceback:
2023-10-16 08:14:50 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'packaging'
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 20, in <module>
from packaging import version
ModuleNotFoundError: No module named 'packaging'
2023-10-16 08:14:50 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:14:50 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/grpc_connectors/modbus/modbus_connector.py", line 31, in <module>
from thingsboard_gateway.grpc_connectors.modbus.slave import Slave
File "/thingsboard_gateway/grpc_connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:14:50 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/grpc_connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:14:50 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - __init__ - 54 - Remote Configurator started
after installing pymodbus & packaging with pip inside container and restarting container
2023-10-16 08:18:04 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'twisted'
Traceback (most recent call last):
File "/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 51, in <module>
from twisted.internet import reactor
ModuleNotFoundError: No module named 'twisted'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/connectors/modbus/modbus_connector.py", line 54, in <module>
from twisted.internet import reactor
ModuleNotFoundError: No module named 'twisted'
2023-10-16 08:18:04 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:18:04 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/grpc_connectors/modbus/modbus_connector.py", line 31, in <module>
from thingsboard_gateway.grpc_connectors.modbus.slave import Slave
File "/thingsboard_gateway/grpc_connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:18:04 - |ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
Traceback (most recent call last):
File "/thingsboard_gateway/tb_utility/tb_loader.py", line 65, in import_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/thingsboard_gateway/grpc_connectors/modbus/slave.py", line 18, in <module>
from pymodbus.constants import Defaults
ImportError: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py)
2023-10-16 08:18:04 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - __init__ - 54 - Remote Configurator started
Describe the bug
Docker install gives me errors
|ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'pymodbus'
|ERROR| - [tb_loader.py] - tb_loader - import_module - 72 - No module named 'packaging'
Error traceback:
after installing pymodbus & packaging with pip inside container and restarting container
after installing twisted and container restart
Connector name:
MODBUS
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: