Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ruben-stanford opened this issue Apr 1, 2024 · 3 comments

Comments

@ruben-stanford
Copy link

ruben-stanford commented Apr 1, 2024

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
Copy link
Author

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

@jmtyszka
Copy link
Owner

jmtyszka commented Apr 1, 2024

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.

@ruben-stanford
Copy link
Author

ruben-stanford commented Apr 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants