For some reason, there's a difference between Windows and Linux installs.
I recently did pip install on Windows and Linux hosts. A test app in Windows worked but the Linux one complained of an ImportError. In Windows, the module is snap7.types while in Linux it is snap7.type. Either that, or there's some other issue.
I used the workaround:
try:
from snap7.types import Areas
except ImportError:
from snap7.type import Areas
I think that is leading to other issues, though as other modules are expecting 'types' not 'type'.....
For some reason, there's a difference between Windows and Linux installs.
I recently did pip install on Windows and Linux hosts. A test app in Windows worked but the Linux one complained of an ImportError. In Windows, the module is snap7.types while in Linux it is snap7.type. Either that, or there's some other issue.
I used the workaround:
try:
from snap7.types import Areas
except ImportError:
from snap7.type import Areas
I think that is leading to other issues, though as other modules are expecting 'types' not 'type'.....