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
270 stars 89 forks source link

SyntaxWarning: invalid escape sequence '\W' #139

Open NunoOliveira opened 5 months ago

NunoOliveira commented 5 months 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.