-
Notifications
You must be signed in to change notification settings - Fork 33
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
Module not found error with scripting #60
Comments
Are your sure your script is running the "gl" module, not "glob"? I am unable to replicate your problem on Ubuntu 23.10: the savebmp function works fine for me. I ran this script:
The Help/About menu item reports:
And the command line reports:
|
Hi, Thanks for your quick reply. Here is a generic example of a script we might use, which works fine for MRIcroGL_QT (MRIcroGL 1.2.20210317 QT5 x86-64 LLVM) on Ubuntu version:
Thanks, Bonnie. |
Bonnie,
I have not tried this in years, so your mileage may vary. Alternatively, I recommend the method suggested in the manual where you run a Python script from the command line using the Python of your current environment (with all its packages). Here is an example script that finds all the scans of a specific modality from a BIDS dataset and generates a bitmap image to ensure successful defacing:
|
Hi Chris, For example, glob.py isn't in that distribution, while pathlib.py is. However the pathlib dependencies are not. My hack (for ubuntu 22.04) was to create a minimal python3.7 environment in miniconda and sync the lib folder into I couldn't find anything in the sources indicating a correct way of extending the python installation during build time. Interested in hearing your advice on options. |
@richardbeare I am not a Python expert. I continue to use the methods I describe above. |
Happy to have more of a play - how did you decide on the original content of Resources/python37/ ? |
Hi,
Thank you for your software!
We are trying to update to MRIcroGL_QT (MRIcroGL 1.2.20220720c QT5 x86-64 LLVM) since updating to Ubuntu version:
Release 22.04.3 LTS (Jammy Jellyfish) 64-bit
Kernel Linux 6.2.0-37-generic x86_64
MATE 1.26.0
MRIcroGL_QT itself opens and works great, but running a python script for screenshots isn't working. The error in shown in the scripting part via the GUI is:
Any suggestions would be much appreciated.
Thanks very much,
Bonnie.
The text was updated successfully, but these errors were encountered: