o
    #Õj¯  ã                   @   s   d Z ddlZg Zddd„ZdS )z$Lazy imports for heavy dependencies.é    Nc                 C   sh   | }|   d¡dkr|  d¡d }| dkrd}zt | ¡}|W S  ty3   |du r/d | |¡}t|ƒ‚w )zETry importing a module, with an informative error message on failure.Ú.éÿÿÿÿr   Zcv2zopencv-pythonNz¤Failed importing {}. This likely means that some paddle modules require additional dependencies that have to be manually installed (usually with `pip install {}`). )ÚfindÚsplitÚ	importlibÚimport_moduleÚImportErrorÚformat)Úmodule_nameÚerr_msgZinstall_nameÚmod© r   úY/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/paddle/utils/lazy_import.pyÚ
try_import   s   
üùr   )N)Ú__doc__r   Ú__all__r   r   r   r   r   Ú<module>   s   