ó
Ý²k^c           @` sm  d  d l  m Z m Z m Z m Z d  d l m Z d  d l m Z d  d l	 m
 Z
 d  d l Z d  d l m Z d  d l Z d  d l m Z d  d l Z d  d l m Z d  d	 l m Z m Z d  d l Z d
 d l m Z m Z m Z m Z d
 d l m Z d
 d l m  Z  d
 d l! m" Z" d
 d l# m$ Z$ d
 d l% m& Z& m' Z' m( Z( d
 d l) m* Z* m+ Z+ m, Z, m- Z- m. Z. m/ Z/ m0 Z0 d
 d l1 m2 Z2 m3 Z3 d
 d l4 m5 Z5 e e6 ƒ Z7 d e f d „  ƒ  YZ8 e8 Z9 Z: d e f d „  ƒ  YZ; d e f d „  ƒ  YZ< d e< f d „  ƒ  YZ= d e f d „  ƒ  YZ> d e> f d „  ƒ  YZ? d  e> f d! „  ƒ  YZ@ d" e> f d# „  ƒ  YZA d$ e f d% „  ƒ  YZB d& e< f d' „  ƒ  YZC d( e< f d) „  ƒ  YZD d* e f d+ „  ƒ  YZE d, eE f d- „  ƒ  YZF d. eE f d/ „  ƒ  YZG d0 eE f d1 „  ƒ  YZH d2 eE f d3 „  ƒ  YZI d4 e f d5 „  ƒ  YZJ d6 e eK f d7 „  ƒ  YZL d8 e f d9 „  ƒ  YZM d: e f d; „  ƒ  YZN d< e f d= „  ƒ  YZO d> e f d? „  ƒ  YZP d@ e f dA „  ƒ  YZQ dB e eR f dC „  ƒ  YZS dD e f dE „  ƒ  YZT dF e eU f dG „  ƒ  YZV dH e f dI „  ƒ  YZW dJ e f dK „  ƒ  YZX dL e eK f dM „  ƒ  YZY dN e f dO „  ƒ  YZZ dP e e[ f dQ „  ƒ  YZ\ dR e\ f dS „  ƒ  YZ] dT e e^ f dU „  ƒ  YZ_ dV e f dW „  ƒ  YZ` dX e` f dY „  ƒ  YZa dZ e` f d[ „  ƒ  YZb d\ e f d] „  ƒ  YZc d^ e ed f d_ „  ƒ  YZe d` e f da „  ƒ  YZf db ef f dc „  ƒ  YZg dd e f de „  ƒ  YZh df e f dg „  ƒ  YZi dh e f di „  ƒ  YZj dj e f dk „  ƒ  YZk dl e f dm „  ƒ  YZl dn e f do „  ƒ  YZm dp e f dq „  ƒ  YZn dr e f ds „  ƒ  YZo dt e f du „  ƒ  YZp dv e f dw „  ƒ  YZq dx e f dy „  ƒ  YZr dz e es f d{ „  ƒ  YZt d| e eu f d} „  ƒ  YZv d~ e ew f d „  ƒ  YZx d€ e eu f d „  ƒ  YZy d‚ e f dƒ „  ƒ  YZz d„ e f d… „  ƒ  YZ{ d† e f d‡ „  ƒ  YZ| dˆ e f d‰ „  ƒ  YZ} dŠ e f d‹ „  ƒ  YZ~ dŒ e f d „  ƒ  YZ dŽ e e€ f d „  ƒ  YZ d e eK f d‘ „  ƒ  YZ‚ d’ e f d“ „  ƒ  YZƒ d” e f d• „  ƒ  YZ„ d– e f d— „  ƒ  YZ… d˜ e f d™ „  ƒ  YZ† dš e f d› „  ƒ  YZ‡ dœ e eu f d „  ƒ  YZˆ dž eˆ f dŸ „  ƒ  YZ‰ d  eˆ f d¡ „  ƒ  YZŠ d¢ e f d£ „  ƒ  YZ‹ d¤ e f d¥ „  ƒ  YZŒ d¦ „  Z eŽ d§ „ Z eŽ eŽ d¨ „ Z d© e‘ f dª „  ƒ  YZ’ d« „  Z“ d S(¬   i    (   t   absolute_importt   divisiont   print_functiont   unicode_literals(   t	   timedelta(   t   ENOSPC(   t   partialN(   t	   getLogger(   t   join(   t   dedent(   t   format_exceptiont   format_exception_onlyi   (   t
   CondaErrort   CondaExitZerot   CondaMultiErrort	   text_type(   t   EntityEncoder(   t   dals(   t   boolify(   t   groupby(   t   COMPATIBLE_SHELLSt   PathConflictt   SafetyChecks(   t   PY2t   ensure_text_typet   inputt	   iteritemst   iterkeyst   on_wint   string_types(   t   dashlistt   timeout(   t   get_signal_namet   ResolvePackageNotFoundc           B` s   e  Z d  „  Z RS(   c         C` so   t  d „  | Dƒ ƒ |  _ t  d „  | Dƒ ƒ } | |  _ d d j d „  | Dƒ ƒ } t t |  ƒ j | ƒ d  S(   Nc         s` s(   |  ] } | D] } | r | Vq q d  S(   N(    (   t   .0t   depst   dep(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>%   s    c         s` s'   |  ] } d  j  t t | ƒ ƒ Vq d S(   u    -> N(   R   t   mapt   str(   R"   t	   bad_chain(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>&   s    u   
c         s` s   |  ] } d  | Vq d S(   u     - %sN(    (   R"   R'   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>(   s    (   t   tuplet   bad_depst   _formatted_chainsR   t   superR!   t   __init__(   t   selfR)   t   formatted_chainst   message(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   "   s
    	(   t   __name__t
   __module__R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR!   !   s   t	   LockErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R2   R,   (   R-   R/   t   msg(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   .   s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR2   -   s   t   ArgumentErrorc           B` s   e  Z d  Z d „  Z RS(   i   c         K` s   t  t |  ƒ j | |  d  S(   N(   R+   R4   R,   (   R-   R/   t   kwargs(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   6   s    (   R0   R1   t   return_codeR,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR4   3   s   t   CommandArgumentErrorc           B` s   e  Z d  Z d „  Z RS(   i   c         K` s?   d j  d „  t j Dƒ ƒ } t t |  ƒ j | d | | d  S(   Nu    c         s` s   |  ] } t  | ƒ Vq d  S(   N(   R   (   R"   t   s(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>?   s    t   command(   R   t   syst   argvR+   R7   R,   (   R-   R/   R5   R9   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   >   s    (   R0   R1   R6   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR7   :   s   t   Helpc           B` s   e  Z RS(    (   R0   R1   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR<   C   s   t   ActivateHelpc           B` s   e  Z d  „  Z RS(   c         C` s&   t  d ƒ } t t |  ƒ j | ƒ d  S(   Nu6  
        usage: conda activate [-h] [--[no-]stack] [env_name_or_prefix]

        Activate a conda environment.

        Options:

        positional arguments:
          env_name_or_prefix    The environment name or prefix to activate. If the
                                prefix is a relative path, it must start with './'
                                (or '.\' on Windows).

        optional arguments:
          -h, --help            Show this help message and exit.
          --stack               Stack the environment being activated on top of the
                                previous active environment, rather replacing the
                                current active environment with a new one. Currently,
                                only the PATH environment variable is stacked. This
                                may be enabled implicitly by the 'auto_stack'
                                configuration variable.
          --no-stack            Do not stack the environment. Overrides 'auto_stack'
                                setting.
        (   R   R+   R=   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   I   s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR=   G   s   t   DeactivateHelpc           B` s   e  Z d  „  Z RS(   c         C` s&   t  d ƒ } t t |  ƒ j | ƒ d  S(   NuØ   
        usage: conda deactivate [-h]

        Deactivate the current active conda environment.

        Options:

        optional arguments:
          -h, --help            Show this help message and exit.
        (   R   R+   R>   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   f   s    		(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR>   d   s   t   GenericHelpc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   help requested for %s(   R+   R?   R,   (   R-   R9   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   v   s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR?   t   s   t   CondaSignalInterruptc           B` s   e  Z d  „  Z RS(   c         C` s2   t  | ƒ } t t |  ƒ j d d | d | ƒd  S(   Nu    Signal interrupt %(signal_name)st   signal_namet   signum(   R    R+   R@   R,   (   R-   RB   RA   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   |   s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR@   {   s   t   TooManyArgumentsErrorc           B` s   e  Z d  d „ Z RS(   u    c         G` s   | |  _  | |  _ | |  _ | |  _ | | d k r: d n d } d | | | d j | ƒ | f } t t |  ƒ j | | Œ d  S(   Ni   u   su    u*   %s Got %s argument%s (%s) but expected %s.u   , (   t   expectedt   receivedt   offending_argumentst   optional_messageR   R+   RC   R,   (   R-   RD   RE   RF   RG   t   argst   suffixR3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   „   s    				(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRC   ƒ   s   t   TooFewArgumentsErrorc           B` s   e  Z d  d „ Z RS(   u    c         G` sK   | |  _  | |  _ | |  _ d | | | f } t t |  ƒ j | | Œ d  S(   Nu$   %s Got %s arguments but expected %s.(   RD   RE   RG   R+   RJ   R,   (   R-   RD   RE   RG   RH   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ’   s    			(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRJ   ‘   s   t   ClobberErrorc           B` s   e  Z d  „  Z d „  Z RS(   c         K` s&   | |  _  t t |  ƒ j | |  d  S(   N(   t   path_conflictR+   RK   R,   (   R-   R/   RL   R5   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,      s    	c         C` s,   |  j  t j k r d n d } d | |  f S(   Nu   ClobberWarningu   ClobberErroru   %s: %s
(   RL   R   t   warn(   R-   t   clz_name(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   __repr__¡   s    (   R0   R1   R,   RO   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRK   œ   s   	t   BasicClobberErrorc           B` s   e  Z d  „  Z RS(   c         C` sW   t  d ƒ } | j t j k r+ | d 7} n  t t |  ƒ j | | j d | d | ƒd  S(   NuŒ   
        Conda was asked to clobber an existing path.
          source path: %(source_path)s
          target path: %(target_path)s
        uQ   Conda no longer clobbers existing paths without the use of the --clobber option
.t   target_patht   source_path(   R   RL   R   t   preventR+   RP   R,   (   R-   RR   RQ   t   contextR/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   §   s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRP   ¦   s   t   KnownPackageClobberErrorc           B` s   e  Z d  „  Z RS(   c      	   C` s]   t  d ƒ } | j t j k r+ | d 7} n  t t |  ƒ j | | j d | d | d | ƒd  S(   Nu‹  
        The package '%(colliding_dist_being_linked)s' cannot be installed due to a
        path collision for '%(target_path)s'.
        This path already exists in the target prefix, and it won't be removed by
        an uninstall action in this transaction. The path appears to be coming from
        the package '%(colliding_linked_dist)s', which is already installed in the prefix.
        uP   If you'd like to proceed anyway, re-run the command with the `--clobber` flag.
.RQ   t   colliding_dist_being_linkedt   colliding_linked_dist(   R   RL   R   RS   R+   RU   R,   (   R-   RQ   RV   RW   RT   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ¶   s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRU   µ   s   t   UnknownPackageClobberErrorc           B` s   e  Z d  „  Z RS(   c         C` sW   t  d ƒ } | j t j k r+ | d 7} n  t t |  ƒ j | | j d | d | ƒd  S(   Nux  
        The package '%(colliding_dist_being_linked)s' cannot be installed due to a
        path collision for '%(target_path)s'.
        This path already exists in the target prefix, and it won't be removed
        by an uninstall action in this transaction. The path is one that conda
        doesn't recognize. It may have been created by another package manager.
        uP   If you'd like to proceed anyway, re-run the command with the `--clobber` flag.
.RQ   RV   (   R   RL   R   RS   R+   RX   R,   (   R-   RQ   RV   RT   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Ê   s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRX   É   s   t   SharedLinkPathClobberErrorc           B` s   e  Z d  „  Z RS(   c      	   C` sj   t  d ƒ } | j t j k r+ | d 7} n  t t |  ƒ j | | j d | d d j d „  | Dƒ ƒ ƒd  S(   Nu¢   
        This transaction has incompatible packages due to a shared path.
          packages: %(incompatible_packages)s
          path: '%(target_path)s'
        uP   If you'd like to proceed anyway, re-run the command with the `--clobber` flag.
.RQ   t   incompatible_packagesu   , c         s` s   |  ] } t  | ƒ Vq d  S(   N(   R   (   R"   t   d(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>é   s    (   R   RL   R   RS   R+   RY   R,   R   (   R-   RQ   t   incompatible_package_distsRT   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Ý   s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRY   Ü   s   t   CommandNotFoundErrorc           B` s   e  Z d  „  Z RS(   c         C` s‹  d d d h } d d d d d d	 d
 d d d d d d h } d d d d d d d d h } d d l  m } d d l m } | | ƒ | | k rë d g } t rµ | j t d ƒ ƒ n  | j t d ƒ i t t ƒ d 6ƒ d  j	 | ƒ } n€ | | k r d! } nk d" d# l
 m }	 d d$ l m }
 d% } | | B| Bt |
 ƒ  ƒ B} |	 | | ƒ } | rk| d& | d" 7} n  t t |  ƒ j | d' | ƒd  S((   Nu   activateu
   deactivateu   runu   cleanu   configu   createu   helpu   infou   installu   listu   packageu   removeu   searchu	   uninstallu   updateu   upgradeu   buildu   convertu   developu   indexu   inspectu   metapackageu   renderu   skeletoni   (   RT   (   t   init_loggersuG   Your shell has not been properly configured to use 'conda %(command)s'.u›   
                If using 'conda %(command)s' from a batch script, change your
                invocation to 'CALL conda.bat %(command)s'.
                uK  
            To initialize your shell, run

                $ conda init <SHELL_NAME>

            Currently supported shells are:%(supported_shells)s

            See 'conda init --help' for more information and options.

            IMPORTANT: You may need to close and restart your shell after running 'conda init'.
            u   supported_shellsu   
u0   To use 'conda %(command)s', install conda-build.i    (   t   get_close_matches(   t   find_commandsu   No command 'conda %(command)s'.u   
Did you mean 'conda %s'?R9   (   t   base.contextRT   t   cli.mainR^   R   t   appendR   R   R   R   t   difflibR_   t   cli.find_commandsR`   t   setR+   R]   R,   (   R-   R9   t   activate_commandst   conda_commandst   build_commandsRT   R^   t   builderR/   R_   R`   t   choicest   close(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   î   s\    			
			
		(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR]   í   s   t   PathNotFoundErrorc           B` s   e  Z d  „  Z RS(   c         C` s&   d } t  t |  ƒ j | d | ƒd  S(   Nu   %(path)st   path(   R+   Rm   R,   (   R-   Rn   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   4  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRm   3  s   t   DirectoryNotFoundErrorc           B` s   e  Z d  „  Z RS(   c         C` s&   d } t  t |  ƒ j | d | ƒd  S(   Nu   %(path)sRn   (   R+   Ro   R,   (   R-   Rn   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   :  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRo   9  s   t   EnvironmentLocationNotFoundc           B` s   e  Z d  „  Z RS(   c         C` s&   d } t  t |  ƒ j | d | ƒd  S(   Nu%   Not a conda environment: %(location)st   location(   R+   Rp   R,   (   R-   Rq   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   @  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRp   ?  s   t   EnvironmentNameNotFoundc           B` s   e  Z d  „  Z RS(   c         C` s,   t  d ƒ } t t |  ƒ j | d | ƒd  S(   Nu•   
        Could not find conda environment: %(environment_name)s
        You can list all discoverable environments with `conda info --envs`.
        t   environment_name(   R   R+   Rr   R,   (   R-   Rs   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   F  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRr   E  s   t   NoBaseEnvironmentErrorc           B` s   e  Z d  „  Z RS(   c         C` s&   t  d ƒ } t t |  ƒ j | ƒ d  S(   Nu·   
        This conda installation has no default base environment. Use
        'conda create' to create new environments and 'conda activate' to
        activate environments.
        (   R   R+   Rt   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   P  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRt   N  s   t"   DirectoryNotACondaEnvironmentErrorc           B` s   e  Z d  „  Z RS(   c         C` s,   t  d ƒ } t t |  ƒ j | d | ƒd  S(   NuÎ   
        The target directory exists, but it is not a conda environment.
        Use 'conda create' to convert the directory to a conda environment.
          target directory: %(target_directory)s
        t   target_directory(   R   R+   Ru   R,   (   R-   Rv   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   [  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRu   Y  s   t   CondaEnvironmentErrorc           B` s   e  Z d  „  Z RS(   c         G` s'   d | } t  t |  ƒ j | | Œ d  S(   Nu   %s(   R+   Rw   R,   (   R-   R/   RH   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   f  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRw   e  s   t
   DryRunExitc           B` s   e  Z d  „  Z RS(   c         C` s    d } t  t |  ƒ j | ƒ d  S(   Nu   Dry run. Exiting.(   R+   Rx   R,   (   R-   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   l  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRx   k  s   t   CondaSystemExitc           B` s   e  Z d  „  Z RS(   c         G` s6   d j  d „  |  j Dƒ ƒ } t t |  ƒ j | ƒ d  S(   Nu    c         s` s   |  ] } t  | ƒ Vq d  S(   N(   R   (   R"   t   arg(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>s  s    (   R   RH   R+   Ry   R,   (   R-   RH   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   r  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRy   q  s   t   PaddingErrorc           B` s   e  Z d  „  Z RS(   c         C` s*   d | | f } t  t |  ƒ j | ƒ d  S(   Nug   Placeholder of length '%d' too short in package %s.
The package must be rebuilt with conda-build > 2.0.(   R+   R{   R,   (   R-   t   distt   placeholdert   placeholder_lengthR3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   x  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR{   w  s   t	   LinkErrorc           B` s   e  Z d  „  Z RS(   c         C` s   t  t |  ƒ j | ƒ d  S(   N(   R+   R   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR   ~  s   t   CondaOSErrorc           B` s   e  Z d  „  Z RS(   c         K` s'   d | } t  t |  ƒ j | |  d  S(   Nu   %s(   R+   R€   R,   (   R-   R/   R5   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   „  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR€   ƒ  s   t
   ProxyErrorc           B` s   e  Z d  „  Z RS(   c         C` s&   t  d ƒ } t t |  ƒ j | ƒ d  S(   Nu-  
        Conda cannot proceed due to an error in your proxy configuration.
        Check for typos and other configuration errors in any '.netrc' file in your home directory,
        any environment variables ending in '_PROXY', and any other system-wide proxy
        configuration settings.
        (   R   R+   R   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Š  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR   ‰  s   t   CondaIOErrorc           B` s   e  Z d  „  Z RS(   c         G` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R‚   R,   (   R-   R/   RH   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   •  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR‚   ”  s   t   CondaFileIOErrorc           B` s   e  Z d  „  Z RS(   c         G` s6   | |  _  d | | f } t t |  ƒ j | | Œ d  S(   Nu   '%s'. %s(   t   filepathR+   Rƒ   R,   (   R-   R„   R/   RH   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ›  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRƒ   š  s   t   CondaKeyErrorc           B` s   e  Z d  „  Z RS(   c         G` s<   | |  _  d | | f |  _ t t |  ƒ j |  j | Œ d  S(   Nu   '%s': %s(   t   keyR3   R+   R…   R,   (   R-   R†   R/   RH   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   £  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR…   ¢  s   t   ChannelErrorc           B` s   e  Z RS(    (   R0   R1   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR‡   ©  s   t   ChannelNotAllowedc           B` s   e  Z d  „  Z RS(   c         C` sv   d d l  m } d d l m } | | ƒ } | j } | | j ƒ } t d ƒ } t t |  ƒ j	 | d | d | ƒd  S(   Ni   (   t   Channel(   t   maybe_unquoteu„   
        Channel not included in whitelist:
          channel name: %(channel_name)s
          channel url: %(channel_url)s
        t   channel_urlt   channel_name(
   t   models.channelR‰   t
   common.urlRŠ   t   namet   base_urlR   R+   Rˆ   R,   (   R-   t   channelR‰   RŠ   RŒ   R‹   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ®  s    		(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRˆ   ­  s   t   UnavailableInvalidChannelc           B` s   e  Z d  „  Z RS(   c   	      C` s·   d d l  m } d d l m } m } | | ƒ } | j } | | j ƒ } t d ƒ } | j d k r‹ | t	 d ƒ | | j
 | j ƒ 7} n  t t |  ƒ j | d | d | d	 | ƒd  S(
   Ni   (   R‰   (   t   join_urlRŠ   u  
        The channel is not accessible or is invalid.
          channel name: %(channel_name)s
          channel url: %(channel_url)s
          error code: %(error_code)d

        You will need to adjust your conda configuration to proceed.
        Use `conda config --show channels` to view your configuration's current state,
        and use `conda config --show-sources` to view config file locations.
        u   fileu?  
            As of conda 4.3, a valid channel must contain a `noarch/repodata.json` and
            associated `noarch/repodata.json.bz2` file, even if `noarch/repodata.json` is
            empty. Use `conda index %s`, or create `noarch/repodata.json`
            and associated `noarch/repodata.json.bz2`.
            R‹   RŒ   t
   error_code(   R   R‰   RŽ   R“   RŠ   R   R   R   t   schemeR	   Rq   R+   R’   R,   (	   R-   R‘   R”   R‰   R“   RŠ   RŒ   R‹   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ¿  s    			 (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR’   ½  s   t   OperationNotAllowedc           B` s   e  Z d  „  Z RS(   c         C` s   t  t |  ƒ j | ƒ d  S(   N(   R+   R–   R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ß  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR–   Ý  s   t   CondaImportErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R—   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ä  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR—   ã  s   t
   ParseErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R˜   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ê  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR˜   é  s   t   CouldntParseErrorc           B` s   e  Z d  „  Z RS(   c         C` s*   | |  _  t t |  ƒ j |  j d ƒ d  S(   Ni    (   t   reasonR+   R™   R,   RH   (   R-   Rš   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ð  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR™   ï  s   t   ChecksumMismatchErrorc           B` s   e  Z d  „  Z RS(   c         C` s`   t  d ƒ } d d l m } | | ƒ } t t |  ƒ j | d | d | d | d | d | ƒd  S(	   Nu   
        Conda detected a mismatch between the expected content and downloaded content
        for url '%(url)s'.
          download saved to: %(target_full_path)s
          expected %(checksum_type)s: %(expected_checksum)s
          actual %(checksum_type)s: %(actual_checksum)s
        i   (   RŠ   t   urlt   target_full_patht   checksum_typet   expected_checksumt   actual_checksum(   R   RŽ   RŠ   R+   R›   R,   (   R-   Rœ   R   Rž   RŸ   R    R/   RŠ   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ö  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR›   õ  s   t   PackageNotInstalledErrorc           B` s   e  Z d  „  Z RS(   c         C` s2   t  d ƒ } t t |  ƒ j | d | d | ƒd  S(   Nu{   
        Package is not installed in prefix.
          prefix: %(prefix)s
          package name: %(package_name)s
        t   prefixt   package_name(   R   R+   R¡   R,   (   R-   R¢   R£   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR¡     s   t   CondaHTTPErrorc           B` s   e  Z d d d  „ Z RS(   c         C` sI  d d l  m } t d ƒ }	 t | d i  ƒ j d ƒ }
 |	 |
 rJ d |
 n d 7}	 |	 | } | pd d } | pp d	 } | p| d
 } d d l m } | r­ | | d d ƒp° d n d } | | ƒ } t | t ƒ rí t	 | ƒ j
 d d ƒ d } n  t | t ƒ r| j ƒ  } n  t t |  ƒ j | d | d | d | d | d | d | ƒd  S(   Ni   (   RŠ   ue   
        HTTP %(status_code)s %(reason)s for url <%(url)s>
        Elapsed: %(elapsed_time)s
        u   headersu   CF-RAYu   CF-RAY: %s

u   
u   000u   CONNECTION FAILEDu   -(   t	   stringifyt   content_max_leni   u    u   :iÿÿÿÿRœ   t   status_codeRš   t   elapsed_timet   response_detailst	   caused_by(   RŽ   RŠ   R   t   getattrt   gett   _vendor.auxlib.logzR¥   t
   isinstanceR   R   t   splitR   t   upperR+   R¤   R,   (   R-   R/   Rœ   R§   Rš   R¨   t   responseRª   RŠ   t   _messaget   cf_rayR¥   R©   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s(    	
$!N(   R0   R1   t   NoneR,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR¤     s   t   CondaRevisionErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s.(   R+   Rµ   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   1  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRµ   0  s   t   AuthenticationErrorc           B` s   e  Z RS(    (   R0   R1   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR¶   6  s   t   PackagesNotFoundErrorc           B` s   e  Z d d  „ Z RS(   c      
   C` s†   d „  } | r6 t  d ƒ } | | ƒ } | | ƒ } n t  d ƒ } | | ƒ } d } t t |  ƒ j | d | d | d | d | ƒd  S(	   Nc         S` s   d d j  d „  |  Dƒ ƒ S(   Nu     - u   
  - c         s` s   |  ] } t  | ƒ Vq d  S(   N(   R   (   R"   t   x(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>>  s    (   R   (   t   iterable(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   <lambda>>  s    uŸ  
            The following packages are not available from current channels:

            %(packages_formatted)s

            Current channels:

            %(channels_formatted)s

            To search for alternate channels that may provide the conda package you're
            looking for, navigate to

                https://anaconda.org

            and use the search bar at the top of the page.
            u|   
            The following packages are missing from the target environment:
            %(packages_formatted)s
            t   packagest   packages_formattedt   channel_urlst   channels_formatted(    (   R   R+   R·   R,   (   R-   R»   R½   t   format_listR/   R¼   R¾   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   <  s    			(    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR·   :  s   t   UnsatisfiableErrorc           B` s&   e  Z d  Z d „  Z e e d „ Z RS(   uÓ  An exception to report unsatisfiable dependencies.

    Args:
        bad_deps: a list of tuples of objects (likely MatchSpecs).
        chains: (optional) if True, the tuples are interpreted as chains
            of dependencies, from top level to bottom. If False, the tuples
            are interpreted as simple lists of conflicting specs.

    Returns:
        Raises an exception with a formatted message detailing the
        unsatisfiable specifications.
    c         C` s@  i  } xt  | d t d t ƒD]ÿ } g  | d D] } | j d ƒ ^ q0 } | d f t d „  | Dƒ ƒ } d t d „  | Dƒ ƒ } t } xf t | ƒ D]X \ }	 }
 |	 t | ƒ  | k r™ x* t |
 | ƒ D] \ } } | j | ƒ qË Wt } q™ q™ W| s g  | D] } | h ^ q| | <q q Wxî t | ƒ D]à \ } }
 g  } x¸ t | |
 ƒ D]§ \ } } d | k rln9 t | ƒ d k r‹| j	 ƒ  n | j
 d ƒ | j d	 ƒ | d d
 k rÆd | d } n  | j | rñd | d j t  | ƒ ƒ f n | ƒ qQWd j | ƒ | | <q/Wg  t  t | ƒ ƒ D] } | | ^ q&} | S(   NR†   t   reversei   u    i    c         s` s   |  ] } | d  Vq d S(   i    N(    (   R"   t   v(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>r  s    u    c         s` s   |  ] } | d  Vq d S(   i   N(    (   R"   RÂ   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>s  s    u   *u   @u   feature:u   %s %su   |u    -> (   u    (   t   sortedt   lent   Truet	   partitionR(   t   FalseR   t   zipt   addt   cleart   removeRc   R   R   (   R-   R)   t   chainsR$   R8   t   dep1R†   t   valst   foundt   key2t   csetst   csett   valR#   R   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   _format_chain_strn  s8    &!'6)c         C` s¿  d d l  m } i t d ƒ d 6t d ƒ d 6t d ƒ d 6t d	 ƒ d
 6} d } t | ƒ d k ro | d 7} n#x | j ƒ  D]\ } } | r| g  }	 | d k rÜ| | d 7} t d „  | Dƒ ƒ }
 i  } xz | D]r } | d d j |
 k rÑ | j | d d j ƒ s g  | | d d j <n  | | d d j j | d ƒ qÑ qÑ W| d 7} x7| j ƒ  D]w \ } } t | ƒ d k r^| d | 7} | d j	 g  | D]. } d j	 g  | D] } t
 | ƒ ^ q­ƒ ^ qšƒ 7} q^q^WqŽxL | D]D \ } } g  | D] } t
 | | d d  ƒƒ ^ qö} |	 j | ƒ qãW|	 rC|  j |	 ƒ }	 n" g  |	 D] } d j	 | ƒ ^ qJ}	 | | | j d t |	 ƒ d | ƒ 7} q| q| W| r¥| d 7} n  t t |  ƒ j | ƒ d  S(   Ni   (   t	   MatchSpecu  

The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:
{specs}

Your python: {ref}

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

        u   pythonu¬   

The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation ({ref}):
{specs}

                    u   request_conflict_with_historyub   

The following specifications were found to be incompatible with each other:
                    u   directu‚   

The following specifications were found to be incompatible with your CUDA driver:
{specs}

Your installed CUDA driver is: {ref}
u   cudau    i    uÅ   
Did not find conflicting dependencies. If you would like to know which
packages conflict ensure that you have enabled unsatisfiable hints.

conda config --set unsatisfiable_hints True
            c         s` s    |  ] } | d  d j  Vq d S(   i    iÿÿÿÿN(   R   (   R"   R[   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>¿  s    iÿÿÿÿu:   
Output in format: Requested package -> Available versionsu   

Package %s conflicts for:
u   
u    -> t   targetu   , t   specst   refuY   
Note that strict channel priority may have removed packages required for satisfiability.(   t   models.match_specRÕ   R   RÄ   t   itemsRf   R   R¬   Rc   R   R&   R´   RÔ   t   formatR   R+   RÀ   R,   (   R-   R)   RÌ   t   strictRÕ   t   messagesR3   t
   class_namet	   dep_classt   _chainst   last_dep_entryt   dep_constraint_mapR$   t   chaint   ct   it	   dep_chaint   installed_blocker(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     sR    



'
R+"(   R0   R1   t   __doc__RÔ   RÅ   RÇ   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRÀ   a  s   	t   InstallErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   Ré   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ß  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRé   Þ  s   t   RemoveErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   Rê   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   å  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRê   ä  s   t   DisallowedPackageErrorc           B` s   e  Z d  „  Z RS(   c         K` sT   d d l  m } | j | ƒ } d } t t |  ƒ j | d | d | j ƒ  | d  S(   Ni   (   t   PackageRecordui   The package '%(dist_str)s' is disallowed by configuration.
See 'conda config --show disallowed_packages'.t   package_reft   dist_str(   t   models.recordsRì   t   from_objectsR+   Rë   R,   Rî   (   R-   Rí   R5   Rì   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ë  s
    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRë   ê  s   t   SpecsConfigurationConflictErrorc           B` s   e  Z d  „  Z RS(   c      
   C` sn   t  d ƒ j d t | d ƒ d t | d ƒ d t | d d ƒ ƒ } t t |  ƒ j | d | d	 | d
 | ƒd  S(   Nup  
        Requested specs conflict with configured specs.
          requested specs: {requested_specs_formatted}
          pinned specs: {pinned_specs_formatted}
        Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features'
        configuration parameters.  Pinned specs may also be defined in the file
        {pinned_specs_path}.
        t   requested_specs_formattedi   t   pinned_specs_formattedt   pinned_specs_pathu
   conda-metau   pinnedt   requested_specst   pinned_specsR¢   (   R   RÛ   R   R   R+   Rñ   R,   (   R-   Rõ   Rö   R¢   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   õ  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRñ   ó  s   t   CondaIndexErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R÷   R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR÷     s   t   CondaValueErrorc           B` s   e  Z d  „  Z RS(   c         O` s    t  t |  ƒ j | | | Ž d  S(   N(   R+   Rø   R,   (   R-   R/   RH   R5   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRø     s   t   CondaTypeErrorc           B` s   e  Z d  „  Z RS(   c         C` s    d } t  t |  ƒ j | ƒ d  S(   Nu(   Expected type '%s' and got type '%s'. %s(   R+   Rù   R,   (   R-   t   expected_typet   received_typeRG   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRù     s   t   CyclicalDependencyErrorc           B` s   e  Z d  „  Z RS(   c         ` si   d d l  m ‰  t ‡  f d †  | Dƒ ƒ } d t d „  | Dƒ ƒ } t t |  ƒ j | d | | d  S(   Ni   (   Rì   c         3` s   |  ] } ˆ  j  | ƒ Vq d  S(   N(   Rð   (   R"   t   p(   Rì   (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>  s    u/   Cyclic dependencies exist among these items: %sc         s` s   |  ] } | j  ƒ  Vq d  S(   N(   Rî   (   R"   Rý   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>  s    t   packages_with_cycles(   Rï   Rì   R(   R   R+   Rü   R,   (   R-   Rþ   R5   R/   (    (   Rì   s/   lib/python2.7/site-packages/conda/exceptions.pyR,     s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRü     s   t   CorruptedEnvironmentErrorc           B` s   e  Z d  „  Z RS(   c         K` s5   t  d ƒ } t t |  ƒ j | d | d | | d  S(   Nu-  
        The target environment has been corrupted. Corrupted environments most commonly
        occur when the conda process is force-terminated while in an unlink-link
        transaction.
          environment location: %(environment_location)s
          corrupted file: %(corrupted_file)s
        t   environment_locationt   corrupted_file(   R   R+   Rÿ   R,   (   R-   R   R  R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   %  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRÿ   $  s   t   CondaHistoryErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R  R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   6  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  5  s   t   CondaUpgradeErrorc           B` s   e  Z d  „  Z RS(   c         C` s$   d | } t  t |  ƒ j | ƒ d  S(   Nu   %s(   R+   R  R,   (   R-   R/   R3   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   <  s    
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  ;  s   t   CaseInsensitiveFileSystemErrorc           B` s   e  Z d  „  Z RS(   c         K` s5   t  d ƒ } t t |  ƒ j | d | d | | d  S(   Nu­   
        Cannot extract package to a case-insensitive file system.
          package location: %(package_location)s
          extract location: %(extract_location)s
        t   package_locationt   extract_location(   R   R+   R  R,   (   R-   R  R  R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   B  s    	(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  A  s   t   CondaVerificationErrorc           B` s   e  Z d  „  Z RS(   c         C` s   t  t |  ƒ j | ƒ d  S(   N(   R+   R  R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Q  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  P  s   t   SafetyErrorc           B` s   e  Z d  „  Z RS(   c         C` s   t  t |  ƒ j | ƒ d  S(   N(   R+   R  R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   V  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  U  s   t   CondaMemoryErrorc           B` s   e  Z d  „  Z RS(   c         K` s)   d } t  t |  ƒ j | d | | d  S(   NuM   The conda process ran out of memory. Increase system memory and/or try again.Rª   (   R+   R	  R,   (   R-   Rª   R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   [  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR	  Z  s   t   NotWritableErrorc           B` s   e  Z d  „  Z RS(   c         K` s€   | j  i | d 6| d 6ƒ t r0 t d ƒ } n3 t d ƒ } | j  i t j ƒ  d 6t j ƒ  d 6ƒ t t |  ƒ j | |  d  S(   Nu   pathu   errnou{   
            The current user does not have write permissions to a required path.
              path: %(path)s
            u©  
            The current user does not have write permissions to a required path.
              path: %(path)s
              uid: %(uid)s
              gid: %(gid)s

            If you feel that permissions on this path are set incorrectly, you can manually
            change them by executing

              $ sudo chown %(uid)s:%(gid)s %(path)s

            In general, it's not advisable to use 'sudo conda'.
            u   uidu   gid(	   t   updateR   R   t   ost   geteuidt   getegidR+   R
  R,   (   R-   Rn   t   errnoR5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   b  s    			(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR
  `  s   t   NoWritableEnvsDirErrorc           B` s   e  Z d  „  Z RS(   c         K` s3   d t  | ƒ } t t |  ƒ j | d | | d  S(   Nu+   No writeable envs directories configured.%st	   envs_dirs(   R   R+   R  R,   (   R-   R  R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ƒ  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR    s   t   NoWritablePkgsDirErrorc           B` s   e  Z d  „  Z RS(   c         K` s3   d t  | ƒ } t t |  ƒ j | d | | d  S(   Nu+   No writeable pkgs directories configured.%st	   pkgs_dirs(   R   R+   R  R,   (   R-   R  R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Š  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  ˆ  s   t   EnvironmentNotWritableErrorc           B` s   e  Z d  „  Z RS(   c         K` sy   | j  i | d 6ƒ t r) t d ƒ } n3 t d ƒ } | j  i t j ƒ  d 6t j ƒ  d 6ƒ t t |  ƒ j | |  d  S(   Nu   environment_locationu¢   
            The current user does not have write permissions to the target environment.
              environment location: %(environment_location)s
            uØ   
            The current user does not have write permissions to the target environment.
              environment location: %(environment_location)s
              uid: %(uid)s
              gid: %(gid)s
            u   uidu   gid(	   R  R   R   R  R  R  R+   R  R,   (   R-   R   R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ‘  s    			(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR    s   t   CondaDependencyErrorc           B` s   e  Z d  „  Z RS(   c         C` s   t  t |  ƒ j | ƒ d  S(   N(   R+   R  R,   (   R-   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ©  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  ¨  s   t   BinaryPrefixReplacementErrorc           B` s   e  Z d  „  Z RS(   c         C` sR   t  d ƒ } i | d 6| d 6| d 6| d 6| d 6} t t |  ƒ j | |  d  S(   Nu  
        Refusing to replace mismatched data length in binary file.
          path: %(path)s
          placeholder: %(placeholder)s
          new prefix: %(new_prefix)s
          original data Length: %(original_data_length)d
          new data length: %(new_data_length)d
        u   pathu   placeholderu
   new_prefixu   original_data_lengthu   new_data_length(   R   R+   R  R,   (   R-   Rn   R}   t
   new_prefixt   original_data_lengtht   new_data_lengthR/   R5   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ®  s    	
(   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  ­  s   t   InvalidSpecc           B` s   e  Z d  „  Z RS(   c         K` s   t  t |  ƒ j | |  d  S(   N(   R+   R  R,   (   R-   R/   R5   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Ã  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  Á  s   t   InvalidVersionSpecc           B` s   e  Z d  „  Z RS(   c         C` s,   d } t  t |  ƒ j | d | d | ƒd  S(   Nu/   Invalid version '%(invalid_spec)s': %(details)st   invalid_spect   details(   R+   R  R,   (   R-   R  R  R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   È  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  Ç  s   t   InvalidMatchSpecc           B` s   e  Z d  „  Z RS(   c         C` s,   d } t  t |  ƒ j | d | d | ƒd  S(   Nu,   Invalid spec '%(invalid_spec)s': %(details)sR  R  (   R+   R  R,   (   R-   R  R  R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   Ï  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  Î  s   t   EncodingErrorc           B` s   e  Z d  „  Z RS(   c         K` s3   t  d ƒ | } t t |  ƒ j | d | | d  S(   Nuì  
        A unicode encoding or decoding error has occurred.
        Python 2 is the interpreter under which conda is running in your base environment.
        Replacing your base environment with one having Python 3 may help resolve this issue.
        If you still have a need for Python 2 environments, consider using 'conda create'
        and 'conda activate'.  For example:

            $ conda create -n py2 python=2
            $ conda activate py2

        Error details: %r

        Rª   (   R   R+   R  R,   (   R-   Rª   R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ×  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR  Õ  s   t   NoSpaceLeftErrorc           B` s   e  Z d  „  Z RS(   c         K` s)   d } t  t |  ƒ j | d | | d  S(   Nu   No space left on devices.Rª   (   R+   R   R,   (   R-   Rª   R5   R/   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR,   ê  s    (   R0   R1   R,   (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR   è  s   c         C` sÁ  t  |  t ƒ rt d „  |  j ƒ } | j t d ƒ } t d „  | j t d ƒ ƒ } | j t d ƒ } | j t d ƒ } | r | j t j	 k s¸ | r² | j
 t j k r² | j s¸ | rÁ |  ‚ q½| rÙ | j t j k sû | r½| j
 t j k r½| j r½t |  ƒ q½n² t  |  t ƒ rk| j
 t j k r?| j r?|  ‚ q½| j
 t j k r½| j r½t |  ƒ q½nR t  |  t ƒ r·| j t j	 k r•|  ‚ q½| j t j k r½t |  ƒ q½n |  ‚ d  S(   Nc         S` s   t  |  t ƒ S(   N(   R®   RK   (   t   e(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRº   ñ  s    c         S` s   t  |  t ƒ S(   N(   R®   R  (   R!  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRº   ó  s    (    (    (    (    (   R®   R   R   t   errorsR¬   RÅ   RÇ   t   safety_checksR   t   enabledRL   R   RS   t   clobberRM   t   print_conda_exceptionRK   R  (   t   errorRT   t   groupst   clobber_errorst   safety_errorst   other_errors(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   maybe_raiseï  s4    
	
		c         C` s  d d l  m } t |  d d  ƒ } | j sY | j d k sY t |  t ƒ rx | j d k rx t t	 |  | ƒ d t
 j ƒn‹ | j rç t |  t ƒ r” d  St | r£ d n d ƒ } t j |  j ƒ  d	 d d
 t d t ƒ} | j d | ƒ n t d ƒ } | j d |  ƒ d  S(   Ni   (   RT   u   return_codei   i    t   fileu   conda.stdoutu   conda.stderrt   indentt	   sort_keyst   clsu   %s
u   
%r
(   Ra   RT   R«   R´   t   debugt	   verbosityR®   Rx   t   printt   _format_excR:   t   stderrt   jsonR   t   dumpst   dump_mapRÅ   R   t   infoR'  (   t   exc_valt   exc_tbRT   t   rct   loggert   exc_jsont	   stderrlog(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR&    s    		'c         C` sg   |  d  k r$ t j ƒ  \ } }  } n t |  ƒ } | rK t | |  | ƒ } n t | |  ƒ } d j | ƒ S(   Nu    (   R´   R:   t   exc_infot   typeR
   R   R   (   R:  R;  t   exc_typet   formatted_exception(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR4  '  s    t   ExceptionHandlerc           B` s³   e  Z d  „  Z d „  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z d „  Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         O` sA   y | | | Ž  SWn) t  j ƒ  \ } } } |  j | | ƒ SXd  S(   N(   R:   R@  t   handle_exception(   R-   t   funcRH   R5   t   _R:  R;  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   __call__5  s
    c         C` sq   d d l  m } t rE t d | j r+ d n d ƒ } | j | ƒ n( | j rW t j n t j } | j	 | ƒ d  S(   Ni   (   RT   u   conda.%su   stdoutu   stderr(
   Ra   RT   RÅ   R   R6  R9  R:   t   stdoutR5  t   write(   R-   t   content_strRT   R=  t   stream(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt	   write_out<  s    c         C` s    d d l  m } | j | j f S(   Ni   (   RT   (   Ra   RT   t   remote_connect_timeout_secst   remote_read_timeout_secs(   R-   RT   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   http_timeoutE  s    c         C` s   d d l  m } | j S(   Ni   (   RT   (   Ra   RT   t
   user_agent(   R-   RT   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRQ  J  s    c         C` s   d d l  m } | j S(   Ni   (   RT   (   Ra   RT   t   error_upload_url(   R-   RT   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRR  O  s    c         C` s  t  | t ƒ r; | j r( |  j | | ƒ S|  j | | ƒ Sn  t  | t ƒ rf t rf |  j t | ƒ | ƒ St  | t ƒ r¦ t	 | d d  ƒ t k r¦ |  j t | ƒ | ƒ Sn  t  | t ƒ rË |  j t | ƒ | ƒ St  | t ƒ r÷ |  j t d ƒ t ƒ  ƒ d St  | t ƒ r| j S|  j | | ƒ S(   Nu   errnou   KeyboardInterrupti   (   R®   R   t
   reportablet'   handle_reportable_application_exceptiont   handle_application_exceptiont   UnicodeErrorR   R  t   EnvironmentErrorR«   R´   R   R   t   MemoryErrorR	  t   KeyboardInterruptt   _print_conda_exceptionR4  t
   SystemExitt   codet   handle_unexpected_exception(   R-   R:  R;  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRE  T  s"    	c         C` s   |  j  | | ƒ | j S(   N(   RZ  R6   (   R-   R:  R;  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRU  h  s    c         C` s   t  | | ƒ d  S(   N(   R&  (   R-   R:  R;  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRZ  l  s    c         C` s¤   |  j  | | ƒ } |  j | ƒ |  j ƒ  \ } } | rC |  j ƒ  n	 | d  f \ } } | rk |  j | ƒ n  |  j | | | ƒ t | d d  ƒ } | d  k	 r  | Sd S(   Nu   return_codei   (   t   get_error_reportt   print_unexpected_error_reportt   _calculate_ask_do_uploadt   ask_for_uploadR´   t   _execute_uploadt   print_upload_confirmR«   (   R-   R:  R;  t   error_reportRa  t	   do_uploadt   ask_responseR<  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR]  o  s    $c         C` s´   |  j  | | ƒ } d d l m } | j rA | j | j ƒ  ƒ n  |  j | ƒ |  j ƒ  \ } } | rr |  j ƒ  n	 | d  f \ } } | rš |  j
 | ƒ n  |  j | | | ƒ | j S(   Ni   (   RT   (   R^  Ra   RT   R6  R  R8  t   print_expected_error_reportR`  Ra  R´   Rb  Rc  R6   (   R-   R:  R;  Rd  RT   Ra  Re  Rf  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRT  z  s    	$c   	      C` s  d j  d „  t j Dƒ ƒ } i  } d | k r¤ y d d l m } | ƒ  } Wq¤ t k
 r  } t ƒ  } i t | ƒ d 6| j j	 d 6t
 | j ƒ d 6| d	 6} q¤ Xn  i t | ƒ d 6| j j	 d 6t
 | j ƒ d 6| d
 6t | | ƒ d	 6| d 6} t | t ƒ r| j ƒ  | d <n  | S(   Nu    c         s` s   |  ] } t  | ƒ Vq d  S(   N(   R   (   R"   R8   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>ˆ  s    u    infoi   (   t   get_info_dictu   erroru   exception_nameu   exception_typeu	   tracebacku   commandu
   conda_infou   conda_error_components(   R   R:   R;   t   cli.main_infoRh  t	   ExceptionR4  t   reprt	   __class__R0   R   R®   R   R8  (	   R-   R:  R;  R9   t	   info_dictRh  t   info_et   info_tracebackRd  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR^  ‡  s.    	
c         C` s“  d d l  m } | j r6 d d l m } | | ƒ nYg  } | j d ƒ | j d ƒ | j d ƒ | j d „  | d j ƒ  Dƒ ƒ | j d ƒ | j d | d	 ƒ | j d ƒ | d
 rRd d l m	 } m
 } y2 | j | | d
 ƒ ƒ | j | | d
 ƒ ƒ WqRt k
 rN} t j d | d t ƒ| j d ƒ | j d | ƒ qRXn  | j d ƒ | j d ƒ | j d ƒ |  j d j | ƒ ƒ d  S(   Ni   (   RT   (   t   stdout_jsonu    u<   # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<c         s` s   |  ] } d  | Vq d S(   u       N(    (   R"   t   line(    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>±  s   u	   tracebacku   `$ %s`u   commandu
   conda_info(   t   get_env_vars_strt   get_main_info_stru   %rR@  u$   conda info could not be constructed.uF   An unexpected error has occurred. Conda has prepared the above report.u   
(   Ra   RT   R6  t
   cli.commonRp  Rc   t   extendt
   splitlinesRi  Rr  Rs  Rj  t   logRM   RÅ   RM  R   (   R-   Rd  RT   Rp  t   message_builderRr  Rs  R!  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR_  §  s6    	
c         C` s£  d d l  m } | j r6 d d l m } | | ƒ nig  } | j d ƒ | j d ƒ | j d ƒ | j d | d ƒ | j d ƒ | d r$d d	 l m } m } y2 | j | | d ƒ ƒ | j | | d ƒ ƒ Wq$t	 k
 r } t
 j d
 | d t ƒ| j d ƒ | j d
 | ƒ q$Xn  | j d ƒ | j d ƒ | j d ƒ | j | d j ƒ  ƒ | j d ƒ | j d ƒ | j d ƒ |  j d j | ƒ ƒ d  S(   Ni   (   RT   (   Rp  u    u<   # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<u   `$ %s`u   commandu
   conda_info(   Rr  Rs  u   %rR@  u$   conda info could not be constructed.u=   V V V V V V V V V V V V V V V V V V V V V V V V V V V V V V Vu   erroruQ   A reportable application error has occurred. Conda has prepared the above report.u   
(   Ra   RT   R6  Rt  Rp  Rc   Ri  Rr  Rs  Rj  Rw  RM   RÅ   Ru  Rv  RM  R   (   R-   Rd  RT   Rp  Rx  Rr  Rs  R!  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRg  Ç  s8    	
c         C` s   d d l  m } y t j d ƒ p% t } Wn) t k
 rT } t j d | ƒ t } n X| j	 t
 k rs t
 } t
 } nƒ | j	 t k s‹ | j rš t
 } t } n\ | j s¬ | j rÈ t
 } | j oÂ | j } n. | sê t
 } | j oä | j } n t } t
 } | | f S(   Ni   (   RT   i    u   %r(   Ra   RT   R  t   isattyR   Rj  Rw  R1  RÅ   t   report_errorsRÇ   t
   always_yesR6  t   quiett   offline(   R-   RT   Ry  R!  Ra  Re  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyR`  ê  s*    
		c         C` s}   |  j  t d ƒ ƒ d  } y. t d t t d ƒ ƒ } | oC t | ƒ } Wn) t k
 rr } t j	 d | ƒ t
 } n X| | f S(   NuÃ   
        If submitted, this report will be used by core maintainers to improve
        future releases of conda.
        Would you like conda to send this report to the core maintainers?
        i(   u   [y/N]: u   %r(   RM  R   R´   R   R   R   R   Rj  Rw  R1  RÇ   (   R-   Rf  Re  R!  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRa    s    	

c      
   C` sE  i |  j  d 6} |  j } t j ƒ  } t d „  | Dƒ ƒ rA t n t | d <d t | ƒ k rc t n t | d <t j	 | d t d t
 ƒd } | j t | ƒ d	 ƒ } d  } yô d
 d  l } d
 } |  j }	 | j |	 d | d | d | d t ƒ} | j ƒ  xˆ | j d k rƒ| j j d ƒ rƒ| j d }	 | j |	 d | d | d | d t ƒ} | j ƒ  | d 7} | d k rü t d ƒ ‚ qü qü Wt j d | o™| j ƒ Wn# t k
 rÃ}
 t j d |
 ƒ n XyV | ræ| j ræ|  j d ƒ n3 |  j d ƒ | r| j r|  j d | j ƒ n  Wn$ t k
 r@}
 t j d |
 ƒ n Xd  S(   Nu
   User-Agentc         s` s!   |  ] } t  | ƒ d  k  Vq d S(   i€   N(   t   ord(   R"   Rä   (    (    s/   lib/python2.7/site-packages/conda/exceptions.pys	   <genexpr>  s    u   is_asciiu    u
   has_spacesR/  R0  u   
u   USERNAME_REMOVEDi    t   headersR   t   datat   allow_redirectsi-  i.  u   Locationi   i   u   Redirect limit exceededu   upload response status: %su   %ru   Upload successful.u   Upload did not complete.u    HTTP %s(   i-  i.  (   RQ  RP  t   getpasst   getusert   allRÅ   RÇ   R&   R6  R7  R   t   replaceR´   t   requestsRR  t   postt   raise_for_statusR§   R  R¬   R   Rw  R1  Rj  R9  t   okRM  (   R-   Rd  R  t   _timeoutt   usernameR€  R±   R†  t   redirect_counterRœ   R!  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRb    sF    	&"		
$	

c         C` sX   | r | r |  j  d ƒ n8 | d  k r> | r> |  j  d ƒ n | rT |  j  d ƒ n  d  S(   Nu¤   
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true

u"   
Timeout reached. No report sent.
u\   
No report sent. To permanently opt-out, use

    $ conda config --set report_errors false

(   RM  R´   (   R-   Re  Ra  Rf  (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRc  ?  s    

(   R0   R1   RH  RM  t   propertyRP  RQ  RR  RE  RU  RZ  R]  RT  R^  R_  Rg  R`  Ra  Rb  Rc  (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyRD  3  s"   									 	 	#			*c         O` s   t  ƒ  } | |  | | Ž } | S(   N(   RD  (   RF  RH   R5   t   exception_handlert   return_value(    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   conda_exception_handlerY  s    	(”   t
   __future__R    R   R   R   t   datetimeR   R  R   t	   functoolsR   R6  t   loggingR   R  t   os.pathR   R:   t   textwrapR	   t	   tracebackR
   R   R‚  t    R   R   R   R   t   _vendor.auxlib.entityR   t   _vendor.auxlib.ishR   t   _vendor.auxlib.type_coercionR   t   _vendor.toolzR   t   base.constantsR   R   R   t   common.compatR   R   R   R   R   R   R   t	   common.ioR   R   t   common.signalsR    R0   Rw  R!   t   NoPackagesFoundt   NoPackagesFoundErrorR2   R4   R7   R<   R=   R>   R?   R@   RC   RJ   RK   RP   RU   RX   RY   R]   t   OSErrorRm   Ro   Rp   Rr   Rt   Ru   RW  Rw   Rx   R[  Ry   R{   R   R€   R   t   IOErrorR‚   Rƒ   t   KeyErrorR…   R‡   Rˆ   R’   R–   t   ImportErrorR—   R˜   R™   R›   R¡   R¤   Rµ   R¶   R·   RÀ   Ré   Rê   Rë   Rñ   t
   IndexErrorR÷   t
   ValueErrorRø   t	   TypeErrorRù   Rü   Rÿ   R  R  R  R  R  RX  R	  R
  R  R  R  R  R  R  R  R  R  R   R,  R´   R&  R4  t   objectRD  R  (    (    (    s/   lib/python2.7/site-packages/conda/exceptions.pyt   <module>   sÊ   ""4	
	
F	 '}	!	"ÿ '