python Conda为qt 6-main提供InvalidArchiveError-不允许向后查找

jk9hmnmh  于 2023-02-21  发布在  Python
关注(0)|答案(2)|浏览(379)

我正在尝试使用Conda安装PySide6,它需要qt6-main

conda install qt6-main -c conda-forge

我得到错误:

InvalidArchiveError('Error with archive C:\\Users\\Username\\Anaconda3\\pkgs\\qt6-main-6.4.2-hc84ccb7_3.conda.  You probably need to delete and re-download or re-create this file.  Message was:\n\nfailed with error: seeking backwards is not allowed')

我试过了,6.4.2到6.4.0版本都是这样。这是Conda的问题,还是存档的问题,还是其他问题?

brvekthn

brvekthn1#

在卸载/重新安装(和更新)* Anaconda 3 * 之前,我遇到了同样的错误。现在,我遇到了一些不同的东西,但仍然具有相同的“气味”:

(base)
capnf@DESKTOP-G84ND7C MINGW64 ~/Documents/GitHub/PyBERT (master)
$ conda build --python=3.9 --numpy=1.23 -c dbanas -c defaults -c conda-forge conda.recipe/pybert/
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Adding in variants from config.variant
INFO:conda_build.variants:Adding in variants from config.variant
Attempting to finalize metadata for pybert
INFO:conda_build.metadata:Attempting to finalize metadata for pybert
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\python-3.9.16-h6244533_0\.cph_tmphkgup82v
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\python-3.9.16-h6244533_0\.cph_tmpxz2l6rsx
{Many more similar lines omitted for brevity.}
BUILD START: ['pybert-4.0.5-np123py_1.tar.bz2']
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\ca-certificates-2023.01.10-haa95532_0\.cph_tmpc_tze6iu
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\ca-certificates-2023.01.10-haa95532_0\.cph_tmptnnun2p2
{Many more similar lines omitted for brevity.}
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\capnf\anaconda3\pkgs\qt6-main-6.4.2-he04816f_2\.cph_tmp8tthp3vm\pkg-qt6-main-6.4.2-he04816f_2.tar.zst.  Please remove this file manually (you may need to reboot to free file handles)
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\pooch-1.4.0-pyhd3eb1b0_0\.cph_tmpse2dlzdg
INFO:C:\Users\capnf\anaconda3\lib\site-packages\conda_package_handling\utils.py:rm_rf failed for C:\Users\capnf\anaconda3\pkgs\pooch-1.4.0-pyhd3eb1b0_0\.cph_tmpfv2cch54
{Many more similar lines omitted for brevity.}

## Package Plan ##

  environment location: C:\Users\capnf\anaconda3\conda-bld\pybert_1676055211232\_h_env

The following NEW packages will be INSTALLED:

    appdirs:             1.4.4-pyhd3eb1b0_0
    asttokens:           2.0.5-pyhd3eb1b0_0
    backcall:            0.2.0-pyhd3eb1b0_0
    blas:                1.0-mkl
{Many more package version specifiers omitted for brevity.}
{Solve appears to have succeeded.}

Traceback (most recent call last):
  File "C:\Users\capnf\anaconda3\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 496, in main
    execute(sys.argv[1:])
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 485, in execute
    outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post,
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\api.py", line 186, in build
    return build_tree(
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\build.py", line 3091, in build_tree
    packages_from_this = build(metadata, stats,
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\build.py", line 2131, in build
    create_build_envs(top_level_pkg, notest)
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\build.py", line 2011, in create_build_envs
    environ.create_env(m.config.build_prefix, build_actions, env='build',
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda_build\environ.py", line 910, in create_env
    execute_actions(actions, index)
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda\common\io.py", line 86, in decorated
    return f(*args, **kwds)
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda\plan.py", line 324, in execute_actions
    execute_instructions(plan, index, verbose)
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda\plan.py", line 535, in execute_instructions
    cmd(state, arg)
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda\instructions.py", line 67, in PROGRESSIVEFETCHEXTRACT_CMD
    progressive_fetch_extract.execute()
  File "C:\Users\capnf\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 664, in execute
    raise CondaMultiError(exceptions)
conda.CondaMultiError: Error with archive C:\Users\capnf\anaconda3\pkgs\qt6-main-6.4.2-he04816f_2\.cph_tmp8tthp3vm\pkg-qt6-main-6.4.2-he04816f_2.tar.zst.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:

Can't create '\\?\C:\Users\capnf\anaconda3\pkgs\qt6-main-6.4.2-he04816f_2\Library\bin\windeployqt6.exe'

我的系统细节:

  • 戴尔XPS15 7590 32 GB Windows 11主页
(base)
capnf@DESKTOP-G84ND7C MINGW64 ~/Documents/GitHub/PyBERT (master)
$ python --version
Python 3.9.13
(base)
capnf@DESKTOP-G84ND7C MINGW64 ~/Documents/GitHub/PyBERT (master)
$ conda --version
conda 22.9.0
(base)
capnf@DESKTOP-G84ND7C MINGW64 ~/Documents/GitHub/PyBERT (master)
$ conda list anaconda
# packages in environment at C:\Users\capnf\anaconda3:
#
# Name                    Version                   Build  Channel
anaconda                  2022.10                  py39_0
anaconda-client           1.11.0           py39haa95532_0
anaconda-navigator        2.3.1            py39haa95532_0
anaconda-project          0.11.1           py39haa95532_0

无论是作为管理员还是普通用户,我都无法启动 Anaconda Prompt。所以,我无法尝试这个实验。而且sudo在Windows上的MINGW中不起作用。所以,我无法判断这是否是权限问题。:(

xqnpmsa8

xqnpmsa82#

我在Windows上使用最新的condaconda-package-handling时也遇到了同样的问题。
我在https://github.com/conda/conda/issues/12369处填充了一个错误

相关问题