PROBLEMA ANACONDA3

A
AntonioLicursi (360 points)
3 10 12
asked Nov 13, 2020 in Programmare in Python by AntonioLicursi (360 points)
recategorized Nov 16, 2020 by andrea.sterbini
salve a tutti, ho cambiato pc e ho installato subito anaconda3 per continuare il mio programma, al momento di installare gli update con "conda update --all" da anaconda prompt la console mi ritorna questo: (ho provato a reinstallare anaconda e fare gli aggiornamenti pacchetto per pacchetto ma da comunque lo stesso errore, aiuto!

EDIT: non posso neanche debuggare il file,  dicendomi questo su spyder " PermissionError: [Errno 13] Permission denied: 'esempio.txt' "

Collecting package metadata (current_repodata.json): failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
        return getattr(module, func_name)(args, parser)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\cli\main_update.py", line 20, in execute
        install(args, parser, 'update')
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\cli\install.py", line 261, in install
        unlink_link_transaction = solver.solve_for_transaction(
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\solve.py", line 114, in solve_for_transaction
        unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\solve.py", line 157, in solve_for_diff
        final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state
        ssc = self._collect_all_metadata(ssc)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
        return f(*args, **kwds)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\solve.py", line 415, in _collect_all_metadata
        index, r = self._prepare(prepared_specs)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\solve.py", line 1010, in _prepare
        reduced_index = get_reduced_index(self.prefix, self.channels,
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\index.py", line 227, in get_reduced_index
        new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 83, in query_all
        create_cache_dir()
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 659, in create_cache_dir
        cache_dir = join(PackageCacheData.first_writable().pkgs_dir, 'cache')
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 154, in first_writable
        package_cache = cls(pkgs_dir)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 59, in __call__
        package_cache_instance = super(PackageCacheType, cls).__call__(pkgs_dir)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 73, in __init__
        self._urls_data = UrlsData(pkgs_dir)
      File "C:\Users\blaze\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 433, in __init__
        with open(urls_txt_path, 'rb') as fh:
    PermissionError: [Errno 13] Permission denied: 'C:\\Users\\blaze\\anaconda3\\pkgs\\urls.txt'

`$ C:\Users\blaze\anaconda3\Scripts\conda-script.py update --all`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=C:\Users\blaze\anaconda3\condabin\..\Scripts\conda.exe
               CONDA_EXES="C:\Users\blaze\anaconda3\condabin\..\Scripts\conda.exe"
             CONDA_PREFIX=C:\Users\blaze\anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=C:\Users\blaze\anaconda3\python.exe
               CONDA_ROOT=C:\Users\blaze\anaconda3
              CONDA_SHLVL=1
                 HOMEPATH=\Users\blaze
                     PATH=C:\Users\blaze\anaconda3;C:\Users\blaze\anaconda3\Library\mingw-w64\bi
                          n;C:\Users\blaze\anaconda3\Library\usr\bin;C:\Users\blaze\anaconda3\Li
                          brary\bin;C:\Users\blaze\anaconda3\Scripts;C:\Users\blaze\anaconda3\bi
                          n;C:\Users\blaze\anaconda3;C:\Users\blaze\anaconda3\Library\mingw-w64\
                          bin;C:\Users\blaze\anaconda3\Library\usr\bin;C:\Users\blaze\anaconda3\
                          Library\bin;C:\Users\blaze\anaconda3\Scripts;C:\Users\blaze\anaconda3\
                          bin;C:\Users\blaze\anaconda3\condabin;C:\Windows\system32;C:\Windows;C
                          :\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\
                          Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA
                          Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA
                          NvDLISR;C:\Users\blaze\AppData\Local\Microsoft\WindowsApps;.
             PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\Windows
                          PowerShell\v1.0\Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
248 views

4 Answers

P
PaoloT (2030 points)
3 11 17
answered Nov 13, 2020 by PaoloT (2,030 points)
Se non lo hai già fatto prova ad avviare anaconda prompt come amministratore
A
AntonioLicursi (360 points)
3 10 12
commented Nov 13, 2020 by AntonioLicursi (360 points)
niente, cambia solo un true al posto di false dove c'è l'admin nella parte che ho tagliato, ma il problema rimane lo stesso
P
PaoloT (2030 points)
3 11 17
commented Nov 13, 2020 by PaoloT (2,030 points)
Per caso hai installato qualche antivirus aggiuntivo oltre a quello predefinito di windows10?
A
AntonioLicursi (360 points)
3 10 12
commented Nov 13, 2020 by AntonioLicursi (360 points)
IoBit Malware Fighter, tutt'ora chiuso anche quando ho provato ad eseguire come admin
P
PaoloT (2030 points)
3 11 17
commented Nov 13, 2020 by PaoloT (2,030 points)
Non so se possa risolvere il problema, ma da quel che ho trovato forse installando Microsoft Visual C++ (https://support.microsoft.com/it-it/help/2977003/the-latest-supported-visual-c-downloads se non lo hai già installato) e Win64 OpenSSL v1.1.1h (https://slproweb.com/products/Win32OpenSSL.html) potrebbe essere una soluzione.

Per i link diretti per scaricarli:
Visual: https://aka.ms/vs/16/release/vc_redist.x64.exe
OpenSSL: https://slproweb.com/download/Win64OpenSSL-1_1_1h.exe
A
AntonioLicursi (360 points)
3 10 12
commented Nov 14, 2020 by AntonioLicursi (360 points)
ho formatto il pc, reinstallato e ora va ahahah
twgever (15190 points)
7 27 105
answered Nov 13, 2020 by twgever (15,190 points)
non so se hai già fatto una ricerca su internet. Io cercando la prima riga di errore ho trovato questo link:
https://github.com/conda/conda/issues/9004
qui qualcuno ha lo stesso tuo problema, prova ad aggiornare cona con "conda update --all", ma gli viene fuori questo errore. Ho visto che qualcuno ha risolto, magari ti può aiutare?
A
AntonioLicursi (360 points)
3 10 12
commented Nov 13, 2020 by AntonioLicursi (360 points)
provo subito, grazie
A
AntonioLicursi (360 points)
3 10 12
commented Nov 14, 2020 by AntonioLicursi (360 points)
ho formatto il pc, reinstallato e ora va ahahah
O
Oakandrew (6400 points)
4 26 63
answered Nov 13, 2020 by Oakandrew (6,400 points)
Cartella su tuo pc "C:\\Users\\blaze\\anaconda3\\pkgs" possono leggere tutti?
A
AntonioLicursi (360 points)
3 10 12
commented Nov 13, 2020 by AntonioLicursi (360 points)
impostato l'accesso, dove c'è l'admin e everyone. provato a runnare come admin e normalmente anaconda prompt e niente... :(
O
Oakandrew (6400 points)
4 26 63
commented Nov 13, 2020 by Oakandrew (6,400 points)

Sostanzialmente, sembra che non hai permessi di lettura, vedi riga sotto di tutto traceback:

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\blaze\\anaconda3\\pkgs\\urls.txt'

In questo file trovi repository di anaconda, per questo ti avevo chiesto

A
AntonioLicursi (360 points)
3 10 12
commented Nov 13, 2020 by AntonioLicursi (360 points)
capito capito. però purtroppo non sembra essere un problema di lettura della cartella pkgs, anche perchè prima essendoci l'admin teoricamente se lo eseguivo come amministratore avrebbe dovuto leggerlo...
A
AntonioLicursi (360 points)
3 10 12
commented Nov 14, 2020 by AntonioLicursi (360 points)
ho formatto il pc, reinstallato e ora va ahahah
O
Oakandrew (6400 points)
4 26 63
commented Nov 14, 2020 by Oakandrew (6,400 points)
Forteeeeeeee
AdSum (16290 points)
9 20 134
answered Nov 13, 2020 by AdSum (16,290 points)

Ho trovato questa soluzione, ovvero fare un downgrade. Prova a seguire le istruzioni e fammi sapere.

install an older conda version?

conda config --set allow_conda_downgrades true
conda install conda=4.6.14

If that doesn't work, you can use one of the standalone conda executables at https://repo.anaconda.com/pkgs/misc/conda-execs/ to operate on your broken installation:

<executable path> install -p <path to broken installation> conda=4.6.14

A
AntonioLicursi (360 points)
3 10 12
commented Nov 14, 2020 by AntonioLicursi (360 points)
ho formatto il pc, reinstallato e ora va ahahah