๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

Anaconda Navigator - Loading Applications ๋ฉˆ์ถค ํ˜„์ƒ ํ•ด๊ฒฐ

by ๐Ÿงž‍โ™‚๏ธ 2020. 4. 10.
๋ฐ˜์‘ํ˜•

Anaconda Navigator๋ฅผ ์—…๋ฐ์ดํŠธ ํŒ์—…์— ๋”ฐ๋ผ 1.9.12๋ฒ„์ „์œผ๋กœ ์—…๋ฐ์ดํŠธํ•œ ์ดํ›„๋ถ€ํ„ฐ

Loading Applications์—์„œ ๋ฉˆ์ถค ํ˜„์ƒ์ด ์ผ์–ด๋‚ฌ๊ณ , python์ด ์‘๋‹ต์—†์Œ ์ƒํƒœ์— ๋น ์ง€๋Š” ํ˜„์ƒ์ด ์ผ์–ด๋‚ฌ๋‹ค.

 

์ด๋ž˜์ €๋ž˜ ์‚ฝ์งˆ ๋์— ํ•ด๊ฒฐํ•ด์„œ ๋„์›€์ด ๋˜๊ณ ์ž ํ•ด๋‹น ๋‚ด์šฉ์„ ๊ณต์œ ํ•œ๋‹ค.

 

์„ฑ๊ณตํ•œ ๋‚ด์šฉ์„ ๊ณต์œ ํ•œ๋‹ค.

์•„๋ž˜ ํŒŒ์ผ์—์„œ

anaconda์„ค์น˜๊ฒฝ๋กœ/Lib/site-packages/anaconda-navigator/api/conda_api.py

์•„๋ž˜์˜ ํ•จ์ˆ˜๋ฅผ ์ฐพ์•„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค.

์ •ํ™•ํžˆ๋Š” data = yaml.full_load(f)๋ฅผ data = yaml.safeload(f)๋กœ ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค.

def load_rc(self, path=None, prefix=None, system=False):
        """
        Load the raw conda configuration file using pyyaml.

        Depending on path or specific environment prefix and system that
        config file will be returned. If invalid or inexistent file, then an
        empty dicionary is returned.

        Parameters
        ----------
        path : str
            Path to conda configuration file.
        prefix : str
            Prefix path, to retrieve the specific prefix configuration file.
        system : bool
            Retrieve the system configuration file.
        """
        if path:
            config_path = path
        elif prefix and self.environment_exists(prefix=prefix):
            config_path = os.path.join(prefix, '.condarc')
        elif system:
            config_path = self.sys_rc_path
        elif not system:
            config_path = self.user_rc_path
        else:
            config_path = None

        data = {}
        if config_path and os.path.isfile(config_path):
            with open(config_path) as f:
                # data = yaml.full_load(f)
                data = yaml.safeload(f)

        return data

 

์‹œ๋„ํ•ด๋ณธ ๊ฒƒ๋“ค ์ค‘ ์‹คํŒจํ•œ ๋ชฉ๋ก์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค.

  • ์•„๋‚˜์ฝ˜๋‹ค ์—…๋ฐ์ดํŠธ

conda update conda

  • ๋„ค๋น„๊ฒŒ์ดํ„ฐ ์‚ญ์ œ ํ›„ ์žฌ์„ค์น˜

conda remove anaconda-navigator
conda install anaconda-navigator

  • ํ™˜๊ฒฝ ํŒŒ์ผ ์‚ญ์ œ(Windows์˜ ๊ฒฝ์šฐ C:\Users\์‚ฌ์šฉ์ž์ด๋ฆ„ ๊ฒฝ๋กœ์—์„œ)

del .condarc

  • anaconda-navigator ์ดˆ๊ธฐํ™”

anaconda-navigator --reset

๋ชจ๋‘ ์‹คํŒจ์˜€๋‹ค.

 

 

์ฐธ์กฐ: https://github.com/ContinuumIO/anaconda-issues/issues/9864

 

Fresh Anaconda install freezes on "Loading applications..." when launching Navigator · Issue #9864 · ContinuumIO/anaconda-issues

Actual Behavior Attempting to launch Anaconda Navigator by clicking the executable or typing anaconda-navigator in the Anaconda Prompt causes launch to become unresponsive on "Loading applicat...

github.com

 

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€