尝试 conda 构建 graphviz pypi 包时出现 HTTP 错误

问题描述

我正在尝试从 pypi conda 构建一个 graphviz 包,但我遇到了:

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent,and a simple retry will get you on your way.
Could not download https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz

这是我正在做的:

  1. conda skeleton pypi graphviz 成功创建骨架。 输出
Using 0.16
Use --version to specify a different version.
Using url https://files.pythonhosted.org/packages/cc/a3/8f49063fee2037892f66f1a4d55da8ba25235e76dc27887f7edf95272154/graphviz-0.16.zip (189 KB) for graphviz.
Downloading graphviz
PyPI URL:  https://files.pythonhosted.org/packages/cc/a3/8f49063fee2037892f66f1a4d55da8ba25235e76dc27887f7edf95272154/graphviz-0.16.zip
Using cached download
Unpacking graphviz...
done
working in /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/nitin/miniconda3/envs/jupyter/conda-bld/skeleton_1619126219886/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold


The following NEW packages will be INSTALLED:

    _libgcc_mutex:    0.1-main                
    ca-certificates:  2021.4.13-h06a4308_1    
    certifi:          2020.12.5-py39h06a4308_0
    ld_impl_linux-64: 2.33.1-h53a641e_7       
    libffi:           3.3-he6710b0_2          
    libgcc-ng:        9.1.0-hdf63c60_0        
    libstdcxx-ng:     9.1.0-hdf63c60_0        
    ncurses:          6.2-he6710b0_1          
    openssl:          1.1.1k-h27cfd23_0       
    patch:            2.7.6-h7b6447c_1001     
    pip:              21.0.1-py39h06a4308_0   
    python:           3.9.4-hdb3f193_0        
    pyyaml:           5.4.1-py39h27cfd23_1    
    readline:         8.1-h27cfd23_0          
    setuptools:       52.0.0-py39h06a4308_0   
    sqlite:           3.35.4-hdfb4753_0       
    tk:               8.6.10-hbc83047_0       
    tzdata:           2020f-h52ac0ba_0        
    wheel:            0.36.2-pyhd3eb1b0_0     
    xz:               5.2.5-h7b6447c_0        
    yaml:             0.2.5-h7b6447c_0        
    zlib:             1.2.11-h7b6447c_3       

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Applying patch: /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip/pypi-distutils.patch
Applying patch: /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip/pypi-distutils.patch with args:
['-Np0','-i','/tmp/tmp2v4dskk_/pypi-distutils.patch.native','--binary']
checking file core.py
Hunk #1 succeeded at 167 with fuzz 2 (offset 1 line).
patching file core.py
Hunk #1 succeeded at 167 with fuzz 2 (offset 1 line).
Writing recipe for graphviz
--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

INFO:conda_build.config:--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

INFO conda_build.config:__exit__(855): --dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

  1. 现在我跑了 conda-build graphviz输出错误):
No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
WARNING:conda_build.Metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Attempting to finalize Metadata for graphviz
INFO:conda_build.Metadata:Attempting to finalize Metadata for graphviz
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
BUILD START: ['graphviz-0.16-py39_0.tar.bz2']
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/nitin/miniconda3/envs/jupyter/conda-bld/graphviz_1619126315280/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold


The following NEW packages will be INSTALLED:

    _libgcc_mutex:    0.1-main                
    ca-certificates:  2021.4.13-h06a4308_1    
    certifi:          2020.12.5-py39h06a4308_0
    ld_impl_linux-64: 2.33.1-h53a641e_7       
    libffi:           3.3-he6710b0_2          
    libgcc-ng:        9.1.0-hdf63c60_0        
    libstdcxx-ng:     9.1.0-hdf63c60_0        
    ncurses:          6.2-he6710b0_1          
    openssl:          1.1.1k-h27cfd23_0       
    pip:              21.0.1-py39h06a4308_0   
    python:           3.9.4-hdb3f193_0        
    readline:         8.1-h27cfd23_0          
    setuptools:       52.0.0-py39h06a4308_0   
    sqlite:           3.35.4-hdfb4753_0       
    tk:               8.6.10-hbc83047_0       
    tzdata:           2020f-h52ac0ba_0        
    wheel:            0.36.2-pyhd3eb1b0_0     
    xz:               5.2.5-h7b6447c_0        
    zlib:             1.2.11-h7b6447c_3       

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
INFO:conda_build.source:Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
INFO conda_build.source:download_to_cache(44): Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
INFO:conda_build.source:Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
INFO conda_build.source:download_to_cache(69): Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
INFO:conda_build.source:Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
INFO conda_build.source:download_to_cache(83): Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent,and a simple retry will get you on your way.
WARNING:conda_build.source:Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent,and a simple retry will get you on your way.
WARNING conda_build.source:download_to_cache(87): Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent,and a simple retry will get you on your way.
Could not download https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz

到目前为止我尝试过的:

  • 尝试了 conda config --set ssl_verify noconda config --set ssl_verify False - 问题仍然存在
  • 尝试多次运行 conda-build graphviz 命令 - 问题仍然存在

能否请您解释一下我哪里出错了,错误的根源是什么,以及解决方法是什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...