python-snap7 icon indicating copy to clipboard operation
python-snap7 copied to clipboard

Module Name Discrepancy Between Platforms

Open Robatronic opened this issue 1 month ago • 0 comments

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'.....

Robatronic avatar Dec 04 '25 21:12 Robatronic