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

pyinotify requirement is not available on macosx-11.3-x86_64 #46

Open
flymg opened this issue Jun 17, 2021 · 7 comments
Open

pyinotify requirement is not available on macosx-11.3-x86_64 #46

flymg opened this issue Jun 17, 2021 · 7 comments

Comments

@flymg
Copy link

flymg commented Jun 17, 2021

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.

@schercav
Copy link
Contributor

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

Shay

@flymg
Copy link
Author

flymg commented Jun 20, 2021

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.

@marioland
Copy link
Contributor

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.

@schercav
Copy link
Contributor

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

@marioland
Copy link
Contributor

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

@schercav
Copy link
Contributor

@geewrd
Copy link
Contributor

geewrd commented Jun 21, 2021

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

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

4 participants