Skip to content

Module Name Discrepancy Between Platforms #574

@Robatronic

Description

@Robatronic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions