Tufin/pytos

pyinotify requirement is not available on macosx-11.3-x86_64

flymg opened this issue · 7 comments

flymg commented

ERROR: Could not find a version that satisfies the requirement pyinotify (from versions: 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6)
ERROR: No matching distribution found for pyinotify

Hello TUFIN Team, please fix your dependencies.

Hello,
Pytos should run on Tufin ST/SC servers and they run on Linux systems.

Shay

flymg commented

Oh that's it, ok I think i'm not the only one who got this wrong (see similar windows request)

We thought of this as a client library to do the thinks announced in the README, like a normal Python SDK.

There is no word about that big dependency that this is designed to run on the TUFIN Server only.

It is a pity that Pytos does not run on MacOS and Windows. For production we have it running under Debian and Suse and RedHat.

Hello,

Pytos should run on TOS,
but you can connect via SSH to use debug mode from your MacOS or windows.
This is how we use it.

Shay

Could you share some instructions how to attach the remote debugger, please?

You can remove the references to FileMonitor in the following code, which will remove the inotify dependency:

from pytos.common.functions.file_monitor import FileMonitor
logger = logging.getLogger(COMMON_LOGGER_NAME)
class Secure_Config_Parser(configparser.ConfigParser, FileMonitor):
"""This class is used to parse the Tufin PS library configuration files"""
COMMON = "common"
CUSTOM = "custom"
SECURECHANGE = "securechange"
SECURETRACK = "securetrack"
LOG_LEVELS = "log_levels"
DEFAULT_SECTIONS = (COMMON, LOG_LEVELS, SECURETRACK, SECURECHANGE)
def __init__(self, config_file_path, custom_config_file_path=None):
configparser.ConfigParser.__init__(self)
self.config_file_path = config_file_path
self.custom_config_file_path = custom_config_file_path
if custom_config_file_path is not None:
args = (config_file_path, custom_config_file_path)
else:
args = (config_file_path, )
FileMonitor.__init__(self, args)

pyinotify==0.9.6