DepricationWarning in websockets.legacy

Hi support,

If I install an application with viktor-cli install the application gives the following DepricationWarning:

he application has successfully been installed. Use the command 'viktor-cli start' to start your app.
(venv) PS C:\Users\bavo6\PycharmProjects\HI-BetondoorsnedeApplicatie> viktor-cli start  
C:\Users\bavo6\PycharmProjects\HI-BetondoorsnedeApplicatie\venv\Lib\site-packages\viktor_connector\_vendor\websockets\legacy\__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
C:\Users\bavo6\PycharmProjects\HI-BetondoorsnedeApplicatie\venv\Lib\site-packages\viktor_connector\_vendor\websockets\legacy\__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
2025-03-12 10:57:40.120 INFO    :  __      __ __  __  __        
2025-03-12 10:57:40.120 INFO    :  \ \    / / | | | |/ /
2025-03-12 10:57:40.122 INFO    :   \ \  / /  | | | ' /
2025-03-12 10:57:40.122 INFO    :    \ \/ /   | | |  <
2025-03-12 10:57:40.122 INFO    :     \  /    | | | . \
2025-03-12 10:57:40.122 INFO    :      \/     |_| |_|\_\
2025-03-12 10:57:40.122 INFO    :   _______   ____    _____
2025-03-12 10:57:40.122 INFO    :  |__   __| / __ \  |  __ \
2025-03-12 10:57:40.122 INFO    :     | |   | |  | | | |__) |
2025-03-12 10:57:40.122 INFO    :     | |   | |  | | |  _  /
2025-03-12 10:57:40.122 INFO    :     | |   | |__| | | | \ \
2025-03-12 10:57:40.122 INFO    :     |_|    \____/  |_|  \_\
2025-03-12 10:57:40.122 INFO    : VIKTOR connector : v6.1.1
2025-03-12 10:57:40.123 INFO    : VIKTOR CLI       : v0.44.2
2025-03-12 10:57:40.123 INFO    : VIKTOR SDK       : v14.1.0
C:\Users\bavo6\PycharmProjects\HI-BetondoorsnedeApplicatie\venv\Lib\site-packages\viktor_connector\_vendor\websockets\legacy\__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
2025-03-12 10:57:49.446 INFO    : Connecting to heijmans.viktor.ai...
2025-03-12 10:57:49.738 INFO    : Connection is established (use Ctrl+C to close)
2025-03-12 10:57:49.738 INFO    :

How can I resolve this warning?

Hi Bart, thanks for notifying.

This warning is emitted from the viktor-connector and cannot be fixed from your side. We will have to patch the connector for this, you can ignore this for now :see_no_evil:

Thats my favorite part of coding: ignoring warnings :slight_smile:

2 Likes

This has been fixed with the latest viktor-connector v6.1.2. Please re-install your app to automatically use the latest version.