abcd-hcp-pipeline
abcd-hcp-pipeline copied to clipboard
BIDS Validation failing due to lru_cache
What happened?
I added a step in the Dockerfile to copy over some matlab code that I edited. Just one m file. I built the Dockerfile. When I run the container/image that's created I get:
File "/app/run.py", line 33, in <module>
from helpers import read_bids_dataset, validate_config, validate_license
File "/app/helpers.py", line 6, in <module>
from bids.layout import BIDSLayout
File "/usr/local/lib/python3.6/dist-packages/bids/__init__.py", line 3, in <module>
from .layout import BIDSLayout
File "/usr/local/lib/python3.6/dist-packages/bids/layout/__init__.py", line 1, in <module>
from .layout import BIDSLayout, add_config_paths, parse_file_entities
File "/usr/local/lib/python3.6/dist-packages/bids/layout/layout.py", line 20, in <module>
from .index import BIDSLayoutIndexer
File "/usr/local/lib/python3.6/dist-packages/bids/layout/index.py", line 11, in <module>
from bids_validator import BIDSValidator
File "/usr/local/lib/python3.6/dist-packages/bids_validator/__init__.py", line 2, in <module>
from .bids_validator import BIDSValidator
File "/usr/local/lib/python3.6/dist-packages/bids_validator/bids_validator.py", line 8, in <module>
class BIDSValidator():
File "/usr/local/lib/python3.6/dist-packages/bids_validator/bids_validator.py", line 124, in BIDSValidator
@lru_cache
File "/usr/lib/python3.6/functools.py", line 477, in lru_cache
raise TypeError('Expected maxsize to be an integer or None')
TypeError: Expected maxsize to be an integer or None
What command did you use?
docker run --rm --user="<user_#>:<group_#>" -v <data_in>:/bids_input:ro -v <data_out>:/output -v freesurfer/license.txt:/license.txt:ro edited_abcd-hcp-pipeline /bids_input /output --freesurfer-license=/opt/freesurfer/license.txt --ncpus=12 --participant-label=02
What version of the abcd-hcp pipeline are you using?
latest
Directory Structure
No response
Relevant log output
No response
Add any additional information or context about the problem here.
I ran the command with the dcanumn/abcd-hcp-pipeline
and it works. I don't understand why copying one m-file causes a python error