U
    ^»{jö  ã                   @   s4   G d d„ de ƒZG dd„ de ƒZG dd„ deƒZdS )c                   @   s   e Zd ZdZdS )ÚBrowserClosedErrorzEAn error for when the browser is closed accidentally (during access).N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú]/var/www/html/bwave/python/venv/lib/python3.8/site-packages/choreographer/browsers/_errors.pyr      s   r   c                   @   s   e Zd ZdZdS )ÚBrowserFailedErrorz.An error for when the browser fails to launch.Nr   r   r   r   r   r	      s   r	   c                       s&   e Zd ZdZddœ‡ fdd„Z‡  ZS )ÚBrowserDepsErrorz@An error for when the browser is closed because of missing libs.N)Úreturnc                    s   d}t ƒ  |¡ d S )Na�  It seems like you are running a slim version of your operating system and are missing some common dependencies. The following command should install the required dependencies on most systems:

$ sudo apt update && sudo apt-get install libnss3 libatk-bridge2.0-0 libcups2 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libcairo2 libasound2

If you have already run the above command and are still seeing this error, or the above command fails, consult the Kaleido documentation for operating system to install chromium dependencies.

For support, run the command `choreo_diagnose` and create an issue with its output.)ÚsuperÚ__init__)ÚselfÚmsg©Ú	__class__r   r   r      s    ÿzBrowserDepsError.__init__)r   r   r   r   r   Ú__classcell__r   r   r   r   r
   	   s   r
   N)ÚRuntimeErrorr   r	   r
   r   r   r   r   Ú<module>   s   