help > Template scripts are not working in latest version (OSX)
Showing 1-14 of 14 posts
Display:
Results per page:
Jan 11, 2022  03:01 PM | Sam Knight - KCL
Template scripts are not working in latest version (OSX)
It says it cannot find Python home: /System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7.dylib/python37

Previous version scripts work fine. Any idea how I could fix this?
Jan 11, 2022  04:01 PM | Chris Rorden
RE: Template scripts are not working in latest version (OSX)
1. Can you provide the text when you choose MRIcroGL/About

1.2.20211007 Cocoa ARM64 LLVM
Author: Chris Rorden
License: BSD 2-Clause
Version 11.5.2 (Build 20G95) MacBookAir10,1
Retina Scale: 1
Apple; OpenGL= 2.1 Metal - 71.7.1; Shader=1.20
2.1 Max 3D texture: 2048
Current texture: 768×768×34 76mb
2. Can you paste the output of running "sw_vers" from the terminal command line?
sw_vers
ProductName: macOS
ProductVersion: 11.5.2
BuildVersion: 20G95
3. If you are using a version prior to v1.2.20211006, does downloading and installing the dmg for that version resolve your issue?
https://github.com/rordenlab/MRIcroGL/re...
Jan 15, 2022  03:01 AM | Chuanji Gao
RE: Template scripts are not working in latest version (OSX)
Hi Chris,

Hope you are doing well.
I had the same issue when using the latest version: 1.2.20211006 on my mac big Sur 11.5.2.
"Unable to find Python home: /System/Library/Frameworks/Python.framework/Versions/Current/lib/libpython2.7.dylib/python37"

1. Can you provide the text when you choose MRIcroGL/About
1.2.20211006 Cocoa x86-64 LLVM
Author: Chris Rorden
License: BSD 2-Clause
Version 11.5.2 (Build 20G95) MacBookPro16,1
Retina Scale: 2
ATI Technologies Inc.; OpenGL= 2.1 ATI-4.6.20; Shader=1.20
2.1 Max 3D texture: 16384
Current texture: 207×256×215 43mb

2. Can you paste the output of running "sw_vers" from the terminal command line?
ProductName: macOS
ProductVersion: 11.5.2
BuildVersion: 20G95

One thing that may be related, when I type "which python" in terminal, i got
which python
/Users/u250167/opt/anaconda3/bin/python

Could you give me some advice on this? Thanks
Jan 15, 2022  03:01 PM | Sam Knight - KCL
RE: Template scripts are not working in latest version (OSX)
Originally posted by Chris Rorden:
1. Can you provide the text when you choose MRIcroGL/About

1.2.20211007 Cocoa ARM64 LLVM
Author: Chris Rorden
License: BSD 2-Clause
Version 11.5.2 (Build 20G95) MacBookAir10,1
Retina Scale: 1
Apple; OpenGL= 2.1 Metal - 71.7.1; Shader=1.20
2.1 Max 3D texture: 2048
Current texture: 768×768×34 76mb
2. Can you paste the output of running "sw_vers" from the terminal command line?
sw_vers
ProductName: macOS
ProductVersion: 11.5.2
BuildVersion: 20G95
3. If you are using a version prior to v1.2.20211006, does downloading and installing the dmg for that version resolve your issue?
https://github.com/rordenlab/MRIcroGL/re...
Hi Chris,

1.2.20211006 Cocoa x86-64 LLVM
Author: Chris Rorden
License: BSD 2-Clause
Version 12.1 (Build 21C52) MacBookPro14,1
Retina Scale: 2
Intel Inc.; OpenGL= 2.1 INTEL-18.3.5; Shader=1.20
2.1 Max 3D texture: 2048
Current texture: 207×256×215 43mb


2. 
ProductName: macOS
ProductVersion: 12.1
BuildVersion: 21C52


3. The previous version (v1.2.20210824) works fine. I'll continue to use this version for now. 
Jan 16, 2022  12:01 PM | Jan Sanda
RE: Template scripts are not working in latest version (OSX)
Originally posted by Sam Knight:
It says it cannot find Python home: /System/Library/Frameworks/Python.framework/Versions/Current/lib/python2.7.dylib/python37

Previous version scripts work fine. Any idea how I could fix this?
The same problem. Reinstallation didn't work for me :(
Jan 16, 2022  04:01 PM | Chris Rorden
RE: Template scripts are not working in latest version (OSX)
I have created a new issue
  https://github.com/rordenlab/MRIcroGL/issues/35
Unfortunately, I can not replicate this issue on my system. Can you try these two methods in sequence to see if they resolve your issue:

1. Install the v1.2.20211007 .dmg 
 
https://github.com/rordenlab/MRIcroGL/re...

2. If this fails, does launching the application from the terminal command line with the "-r" argument resolve the issue? This varies depending on your installation location, but for most users it is:

/Applications/MRIcroGL.app/Contents/MacOS/MRIcroGL -r
Jan 17, 2022  12:01 AM | Chuanji Gao
RE: Template scripts are not working in latest version (OSX)
Hi Chris, 

I have installed the version (v1.2.20211007) that you pointed to and it works perfectly now!
Thanks!

Best,
Chuanji
Jan 17, 2022  09:01 AM | Sam Knight - KCL
RE: Template scripts are not working in latest version (OSX)
Hi Chris,

Thanks for your help. v1.2.20211007 seems to work fine.

Best wishes,

Sam
Jan 17, 2022  02:01 PM | Chris Rorden
RE: Template scripts are not working in latest version (OSX)
OK, I have upgraded the macOS package hosted on NITRC to include this fix. This support will also be part fo future releases.
Jul 11, 2022  06:07 PM | Tanya Wen
RE: Template scripts are not working in latest version (OSX)
Hi Chris,

I seem to be having a similar issue, but with Linux (Ubuntu 18.04.6 LTS), when trying to use the template scripts.

The MRIcroGL version is 1.2.20211006 GTK2 x86-64 LLVM.

It says "Unable to find Python library". If I press OK, there's another message that shows up on the GUI saying "Unable to start PythonBridge".

I've attached a screenshot of the error. Could you please help with this?

Thank you!
Jul 13, 2022  11:07 AM | Chris Rorden
RE: Template scripts are not working in latest version (OSX)
Hello,
 I only have computers with Ubuntu 20.04 and 22.04. In general, Debian distributions like Ubuntu get frozen at the date of their release, so it can be hard to support modern Python on older releases.

One option would be to try:

apt install libpython3-dev

You could also try the Linux version from 7-October-2021 that includes Python
  https://github.com/rordenlab/MRIcroGL/re...

Tell me if either of these work.

Perhaps other users have experience with these older distributions.
Jul 13, 2022  07:07 PM | Tanya Wen
RE: Template scripts are not working in latest version (OSX)
Thanks for your reply Chris. Unfortunately neither solution worked.

My Python is up to date. I ran sudo apt install libpython3-dev and got:
libpython3-dev is already the newest version (3.6.7-1~18.04).

I also downloaded the 7-October-2021 version that includes Python, but the GUI wouldn't launch.

I suppose the simplest solution might be for me to update my Ubuntu to a newer version.
Aug 10, 2022  11:08 AM | Chris Rorden
RE: Template scripts are not working in latest version (OSX)
Hello
Can you try teh MRIcroGL_linux1804.zip release from here:
  https://github.com/rordenlab/MRIcroGL/releases/tag/v1.2.20220720
the scripting appears to work on Ubuntu 18.04
  https://github.com/rordenlab/MRIcroGL/issues/43
if this works for you, I will upload the files from Github to NITRC for a general release.
Aug 10, 2022  11:08 PM | Tanya Wen
RE: Template scripts are not working in latest version (OSX)
Hi Chris, the MRIcroGL_linux1804.zip scripting works on my Ubuntu 18.04.

Thanks so much for your help and for your continuous development of MRIcroGL!