AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.14k stars 492 forks source link

[BUG] Tumerbase dataset download link error in notebooks/FeatureVisualization.ipynb notebook #783

Open yezxxx opened 2 years ago

yezxxx commented 2 years ago

Describe the bug The Tumberbase dataset download link 'http://www.spl.harvard.edu/publications/bitstream/download/5270' seemed out of time, which report HTTP 404 NOT FOUND error.

PyRadiomics configuration

PyRadiomics log file

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb Cell 2 in <cell line: 10>()
     [12](vscode-notebook-cell://ssh-remote%2Btitan/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=11)         os.mkdir('example_data')
     [13](vscode-notebook-cell://ssh-remote%2Btitan/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=12)     print ("retrieving")
---> [14](vscode-notebook-cell://ssh-remote%2Btitan/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=13)     urllib.request.urlretrieve(url, filename)
     [15](vscode-notebook-cell://ssh-remote%2Btitan/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=14) else:
     [16](vscode-notebook-cell://ssh-remote%2Btitan/home/yezx/rd/s101/radiomics/pyradiomics/notebooks/FeatureVisualization.ipynb#W1sdnNjb2RlLXJlbW90ZQ%3D%3D?line=15)     print ("file already downloaded")

File ~/miniconda3/lib/python3.8/urllib/request.py:247, in urlretrieve(url, filename, reporthook, data)
    230 """
    231 Retrieve a URL into a temporary location on disk.
    232 
   (...)
    243 data file as well as the resulting HTTPMessage object.
    244 """
    245 url_type, path = _splittype(url)
--> 247 with contextlib.closing(urlopen(url, data)) as fp:
    248     headers = fp.info()
    250     # Just return the local path and the "headers" for file://
    251     # URLs. No sense in performing a copy unless requested.

File ~/miniconda3/lib/python3.8/urllib/request.py:222, in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    220 else:
    221     opener = _opener
...
File ~/miniconda3/lib/python3.8/urllib/request.py:649, in HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs)
    648 def http_error_default(self, req, fp, code, msg, hdrs):
--> 649     raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: HTTP Error 404: Not Found

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Version (please complete the following information):

Additional context Add any other context about the problem here.