sorry if this is a dumb question, i was just getting the hang of dcm2bids and then i had to switch to a newer computer and install the new major changes dcm2bids
Summary of what happened:
error with recent dcm2bids, related to .jsons? was a pip install. versions and system in the pasted command and output below (also i’m running MacOS 13.5.1):
salvatoretorrisi@computername% dcm2bids -d subjectd/nestedDir/ -c $HOME/motion_config.json -p 001 -o outputBidsyDirTest
INFO | --- dcm2bids start ---
INFO | Running the following command: /opt/homebrew/bin/dcm2bids -d subjectd/nestedDir/ -c /Users/salvatoretorrisi/motion_config.json -p 001 -o outputBidsyDirTest
INFO | OS version: macOS-13.5.1-arm64-arm-64bit
INFO | Python version: 3.11.4 (main, Jul 25 2023, 17:36:13) [Clang 14.0.3 (clang-1403.0.22.14.1)]
INFO | dcm2bids version: 3.0.1
INFO | dcm2niix version: v1.0.20230411
INFO | Checking for software update
INFO | Currently using the latest version of dcm2bids.
INFO | Currently using the latest version of dcm2niix.
INFO | participant: sub-001
INFO | config: /Users/salvatoretorrisi/motion_config.json
INFO | BIDS directory: /Users/salvatoretorrisi/Desktop/MOTION/outputBidsyDir2
INFO | Auto extract entities: False
INFO | Validate BIDS: False
Traceback (most recent call last):
File "/opt/homebrew/bin/dcm2bids", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/dcm2bids/cli/dcm2bids.py", line 119, in main
app = Dcm2BidsGen(**vars(args)).run()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/dcm2bids/dcm2bids_gen.py", line 51, in __init__
self.config = load_json(valid_path(config, type="file"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/dcm2bids/utils/io.py", line 18, in load_json
data = json.load(f, object_pairs_hook=OrderedDict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 359, in loads
return cls(**kw).decode(s)
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 60 column 38 (char 2009)