pyodbc.OperationalError: ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')

Just some ideas:

  • try without the cache decorators
  • use IP address of the database server

Here are some threads with similar issues: