netbox-community / Device-Type-Library-Import

This library is intended to assist with importing device and module types into NetBox from the NetBox Community DeviceType-Library
https://github.com/netbox-community/devicetype-library
MIT License
247 stars 74 forks source link

SyntaxWarning: invalid escape sequence '\W' #139

Open NunoOliveira opened 1 month ago

NunoOliveira commented 1 month ago

I'm getting this error when trying to import devices

Ubuntu 24.04 LTS Netbox v4.0.3 Python 3.12.3

(venv) networks@netbox01:/opt/Device-Type-Library-Import$ ./nb-dt-import.py --vendors juniper
/opt/Device-Type-Library-Import/repo.py:39: SyntaxWarning: invalid escape sequence '\W'
  return re_sub('\W+', '-', name.lower())
The repo "https://github.com/netbox-community/devicetype-library.git" is not a valid git repo.