bidskit icon indicating copy to clipboard operation
bidskit copied to clipboard

Unable to run bidskit - "TypeError: Expected maxsize to be an integer or None"

Open ruben-stanford opened this issue 10 months ago • 3 comments

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 Screenshot 2024-04-01 at 2 22 35 PM

Desktop (please complete the following information):

  • OS: Linux / x86_64

ruben-stanford avatar Apr 01 '24 21:04 ruben-stanford

While this appears to be an issue with the BIDSValidator package, is there a workaround?

ruben-stanford avatar Apr 01 '24 21:04 ruben-stanford

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.

jmtyszka avatar Apr 01 '24 21:04 jmtyszka

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.

ruben-stanford avatar Apr 01 '24 22:04 ruben-stanford