AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
September 15, 2017 10:24PM
I have a similar problem and wasn't able to access uber_subject.py with a similar error message. After reading the message board, I also tried adding /sw/bin in front of the PYTHONPATH; however, to no avail. Specifically, within my .cshrc, the command is "setenv PYTHONPATH /sw/bin/usr/local/lib/python2.7/site-packages". Below is the output from running the afni system check. Any help is greatly appreciated, Thank you!

-------------------------------- general ---------------------------------
architecture: 64bit
system: Darwin
release: 16.7.0
version: Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64
distribution: 10.12.6 x86_64
number of CPUs: 4
apparent login shell: tcsh
shell RC file: .cshrc (exists)

--------------------- AFNI and related program tests ---------------------
which afni : /Users/epongpipat/abin/afni
afni version : Precompiled binary macosx_10.7_Intel_64: Sep 12 2017
: AFNI_17.2.13
AFNI_version.txt : AFNI_17.2.13, macosx_10.7_Intel_64, Sep 12 2017
which python : /usr/bin/python
python version : 2.7.10
which R : /usr/local/bin/R
R version : R version 3.4.1 (2017-06-30) -- "Single Candle"
which tcsh : /bin/tcsh

instances of various programs found in PATH:
afni : 1 (/Users/epongpipat/abin/afni)
R : 1 (/Library/Frameworks/R.framework/Versions/3.4/Resources/bin/R)
python : 1 (/usr/bin/python)
python2 : 1 (/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7)
python3 : 1 (/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/bin/python3.6)


testing ability to start various programs...
afni : success
suma : success
3dSkullStrip : success
uber_subject.py : success
3dAllineate : success
3dRSFC : success
SurfMesh : success
3dClustSim : success

checking for R packages...
rPkgsInstall -pkgs ALL -check : success

checking for $HOME files...
.afnirc : found
.sumarc : found
.afni/help/all_progs.COMP : found

------------------------------ python libs -------------------------------
++ module 'PyQt4' found at /usr/local/lib/python2.7/site-packages/PyQt4
++ module loaded: PyQt4

** have PyQt4, but cannot load QtCore, QtGui; error is:

**************************************************
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name QtCore
**************************************************


-------------------------------- env vars --------------------------------
PATH = /usr/local/sbin:/usr/local/fsl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/epongpipat/abin:/Applications/MplusDemo

PYTHONPATH = /sw/bin/usr/local/lib/python2.7/site-packages

R_LIBS =
LD_LIBRARY_PATH =
DYLD_LIBRARY_PATH (sub-shell) =
DYLD_FALLBACK_LIBRARY_PATH (sub-shell) = /Users/epongpipat/abin

------------------------------ data checks -------------------------------
data dir : found AFNI_data6 under $HOME
top history: ...ickr]: added PPI/run.ppi.example.txt, ppi.sample.dir
data dir : found AFNI_demos under $HOME
top history: 26 Sep 2014 [ziad] : added Do_11 to FATCAT_DEMO
data dir : found suma_demo under $HOME
top history: .../SUMA_data/Build_tmp on Wed Aug 20 10:04:23 EDT 2014
data dir : found afni_handouts under $HOME
atlas : found TT_N27+tlrc under /Users/epongpipat/abin

------------------------------ OS specific -------------------------------
which brew : /usr/local/bin/brew
brew version : Homebrew 1.3.2

++ found PyQt4 under /usr/local/lib/python2.7/site-packages
++ found valid link /usr/local/lib/libgomp.1.dylib
to /usr/local/Cellar/gcc/6.1.0/lib/gcc/6/libgomp.1.dylib
++ found valid link /usr/local/lib/libglib-2.0.dylib
to ../Cellar/glib/2.48.1/lib/libglib-2.0.dylib

========================= summary, please fix: =========================
* check for partial install of PyQt4
* consider adding /usr/local/lib/python2.7/site-packages to PYTHONPATH
Subject Author Posted

fail to run uber_subject.py- fail to import PyQt4.QtGui

Jinxia Yao August 27, 2017 12:22PM

Re: fail to run uber_subject.py- fail to import PyQt4.QtGui

rick reynolds August 27, 2017 09:02PM

Re: fail to run uber_subject.py- fail to import PyQt4.QtGui

Ekarin Pongpipat September 15, 2017 10:24PM

Re: fail to run uber_subject.py- fail to import PyQt4.QtGui

rick reynolds September 18, 2017 01:01PM

Re: fail to run uber_subject.py- fail to import PyQt4.QtGui

Ekarin Pongpipat September 22, 2017 01:09AM

Re: fail to run uber_subject.py- fail to import PyQt4.QtGui

rick reynolds September 22, 2017 07:07AM