diff --git a/repo.py b/repo.py index f52e0b00..543854ed 100644 --- a/repo.py +++ b/repo.py @@ -85,7 +85,7 @@ def get_devices(self, base_path, vendors: list = None): def parse_files(self, files: list, slugs: list = None): deviceTypes = [] for file in files: - with open(file, 'r') as stream: + with open(file, 'r',encoding="utf8") as stream: try: data = yaml.safe_load(stream) except yaml.YAMLError as excep: diff --git a/requirements.txt b/requirements.txt index 30ac661c..11fe1f14 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ GitPython==3.1.32 pynetbox==7.0.1 python-dotenv==1.0.0 -PyYAML==6.0.1 \ No newline at end of file +PyYAML==6.0.1 +setuptools==70.0.0 \ No newline at end of file