bidskit
bidskit copied to clipboard
Unable to run bidskit - "TypeError: Expected maxsize to be an integer or None"
Describe the bug
Using Python 3.6, 3.9, and 3.12.1, I have not been able to use bidskit
(installed through pip). Any usage of the module gives the error, "TypeError: Expected maxsize to be an integer or None" (from BIDS validator).
To Reproduce
Use bidskit
Screenshots
Desktop (please complete the following information):
- OS: Linux / x86_64
While this appears to be an issue with the BIDSValidator package, is there a workaround?
You're right, it's an issue during the initialization of the bids_validator package called from the pybids initialization. As a test, can you open a python interactive shell from the command line and just import the bids package only? Does that throw an error immediately? I can't tell if you're using a virtual environment for python, but one way to work around this is to set up a python 3.9 or 3.10 virtual environment using conda or venv then pip installing bidskit (or just pybids to start with) into this virtual environment and seeing if that fixes the initialization issue. Let me know - happy to continue debugging this with you.
Hey @jmtyszka,
Thanks for the quick reply — using a Python 3.9 virtual environments seems to have worked. I have another question, which I will raise in a different issue.