Cannot open uber_subject.py

Hi experts,

I cannot open uber_subject.py GUI on MacOS 10.14.6. Could you please help to have a look? When I try


uber_subject.py

, it says:

[quote="**** failed to import PyQt4.QtGui ****

PyQt4 must be installed to run the uber_subject.py GUI
→ see the output of: uber_subject.py -help_install"]
[/quote]

Then I tried


uber_subject.py -help_install

and


brew install pyqt

The error info:
[quote=“Error: Failure while executing; cp -pR /private/tmp/d20220202-4918-16x10k4/pkg-config/. /usr/local/Cellar/pkg-config exited with 1. Here’s the output:
cp: /usr/local/Cellar/pkg-config/./0.29.2_3: Permission denied
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3: Permission denied
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/INSTALL_RECEIPT.json: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/bin: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/bin/pkg-config: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/bin: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/bin: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/.brew: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew/pkg-config.rb: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/.brew: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/.brew: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/ChangeLog: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/AUTHORS: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/README: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/COPYING: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/NEWS: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/man: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/man/man1: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1/pkg-config.1: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/man/man1: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share/man/man1: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/man: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share/man: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/aclocal: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal/pkg.m4: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/aclocal: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share/aclocal: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/doc: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/doc/pkg-config: unable to copy extended attributes to /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config/pkg-config-guide.html: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/doc/pkg-config: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc/pkg-config: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share/doc: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share/doc: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3/share: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3/share: No such file or directory
cp: utimes: /usr/local/Cellar/pkg-config/./0.29.2_3: No such file or directory
cp: chown: /usr/local/Cellar/pkg-config/./0.29.2_3: No such file or directory
cp: chmod: /usr/local/Cellar/pkg-config/./0.29.2_3: No such file or directory
cp: chflags: /usr/local/Cellar/pkg-config/./0.29.2_3: No such file or directory
cp: /private/tmp/d20220202-4918-16x10k4/pkg-config/./0.29.2_3: unable to copy ACL to /usr/local/Cellar/pkg-config/./0.29.2_3: Permission denied
cp: utimes: /usr/local/Cellar/pkg-config/.: Operation not permitted”]
[/quote]

This is a brew rather than AFNI problem, but it looks like your brew installation set the owner of all of your homebrew configurations to root, rather than to your user. If you run

ls -l /usr/local/Cellar/pkg-config/

I suspect it will show the owner as “root,” rather than your username, OR that your permissions lack read permission for you. What’s the output of that ls command?

The output:
[quote=“total 0
drwxr-xr-x 11 IRM2 admin 352 27 Apr 2017 0.29.2”]
[/quote]

Thank you!

Is IRM2 your username? Those permissions look correct. If you’re not sure, you can run
echo $USER

No, IRM2 is another user of of this computer. admin is the admin user. My user name is xiyuezh.

Okay, you can’t use brew in this configuration because the other user is the owner of it. You will need to install brew into your home directory or some other location that you have permission to access in order to probably use it. Brew should support this by asking for the location you would like to install into when you begin the installation process (choose maybe ~/homebrew).