-
Notifications
You must be signed in to change notification settings - Fork 41
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
Comments
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. |
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](https://private-user-images.githubusercontent.com/145798752/318570654-1b9dc833-df0f-4dd2-84ab-26f1e48463d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwODg0NTYsIm5iZiI6MTcyNjA4ODE1NiwicGF0aCI6Ii8xNDU3OTg3NTIvMzE4NTcwNjU0LTFiOWRjODMzLWRmMGYtNGRkMi04NGFiLTI2ZjFlNDg0NjNkMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMDU1NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZWY1YTE4YjFjODk0YjQ0ZTc4MjcwMzljMjQ5YWEzMDc1N2NkZTliMmRhOGQ1ZDE5MmRmOTFjNjE2NzM5ZDJhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lxTOC5KXAUmPqQQaSXzfKXmxbYE7Ax8QM1DathqQfRQ)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: