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

Docker image does not work #104

Open
Spacerat76 opened this issue Sep 24, 2024 · 0 comments
Open

Docker image does not work #104

Spacerat76 opened this issue Sep 24, 2024 · 0 comments

Comments

@Spacerat76
Copy link

I tried the command in the readme.md to create docker image and run the script.

Build was successful ("docker build -t solaredge_modbus .")

But if i start the script ("docker run --rm -it solaredge_modbus ") I get:

_Traceback (most recent call last):
File "example.py", line 6, in
import solaredge_modbus
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in load_backward_compatible
File "", line 259, in load_module
File "/usr/local/lib/python3.8/site-packages/solaredge_modbus-0.8.0-py3.8.egg/solaredge_modbus/init.py", line 4, in
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/init.py", line 16, in
from pymodbus.framer import FramerType
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/framer/init.py", line 15, in
from pymodbus.framer.old_framer_ascii import ModbusAsciiFramer
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/framer/old_framer_ascii.py", line 3, in
from pymodbus.framer.old_framer_base import BYTE_ORDER, FRAME_HEADER, ModbusFramer
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/framer/old_framer_base.py", line 8, in
from pymodbus.factory import ClientDecoder, ServerDecoder
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/factory.py", line 31, in
class ServerDecoder:
File "/usr/local/lib/python3.8/site-packages/pymodbus-3.7.2-py3.8.egg/pymodbus/factory.py", line 80, in ServerDecoder
def getFCdict(cls) -> dict[int, Callable]:
TypeError: 'type' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant