%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/__pycache__/check.cpython-312.pyc

�

=	f˜���ddlmZdZdZdZdZddlZddlZddlZddl	Z	ddl
mZmZddl
mZdd	l
�dd
lmZmZmZmZdd	l�ddlmZdZ	dd
lmZmZdZedddfdezdddfej8dddej:ej<ej>ej@ejBejDddddgZ#e	jHd�Z%dZ&dCd�Z'd�Z(d�Z)d �Z*Gd!�d"e+�Z,e-d#k(�r�	ej]e�	ejej^d$dd%gd&��\Z0Z1d'Z7ejpd(�rd)Z7e9Z:dZ;dZ<e0D]�\Z=Z>e=d*vre'��e=d+k(r	e'd,�� e=d-k(r	e'd.��.e=d/k(re?ed0�1�ejld��Pe=d2vre>j��j��Z7�se=d3k(rd)Z7�{e=d4k(rdZ<��e=d5vreBZ:��e=d6vreCZ:��e=d7vre9Z:��e=d8k(r3ej�ej�d9��ejld$���e=d:k(s��dZ;��ej�e7�se'�e<sej��ej�j�d;�ZJej�ej�d<eJz��ej�j�eJ�r	ej�eJ�ej�eJ�e;sej�ej��nej�ej��e(�eRj�d>d?�ZTe,eUeVeT�ZWeWj�j��eWj�e:e;�\Z[Z\e[se\reWj��n ej�ej�d@��ej��ej�dB�yy#e$rej7d�Y��iwxYw#ejd$r?Z3ejie3jj�e'�ejld$�YdZ3[3���dZ3[3wwxYw#eM$rej�d=eJz�Y��~wxYw#e_$rejidA�Y��wxYw)D�)�print_functionz15.1z Dependency/Version Check Utilityzhp-checkzyChecks dependency versions,permissions of HPLIP. (Run as 'python ./check.py' from the HPLIP tarball before installation.)N)�PY3�to_string_utf8)r)�*)�utils�tui�queues�
smart_install)�cupsF)�device�pmlTzDevice library is not avail.��namezUsage: %s [OPTIONS]�summary)zCompile-time check:z-c or --compile�optionF)zRun-time check:z-r or --run or --runtimerF)zCompile and run-time checks:z-b or --both (default)rF)zb1. For checking for the proper build environment for the HPLIP supplied tarball (.tar.gz or .run),r�noteF)z%use the --compile or --both switches.rrF)zc2. For checking for the proper runtime environment for a distro supplied package (.deb, .rpm, etc),rrF)zuse the --runtime switch.rrFz	FUNC#(.*)�noc���|dk(rtjtt�tjt
|ttt�tjd�y)N�textr)	r�	log_title�	__title__�__version__�format_text�USAGE�__mod__�sys�exit)�typs �/usr/share/hplip/check.py�usager Ls8��
�f�}�
���	�;�/�	���e�S�)�W�k�B��H�H�Q�K�c��tjtt�tjtj
d��tjd�D]}tj|��tjd�D]}tj|��tjd�D]}tj|��tj�tjd�D]}tj|��tjd�D]}tj|��tjd�D]}tj|��tjd�D]}tj|��tjd	�D]}tj|��tjd
�D]}tj|��tj�tjd�tjd�tjd
�tjd�tj�y)Nz)Note: hp-check can be run in three modes:z�1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP.z�2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run.z�3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies).zCheck types:z&a. EXTERNALDEP - External DependencieszMb. GENERALDEP  - General Dependencies (required both at compile and run time)z*c. COMPILEDEP  - Compile time Dependencieszd. [All are run-time checks]z PYEXT
SCANCONF
QUEUES
PERMISSIONz
Status Types:z    OKz?    MISSING       - Missing Dependency or Permission or Plug-inzE    INCOMPAT      - Incompatible dependency-version or Plugin-version)	rrrr�log�info�boldr�format_paragraph)�ls r�
show_titler(Us���
���	�;�/�������E�F�G��%�%�'w�x�	�A��H�H�Q�K�	��%�%�'~��	�A��H�H�Q�K�	��%�%�'C�D�	�A��H�H�Q�K�	�	���
��%�%�n�5�	�A��H�H�Q�K�	��%�%�&N�O�	�A��H�H�Q�K�	��%�%�&u�v�	�A��H�H�Q�K�	��%�%�&R�S�	�A��H�H�Q�K�	��%�%�&D�E�	�A��H�H�Q�K�	��%�%�&K�L�	�A��H�H�Q�K�	�	���
�����!���������R�S����X�Y����
r!c�<�|dus|dk7r|dk(st||�ryyy)NTr�-�OK�INCOMPAT�MISSING)�
check_version)�Installedsts�min_ver�
Installed_vers   r�Status_Typer2ys*���t��|��1��c�>�]�=��A���r!c�^�d}|dk(s|dk(r1|dk(r*t|d�st|d�rd}|St|d�sd}|S|d	k(r
|dk(rd
}|Sd}|S|dk(s
|d
k(s|dk(r	|dk7rd}|S|dk(r
|dk7rd}|Sd}|S|dk(rtdk(r	|dk7rd}|S|dk(r
|dk7rd}|Sd}|S|dk7rd|z}|S)Nr*�pyqt�pyqt4r+z2.3z2.2z/Fax is not supported if version is lessthan 2.3z>Python Programming is not supported if version is lessthan 2.2�hpaioz%'hpaio found in /etc/sane.d/dll.conf'zP'hpaio not found in /etc/sane.d/dll.conf. hpaio needs to be added in this file.'�cupsext�pcardext�hpmudextz5'Not Found or Failed to load, Please reinstall HPLIP'rz*'CUPS may not be installed or not running'z'CUPS Scheduler is running'�libusb�yesz"'libusb-1.0 needs to be installed'�dbusz*'DBUS may not be installed or not running'z'%s needs to be installed')r.�IS_LIBUSB01_ENABLED)�package�Inst_status�
installed_ver�comments    r�get_commentrB�sF���G��&��G�w�.��$�� ���6�=��X]�;^�K��6�N�5#�=�%�8�Z��2�N�1
�G�	��$��=�G�,�N�)i�G�(�N�'
�I�	��J�!6�'�Z�:O��$��M�G�"�N�!
�6�	��$��B�G��N�4�G��N�
�H�	�!4��!=��$��:�G��N�
�F�	��$��B�G��N�	�G��N��$��2�7�:�G��Nr!c�\�eZdZeedfd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
edfd�Zd
�Zy)�DependenciesCheck�qt4c��d|_d|_t|||�|_||_g|_g|_g|_i|_d|_	g|_
d|_y)Nrr)�
num_errors�	num_warns�CoreInstall�core�
ui_toolkit�req_deps_to_be_installed�opt_deps_to_be_installed�cmds_to_be_run�comm_error_devices�
plugin_status�smart_install_devices�
user_grps_cmd)�self�mode�ui_moderKs    r�__init__zDependenciesCheck.__init__�s_����������g�z�:��	�$���(*��%�')��%� ���"$������%'��"���r!c��|dk(r|jdk(ry|jdk7r$|jdk7r|jdk7r|dk(ry|dk(r|jdk(ry|dk(r|jdk(ry|dk(r|jdk(ry|dk(r
|jsy|jjd	k(rd
|j
vr|dvry|d�d
}nftj|d�r@|d|jjvr"|jj|d�}nd
}nt|d�}t|d�|d|�}t|||�}gg}}|jj�r7|jj|�\}}|sN|dk(rI|j|�n7|jj||�\}}|s|dk(r|j|�|drd}	nd}	|dk(r0|d
k(st|d�rd|_t j#d|z�|dk(r|dk(rd|_|dk(r7t j'd|d�d|dd�d|	d�d|dd�d|d�d|d�d|���yt j't j)d|d�d|dd�d|	d�d|dd�d|d�d|d�d|����|xj*d z
c_|D] }
|
s�|j,j|
��"|	dk(r&|D] }|s�|j.j|��"y|D] }|s�|j0j|��"y)!N�cups-ddkT�qt5rE�qt3r4r5r6�rhelz5.)r<zpython-develzpython-dbusz
pyqt4-dbuszlibnetsnmp-devel�gcc�make�	reportlab�	policykitz
sane-develrX�r*��r�REQUIRED�OPTIONALrz1.4z6cups -ddk not required as cups version [%s] is => 1.4 r9r+� �20��60�15�10z error: �13�)�cups_ddk_not_reqrK�scanning_enabledrJ�distro_name�distro_version�Ver_Func_Pat�search�version_func�get_versionr2rB�is_auto_installer_support�get_dependency_data�appendr.r#�debug�hpmudext_availr$�redrGrNrMrL)rS�
sup_dist_vers�d�	deps_infor@�StatusrA�packages_to_install�commands�package_type�cmd�pkgs            r�__update_deps_infoz$DependenciesCheck.__update_deps_info�sF���
�?�t�4�4��<��
�_�_��
%�$�/�/�U�*B�t���Z_�G_�de�io�do��
�&�[�T�_�_��5��
�&�[�T�_�_��5��
�'�\�d�o�o��6��
�'�\�$�"7�"7��
�Y�Y�
"�
"�V�
+���8K�8K�0K��W�W���Q�<���M�
�
 �
 ��1��
.���|�t�y�y�5�5�5� D��	�	� 6� 6�y��|� D� F�
� #�
�'�	�!��5�M��\�Y�q�\�^�I�a�L��G���a���7��&(��X���9�9�.�.�0�,0�I�I�,I�,I�!�,L�)���&�1��<�#�*�*�1�-�,0�I�I�,I�,I�!�M�,Z�)���&�1��<�#�*�*�1�-��Q�<�%�L�%�L���;�]�c�1�m�M�RW�6X�$(�D�!��I�I�N�}�\�]��
�?�v��~�"&�D���T�>��H�H��9�Q�<�Q]�^g�hi�^j�kx�y�AH�I�
J��H�H�S�W�W�PQ�R[�\]�R^�`l�mv�wx�my�{H�IO�PW�X�Y�
Z��O�O�q� �O��
4����'�'�.�.�s�3�
4��z�)�.�B�C���5�5�<�<�S�A�B�/�B�C���5�5�<�<�S�A�Br!c��|jS�N)rL�rSs r�get_required_depsz#DependenciesCheck.get_required_deps����,�,�,r!c��|jSr�)rMr�s r�get_optional_depsz#DependenciesCheck.get_optional_depsr�r!c��|jSr�)rNr�s r�get_cmd_to_runz DependenciesCheck.get_cmd_to_runs���"�"�"r!c��|jSr�)rOr�s r�get_communication_error_devsz.DependenciesCheck.get_communication_error_devss���&�&�&r!c��|jSr�)rRr�s r�get_user_grp_cmdz"DependenciesCheck.get_user_grp_cmd����!�!�!r!c��|jSr�)rPr�s r�get_plugin_statusz#DependenciesCheck.get_plugin_statusr�r!c��|jSr�)rQr�s r�get_smart_install_devicesz+DependenciesCheck.get_smart_install_devices s���)�)�)r!Fc�(�d|_d|_tjdd�|_t
j
�}|r#t
jt
j�tjddd�}|jjd�}|jj}|jj|vr�t|�r�|t|�dz
}t
jt
j|jj�d|jj�d	|jj�d|�d
���t!j"d�t%j&d�\}}t%j&d
�\}}	t%j&d�\}}
t
j)d|�d|	�d|
�d|jj�d|jj��
�t
j)dt%j*�z�t!j"d�tjdd�}|�r�tjdd�}t
j)d|z�t
j)d|z�|jj-�rEt
j)d|jj�d|jj�d��nDt
jd|jj�d|jj�d��t
j)�t
j)t
jd��	t/d d!�j1�}
t
j)|
�t
j)�t
j)t
jd#��	t/t<j>jAd$�d!�j1�}
t
j)|
�t
j)�t
j)t
jd&��	t/t<j>jAd'�d!�j1�}
t
j)|
�t%jDtjdd)d*��|_#t
j)d+d,z�|jjHjK|jjL�|tNk(s	|tPk(r�tRtTtVtXtZd-�}|D]�}t!j"|�|jjHD]�}|jjH|d.||k(s�&t]|jjH|dD�cgc]}|jj^|��c}�s�q|ja|||jjH|�����|jFr�t!j"d/�t%jbd0�rbt%j&d1�\}}
|d2k7rt
j7d3�n/d4|
vrt
j)d5�nt
j)|
�td�rtfjhr�t!j"d6�tkjld7g�}|rct!jn�}d8|_tq|js��D]\}}|ju||d2f��|jw�nt
j)d9�t!j"d:�tyjzd;txj|�}t%j&d<�\}}
t
j)�g}d}|
j�D]I}	|j�|�}|j�d�}|j�d=�}|j�||f��Kt
j�|�|�rp|D�]i}|\}}|j�d>�s|j�d?�r�,	tkj�|�\	}} }!}"}#}$}%}&}'t
j)t
j|��t
j)t
jdt|�z��dA}|dBk(rdC}n|dDk(rdE}t
j)dF|z�t
j)dG|z�t<j>j�dH|dIz�}(t<j>j�|(��r|t
j)dJ|(z�tyjzdKtxj��})	t�t/|(dL�j1��}	|)j�|�j�d�}*t
j)dO|*z�t%j&dP|z�\}}
t
j)dQ|
j�dRdM�z�|dBk(r4|*r2dS|*vr.|xj:dz
c_t
j7dT|z�ng|dDk(r4|*r2dS|*vr.|xj:dz
c_t
j7dU|z�n.|dVvr*t
jdW�|xjBdz
c_!td�r�| �r�d}		tkj�|ddddX�}|j�jdZt��}+|+t�t�fv�r@|s&d2d[lSmT},|,j��}-|-j��}|,j�k(rFt�|_X|+|,j�k(rt
j)d\�n�t
j)d]�n�||,j�k(rjt�|_X|+t�k(r+|xj:dz
c_t
j7d^�nu|xjBdz
c_!t
jd_�nJ||,j�k(r;|xjBdz
c_!|,j�|_Xt
jd`�|!davr�	|j/�|j��}.t
j�|.�|.s:t
j7db�||j�|<|xj:dz
c_n�t
j)dc�ny|!ddk(rt	|j�t�j��\}/}..s:t
j7db�||j�|<|xj:dz
c_nt
j)dc�|�|j��	t
j)���lnt
jde�t!j"df�|j�rUt%jbdg�}0|0�r=t<j>j�|0dg�}0t%j&dh|0z�\}}
|
�r�tyjzditxj|�}1t
j�|
�	t%j�dj�}2|
j�D�]�}3dX}4|1j�|3�}|��|j��\}!}5}6}7}82j�|!|5�\}9}:|9|2j�k(r4t�|:�}:d}	tkj�|:ddddX�}|j�s��t
j�dl���t�j��};d}|;D]}|j�|:k(s�|j�}nt<j>j�dmdndod7|!|5�}<t<j>j�|<�s$t<j>j�dmdpdod7|!|5�}<t<j>j�|<�s��`t=j�|<�\
}=}>}?}@}A}B}C}D}E}Ft%jbdqdX�}G|Gr�t%j&G�d|<���\}}
|
j�dr�}HdM}I|HD]_}Jdq|Jvs�dMJk7s�dsJvs�tyjzdt�}K|Kj�J�s�:IdzKj�J�j�d�z}I�at
j)dudv�d|dw�ddxdv�dddy�dddy�ddzdy�dd{|<�d|I�d}���
���dt
j)dudv�d|dw�ddxdv�dddy�dddy�ddzdy�dd{|<�d~|=dz�d}���
����t�j��|_ot|j��r�t!j"d��|xj:dz
c_|j�D]"}t
j7|dw�dd�d��dd��d���$n*t
j7d��|xj:dz
c_|rt
j|�|j:|jBfS#t2t4f$rB}t
j7d"|j8z�|xj:dz
c_Yd}~���d}~wwxYw#t2t4f$r-}t
j)d%|j8z�Yd}~���d}~wwxYw#t2t4f$rB}t
jd(|j8z�|xjBdz
c_!Yd}~��ld}~wwxYwcc}w#t�$rY��;wxYw#t�$rd@\	}} }!}"}#}$}%}&}'Y�
��wxYw#t�$rdM}*Y�	�VwxYw#t2$rt
jdN|(z�dM}*Y�	��wxYw#t�$r-t
j7dY�Y|���T|j����fwxYw#t�$r,}t
j7|j��dM}.Yd}~��"d}~wwxYw#t�$rY���wxYw#|�|j��wwxYw#t�$r.t
j7dk�|xj:dz
c_Y���wxYw#t�$rY���wxYw)�NF�	configure�
ui-toolkitzlibusb01-buildr�
versions_listrlr*z! version is not supported. Using z/ versions dependencies to verify and install...zSYSTEM INFOzuname -r -v -ozuname -nz	 Kernel: z Host: z Proc: z Distribution: rez Bitness: %s bit
zHPLIP CONFIGURATION�hplip�version�dirs�homezHPLIP-Version: HPLIP %szHPLIP-Home: %sz7HPLIP-Installation: Auto installation is supported for z	 distro  z	 version z;HPLIP-Installation: Auto installation is not supported for z.Current contents of '/etc/hp/hplip.conf' file:z/etc/hp/hplip.conf�rz4Could not access file: %s. Check HPLIP installation.z3Current contents of '/var/lib/hp/hplip.state' file:z/var/lib/hp/hplip.statez4Plugins are not installed. Could not access file: %sz/Current contents of '~/.hplip/hplip.conf' file:z~/.hplip/hplip.confzCould not access file: %sz
scanner-build�0z' %-20s %-20s %-10s %-10s %-10s %-10s %s)z<Package-name>z <Package-Desc>z<Required/Optional>z
<Min-Version>z<Installed-Version>z<Status>z	<Comment>)zExternal DependencieszGeneral Dependencies�
COMPILEDEPzPython ExtentionszScan Configuration�zDISCOVERED SCANNER DEVICES�	scanimagezscanimage -Lrz#Failed to get Scanners information.zNo scanners were identifiedzNo Scanner found.zDISCOVERED USB DEVICES�usb)z
Device URI�ModelzNo devices found.zINSTALLED CUPS PRINTER QUEUESz(\S*): (.*)z	lpstat -vrgz
cups-pdf:/zipp://)	rFrrrrrrrl�Unknown�hpfax�Fax�hp�PrinterzType: %szDevice URI: %sz
/etc/cups/ppdz.ppdzPPD: %sz\*NickName:\s*\"(.*)"�rbrzFailed to read %s ppd filezPPD Description: %szlpstat -p%szPrinter status: %s�
zHP FaxzNIncorrect PPD file for fax queue '%s'. Fax queues must use 'HP-Fax-hplip.ppd'.zXIncorrect PPD file for a print queue '%s'. Print queues must not use 'HP-Fax-hplip.ppd'.)r�r�z`Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend for HP-Devices.TzDevice initialization failed.�plugin)�
pluginhandlerz"Required plug-in status: Installedz"Optional plug-in status: Installedz&Required plug-in status: Not installedz&Optional plug-in status: Not installedz plug-in status: Version mismatch)�parr�zCommunication status: FailedzCommunication status: Good�netzNo queues found.�
PERMISSION�lsusbz
%s -d03f0:zd^Bus\s([0-9a-fA-F]{3,3})\sDevice\s([0-9a-fA-F]{3,3}):\sID\s([0-9a-fA-F]{4,4}):([0-9a-fA-F]{4,4})(.*)r9zfNOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of hpmudext.z     Device URI: (Makeuri FAILED)�/�dev�bus�proc�getfaclz
�filez.*:(.*)�USBri�30�Required�8r+zNode:'z' Perm:'�'z' Mode:'i�z)'CD-ROM'/'Smart Install' Detected Devices�CD_ROM_EnabledrfzNeeds to disable Smart InstallzHPLIP not found.)prmry�sys_conf�getrKr#�	get_where�	set_where�LOG_TO_FILErJ�get_distro_datarp�len�warnr%ror�headerr�runr$�
getBitnessru�open�read�IOError�OSError�error�strerrorrG�os�path�
expanduserrH�to_boolrn�dependencies�update�hplip_dependencies�DEPENDENCY_RUN_AND_COMPILE_TIME�DEPENDENCY_RUN_TIME�EXTERNALDEP�
GENERALDEPr��PYEXT�SCANCONF�any�selected_options�$_DependenciesCheck__update_deps_info�which�device_avail�prop�	usb_buildr�probeDevices�	Formatter�list�items�add�output�re�compile�
IGNORECASE�
splitlinesrr�grouprw�AttributeErrorrx�
startswith�parseDeviceURI�Error�join�exists�	MULTILINEr�replace�Device�close�mq�PLUGIN_NONE�PLUGIN_REQUIRED�PLUGIN_OPTIONAL�	installerr��PluginHandle�	getStatus�PLUGIN_INSTALLEDrP�PLUGIN_NOT_INSTALLED�PLUGIN_VERSION_MISMATCH�getDeviceID�msgrO�getPMLr
�
OID_DEVICE_ID�
import_ext�ImportError�groups�make_usb_uri�
HPMUD_R_OK�	supportedr�getPrinters�
device_urir�stat�splitr
� get_smartinstall_enabled_devicesrQ)LrS�	time_flag�
is_quiet_mode�org_log_locationr=�vrs�supported_distro_vrs�Sts�Kernel_info�	Host_info�	Proc_info�vr�r��e�dep_dict�	dep_check�dep�x�status�devices�fr|�dd�
lpstat_pat�
cups_printers�
plugin_sts�p�match�printer_namer�back_end�is_hpr��model�serial�dev_file�host�zc�port�ppd�nickname_pat�descr�r��	pluginObj�deviceid�
error_coder��	lsusb_patr9�o�okr��vid�pid�mfg�result_code�	deviceuri�printers�devnode�st_mode�st_ino�st_dev�st_nlink�st_uid�st_gid�st_size�st_atime�st_mtime�st_ctimer��getfacl_out_list�out�g�patsL                                                                            r�validatezDependenciesCheck.validate$s(�� %���#���"�,�,�{�<�@����=�=�?����M�M�#�/�/�*�&�l�l�;�8H�$�O��
�Y�Y�
&�
&��
7��"�i�i�6�6���9�9�#�#�3�.�3�s�8�"%�c�#�h�q�j�/� ��H�H�S�X�X��y�y�,�,�d�i�i�.F�.F��	�	�H]�H]�_s�u�v�
w�	�
�
�=�!��)�)�$4�5���[��	�	�*�-���Y��	�	�"2�3���Y�����9�Y�t�y�y�/D�/D�d�i�i�F^�F^�`�	a����%�e�&6�&6�&8�8�9��
�
�(�)��L�L��)�,����<�<���/�D��H�H�.��1�2��H�H�%�t�+�,��y�y�2�2�4����ko�kt�kt�lA�lA�CG�CL�CL�C[�C[�\�]����os�ox�ox�pE�pE�GK�GP�GP�G_�G_�`�a��H�H�J��H�H�S�X�X�N�O�P�
!��2�C�8�=�=�?��
���� ��H�H�J��H�H�S�X�X�S�T�U�
!��b�g�g�0�0�1J�K�S�Q�V�V�X������ ��H�H�J��H�H�S�X�X�O�P�Q�
!��b�g�g�0�0�1F�G��M�R�R�T��
���� �$)�M�M�(�,�,�{�O�]`�2a�$b�D�!��H�H�>�@}�}�
~��I�I�"�"�)�)�$�)�)�*F�*F�G��;�;�y�L_�?_�6A�[e�u�W\�t|�~��!)�9�I��J�J�y�)�#�y�y�5�5�9���9�9�1�1�#�6�q�9�X�i�=P�P�UX�BF�BK�BK�BX�BX�Y\�B]�^_�B`�Za�|}�Z^�Zc�Zc�Zt�Zt�uv�Zw�Za�Vb� �3�3�4H�#� �I�I�2�2�3�7�9�9�9�T�$�$��
�
�7�8��;�;�{�+�%*�Y�Y�~�%>�N�F�F���{��	�	�"G�H�6�&�@����!4�5�����(���>�>��J�J�7�8�$�1�1�5�'�:�G���M�M�O��#:���%)�'�-�-�/�%:�.�E�A�r��E�E�1�b��e�*�-�.����
����!4�5��
�
�:�;��Z�Z�(:�B�M�M�J�
�!&���;�!7�������
� "�
�!�
��*�*�,��A�� *� 1� 1�!� 4��',�{�{�1�~��%*�[�[��^�
�%�,�,�l�J�-G�H���	�	�-�(� �*�L#��34�0��j�%�0�0��>�&�1�1�(�;�$�E� &� 5� 5�j� A�Z�H�e�S�%���4�QS�UY�������,�!7�8�������#�c�,�.?�*?�!@�A�%��#�w�.� %�A�%��-� )�A�����a��0����!1�J�!>�?� �g�g�l�l�?�L�6�<Q�R���7�7�>�>�#�.��H�H�Y��_�5�+-�:�:�6R�TV�T`�T`�+a�L�	.�$2�4��T�?�3G�3G�3I�$J��
!.�+7�+>�+>�q�+A�+G�+G��+J�D� �H�H�%:�T�%A�B�-2�Y�Y�}�|�7S�-T�N�F�F��H�H�%9�F�N�N�4�QS�<T�%T�U�'�7�2�t�H�PT�DT� $���1� 4�� #�	�	�*z�~J�+J�!K�!)�T�!1�d�x�4�?O� $���1� 4�� #�	�	�+E�HT�+T�!U�!)��!@� #���*L�!M� $���!� 3��'�E� $�A�D.�!-�(.�
�
�j��t�T�SW�(X�A�
*+�����(�K�)H��#)�o��-O�#O�+5�(K�4A�4N�4N�4P�	�5>�5H�5H�5J�
�'1�]�5S�5S�'S�=M��(:�+1�]�5R�5R�+R�,/�H�H�5Y�,Z�,/�H�H�5Y�,Z�)3�}�7Y�7Y�)Y�=Q��(:�+1�_�+D�,0�O�O�q�,@�O�,/�I�I�6^�,_�,0�N�N�Q�,>�N�,/�H�H�5]�,^�)3�}�7\�7\�)\�(,���!�(;��=J�=b�=b��(:�(+���1S�(T�$'�.�#8�%<�()����
45�=�=�?��(+�	�	�(�(;�,4�(+�	�	�2P�(Q�PZ��(?�(?��(M�(,���1�(<��(+���1M�(N�%(�E�\�%-�?@�x�x��HY�HY�?Z�(<�
�H�
,4�(+�	�	�2P�(Q�PZ��(?�(?��(M�(,���1�(<��(+���1M�(N�$%�=�$%�G�G�I����
�YL#�\�H�H�/�0��J�J�|�$��"�"����G�,����G�G�L�L���8�E�%*�Y�Y�|�e�/C�%D�N�F�F��$&�J�J�0[�]_�]j�]j�%k�	��	�	�&�)�1�',�'7�'7�
�'C�H�
"(�!2�!2�!4�5v�A�!%�B�$-�$4�$4�Q�$7�E�$�0�:?�,�,�.� 7��S�#�s�C�9A�9N�9N�s�TW�9X� 6��Y�#.�(�2E�2E�#E�0>�y�0I�I�(,�A�%1�,2�M�M�)�D�$�PT�VZ�,[��,-�;�;�(0�$'�I�I�.P�$Q�$,�+/�+;�+;�+=��-1��)1�!.�A�'(�|�|�y�'@�56�V�V��(-�!.�
+-�'�'�,�,�s�E�5�%�QT�VY�*Z��')�w�w�~�~�g�'>�.0�g�g�l�l�3���u�VY�[^�._�G�#%�7�7�>�>�'�#:�QS�PW�PW�X_�P`�%M�G�V�V�X�v�v�'.��(�H�.3�k�k�)�D�.I�G�'.�9>���g�W^�C_�9`����;A�<�<��;O�(8�-/��1A�)[�A�/8��/A�b�A�g�RX�`a�Ra�68�j�j��6O��36�:�:�a�=�:=�s�(�C�J�J�q�M�DW�DW�XY�DZ�:Z�C�	)[�
),���X]�_k�mw�y|�B�DH�ah�il�Jm�2n�)o�(+���X]�_k�mw�x{�|�AE�^e�fm�ns�fs�Gt�2u�)v�k5v�V*7�)W�)W�)Y�D�&��4�-�-�.��
�
�F�G����1�$���3�3�i�A��I�I��4D�Ff�g�h�i�
�I�I�(�)��O�O�q� �O���M�M�*�+�������.�.��W�W�%�
%��	�	�P�ST�S]�S]�]�^����1�$����
%���W�%�
^����O�RS�R\�R\�\�]�]��
^���W�%�
$����4�q�z�z�A�B����!�#����
$��Za��B*�����  %�E� D�Z�H�e�S�%���4�QS�UY�E��N(6�!.�+-�D�!.��
$+�*� #���)E�c�)I� J�')��*��>(-�!-�$'�I�I�.M�$N�$,�|$%�=�$%�G�G�I�C!-��D,1�%6�(+�	�	�!�%�%�(8�35���%6��$,1�%-�(,�%-��$%�=�$%�G�G�I�$1��6 +�1��I�I�'O�P� �O�O�q�0�O�O�1��&,1�%1�(0�%1�s��6AI�"7AJ�+7AK� AL+�AAL0�AM�#AM.�4 AM�AN�6E3AP�*AO�:A<AP�7"AP	�AAP�AP1�#AQ+�IAJ�I7AJ�JAJ�JAK�J'"AK�KAK�KAL(�K&7AL#�L#AL(�L0	AL=�L<AL=�MAM�MAM�MAM+�M*AM+�M.#AN�NAN�NAO�N6AP�O
AO�OAP�O	AP�O!AP�O;AP�PAP�PAP�P		AP�PAP�PAP�PAP�PAP.�P13AQ(�Q'AQ(�Q+	AQ8�Q7AQ8c�j�tjd�tjtj	d��tjtj	dtd�z��t|j�dk(rtjd�nK|jD]<}|dk(rtjd|�d|�d	���%tjd
|z��>tjd�tjtj	d��tjtj	dtd�z��t|j�dk(rtjd
�n)|jD]}tjd
|z��|jtk(s|jtk(r�tjd�tjtj	d��tjtj	dtd�z��tjd�|jr�tjd�tjtj	d��tjtj	dtd�z��|jD]}tjd|z��tj�\}}tjtj	d|z��tjd�tjd|jz�tjd|j z�tj�y)N�SUMMARYzMissing Required Dependenciesr*r�Nonerr�z' package is missing or 'z' service is not running.z%'%s' package is missing/incompatible rzMissing Optional DependencieszNone
zPlug-in StatuszPlug-ins need to be installedz$SMART INSTALL/CD_ROM ENABLED DEVICESz%sz�Smart Install is enabled for these devices. Please disable Smart Install to enable device functionalities.

Refer link '%s' to disable Smart Install.
zTotal Errors: %dzTotal Warnings: %d)rr�r#r$r%r�rLr�rMrPrrrQr
�get_SmartInstall_tool_inforGrH)rSrr��url�	tool_names     r�display_summaryz!DependenciesCheck.display_summary�s����
�
�9��������9�:�;�������#�c�"A�B�B�C�D��t�,�,�-��2��H�H�V��'+�'D�'D�
[�#�&�&�0��I�I�Yl�nA�B�C��I�I�E�FY�Y�Z�	
[�	�����������9�:�;�������#�c�"A�B�B�C�D��t�,�,�-��2��H�H�X��'+�'D�'D�
W�#��	�	�A�BU�U�V�
W����!5�5��9K�9K�Of�9f��H�H�R�L��H�H�S�X�X�.�/�0��H�H�S�X�X�c�#�&6�"7�7�8�9��I�I�5�6��%�%��H�H�R�L��H�H�S�X�X�D�E�F��H�H�S�X�X�c�#�&L�"M�M�N�O��1�1�
$���	�	�$�s�(�#�
$�*�E�E�G�N�C���H�H�S�X�X�z�|�@�A�
B���������#�d�o�o�5�6����%����6�7����
r!N)�__name__�
__module__�__qualname__�
MODE_CHECK�INTERACTIVE_MODErVr�r�r�r�r�r�r�r�r�rQrX�r!rrDrD�sO��&�0@�U� �$@B�F-�-�#�'�"�"�*�!@�PU�s/�l
5r!rD�__main__rlz
hl:gtcrbsi)
�helpz	help-restzhelp-manz	help-desczlogging=r��runtimer��both�fixr$�HPLIP_DEBUGrx)z-hz--helpz--help-rest�restz
--help-man�manz--help-descre)�end)z-lz	--loggingz-gz-t)z-cz	--compile)z-rz	--runtimez--run)z-bz--bothz--fixzI

Note:- 'hp-check --fix' is deprecated. Please run 'hp-doctor' command

z-sz./hp-check.logzSaving output in log file: %szFailed to remove %s filer�r�zNo errors or warnings.z	User exitzDone.)r)`�
__future__rrrr�__doc__rr��getoptr��base.sixextrr�base.g�baserrr	r
�installer.core_install�prntrr�rr
rr#rx�
USAGE_OPTIONS�USAGE_LOGGING1�USAGE_LOGGING2�USAGE_LOGGING3�USAGE_LOGGING_PLAIN�
USAGE_HELP�USAGE_NOTESrr�rqr=r r(r2rB�objectrDrY�
set_module�argv�opts�args�GetoptErrorrr�rr�	log_level�getenvr�rr�fmtr:�a�print�lower�strip�DEPENDENCY_COMPILE_TIMEr�r$r%�	set_level�
no_formattingr��abspath�log_filer��remover��set_logfiler��LOG_TO_CONSOLE_AND_FILEr�r�r�rKr\r]rrJ�initrQrGrHrX�green�KeyboardInterruptr^r!r�<module>r�sG��,&���.�	�
��J���	�
�	�+�&��2�2�$����� �
�L��2�v�t�	$�
�'�
)�2�y�$�	?�	�	�	�	D�	I�	T�	�	�	�u�3�3�U�5I�5I�	�	"�	"�	�	�	�	�	�	�
C�	E�
D�	9�	
��"�r�z�z�/�*�����!�H� �Le	��e	�X�z��O����w��	�&����s�x�x���|�\�Di�j�J�D�$��	��2�9�9�]�#��I�3�	��
����	%�D�A�q��$�$����m�#��f�
��l�"��e���m�#��g�3�'��������)�)��G�G�I�O�O�-�	��d��#�	��d�����)�)�3�	��2�2�/�	��&�&�;�	��g��������"q�r�s��������d�� $�
�5	%�8�}�}�Y�'��G�������7�7�?�?�#3�4��������9�H�D�E�F�
�7�7�>�>�(�#�
���	�	�(�#�
	����!���M�M�#�5�5�6��M�M�#�/�/�*����\�\�+�l�;�
� ��,<�Z�H�����
�
�� #���Y�
� F��
�I������!��H�H�S�Y�Y�7�8�9�
�H�H�J��H�H�W��g��Q�.��I�I�,�-�.��\�!�!�	��I�I�a�e�e���G��C�H�H�Q�K�K��	��h�
����3�H�<�=��
��*���	�	�+���s{�N&�,P4�>&O�$C3P4�BP4� P�2CP4�&O�?O�P�4P�P4�P�P4�P1�-P4�0P1�1P4�4Q
�Q


Zerion Mini Shell 1.0