{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/869","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/869/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/869/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/869/events","html_url":"https://github.com/nilearn/nilearn/issues/869","id":119933234,"number":869,"title":"crc32 check fails on Circle CI","user":{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-02T12:41:33Z","updated_at":"2015-12-02T16:46:53Z","closed_at":null,"body":"While working on #862, I had an issue when running the `../examples/connectivity/plot_canica_resting_state.py`\r\n\r\nHere is the full backtrace:\r\n```\r\n[Memory] Calling nilearn.image.image._compute_mean...\r\n_compute_mean('/home/ubuntu/nilearn_data/adhd/data/3699991/3699991_rest_tshift_RPI_voreg_mni.nii.gz', target_shape=None, target_affine=None, smooth=1)\r\n________________________________________________________________________________\r\n../examples/connectivity/plot_canica_resting_state.py is not compiling:\r\nTraceback (most recent call last):\r\n  File \"/home/ubuntu/nilearn/doc/sphinxext/sphinx_gallery/gen_rst.py\", line 427, in execute_script\r\n    exec(code_block, example_globals)\r\n  File \"<string>\", line 6, in <module>\r\n  File \"/home/ubuntu/nilearn/nilearn/decomposition/canica.py\", line 147, in fit\r\n    MultiPCA.fit(self, imgs, y=y, confounds=confounds)\r\n  File \"/home/ubuntu/nilearn/nilearn/decomposition/multi_pca.py\", line 275, in fit\r\n    self.masker_.fit(imgs)\r\n  File \"/home/ubuntu/nilearn/nilearn/input_data/multi_nifti_masker.py\", line 188, in fit\r\n    **mask_args)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 483, in __call__\r\n    return self._cached_call(args, kwargs)[0]\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 430, in _cached_call\r\n    out, metadata = self.call(*args, **kwargs)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 675, in call\r\n    output = self.func(*args, **kwargs)\r\n  File \"/home/ubuntu/nilearn/nilearn/masking.py\", line 363, in compute_multi_epi_mask\r\n    for epi_img in epi_imgs)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py\", line 804, in __call__\r\n    while self.dispatch_one_batch(iterator):\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py\", line 662, in dispatch_one_batch\r\n    self._dispatch(tasks)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py\", line 570, in _dispatch\r\n    job = ImmediateComputeBatch(batch)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py\", line 183, in __init__\r\n    self.results = batch()\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.py\", line 72, in __call__\r\n    return [func(*args, **kwargs) for func, args, kwargs in self.items]\r\n  File \"/home/ubuntu/nilearn/nilearn/masking.py\", line 261, in compute_epi_mask\r\n    smooth=(1 if opening else False))\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 483, in __call__\r\n    return self._cached_call(args, kwargs)[0]\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 430, in _cached_call\r\n    out, metadata = self.call(*args, **kwargs)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/sklearn/externals/joblib/memory.py\", line 675, in call\r\n    output = self.func(*args, **kwargs)\r\n  File \"/home/ubuntu/nilearn/nilearn/image/image.py\", line 374, in _compute_mean\r\n    mean_data = _safe_get_data(imgs)\r\n  File \"/home/ubuntu/nilearn/nilearn/_utils/niimg.py\", line 28, in _safe_get_data\r\n    return img.get_data()\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/nibabel/spatialimages.py\", line 582, in get_data\r\n    data = np.asanyarray(self._dataobj)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/numpy/core/numeric.py\", line 525, in asanyarray\r\n    return array(a, dtype, copy=False, order=order, subok=True)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/nibabel/arrayproxy.py\", line 144, in __array__\r\n    raw_data = self.get_unscaled()\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/nibabel/arrayproxy.py\", line 139, in get_unscaled\r\n    mmap=self._mmap)\r\n  File \"/home/ubuntu/virtualenvs/venv-system/local/lib/python2.7/site-packages/nibabel/volumeutils.py\", line 517, in array_from_file\r\n    n_read = infile.readinto(data_bytes)\r\n  File \"/usr/lib/python2.7/gzip.py\", line 261, in read\r\n    self._read(readsize)\r\n  File \"/usr/lib/python2.7/gzip.py\", line 308, in _read\r\n    self._read_eof()\r\n  File \"/usr/lib/python2.7/gzip.py\", line 347, in _read_eof\r\n    hex(self.crc)))\r\nIOError: CRC check failed 0x7426164f != 0x9fc750b1L\r\n```\r\nI bypassed this issue by removing the adhd folder from the `~/nilearn_data` cached directory, forcing another download of this data. I suspect the allowed cache size on circle is not sufficient for the nilearn_data."},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/161360652","html_url":"https://github.com/nilearn/nilearn/issues/869#issuecomment-161360652","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/869","id":161360652,"user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T16:46:53Z","updated_at":"2015-12-02T16:46:53Z","body":"In particular, if the CircleCI cache is somehow the culprit and corrupts the dataset, I find it slightly weird that the gzip file is valid enough to get to the CRC checks."}}