raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not found

Post here any question you encounter when running the scripts of the yambo-py suite. Post here problem strictly to the python interface as problem coming from the yambo runs should go in the appropriate subforum.

Moderators: palful, amolina, mbonacci

Post Reply
gaohan
Posts: 15
Joined: Sun Feb 07, 2021 3:56 am

raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not found

Post by gaohan » Thu Mar 18, 2021 3:33 am

Dear developers,
When I test 'yambopy' code, it encountered the following problem:

Code: Select all

aise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not found and is required by yambopy
hangao@sdu-PowerEdge-R740:SAVE$ conda install netCDF4
Then I install netCDF4 using

Code: Select all

conda install netCDF4
,
It shows:

Code: Select all

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64/current_repodata.json>
Elapsed: -

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.
'https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64'
I'm a freshman in Linux and Python. Could you help me solve this problem?
Looking forward to your reply !
Han Gao
School of Physics, State Key Laboratory of Crystal Materials, Shandong University, Jinan 250100, Shandong, China

User avatar
palful
Posts: 56
Joined: Tue Jan 26, 2016 11:23 am
Location: Modena and Milan

Re: raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'netCDF4' distribution was not fo

Post by palful » Thu Mar 18, 2021 10:05 am

Hi Han,
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.bfsu.edu.cn/anaconda/pk ... odata.json>
Elapsed: -

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.
'https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64'
This looks like a conda error in downloading the netcdf package.
I assume that if you try again as it suggests the results don't change, right?
Also, check that your python version is 3.x.

Does this error occur just for netCDF4 of for any package you try to install with conda?

Most of the instances I found online about CondaHTTPError are related to usage on a Windows machine rather than a Linux system, but maybe these links can help you anyway:
https://github.com/conda/conda/issues/8046
https://github.com/conda/conda/issues/9555
https://forum.qiime2.org/t/condahttperr ... ailed/3317

Cheers,
Fulvio
Dr. Fulvio Paleari
S3-CNR Institute of Nanoscience and MaX Center
Modena, Italy

Post Reply