I’m not an expert on this but just looking at the ARIA code, it seems that that environment variable has to exist, but it’s not used (except to check that it exists). I would have thought that they would then add the appropriate python directory to sys.path, but I can’t see that happening. So you could in addition try setting in the shell (assuming you are using Analysis 2.4.x, some x), if PYTHONPATH already exists in the shell:
setenv PYTHONPATH $CCPNMR_TOP_DIR/ccpnmr2.4/python:$PYTHONPATH
and if PYTHONPATH does not exist:
setenv PYTHONPATH $CCPNMR_TOP_DIR/ccpnmr2.4/python
(If you try the first setenv above, it will likely complain if PYTHONPATH does not exist.)
Wayne
> On 2 Sep 2016, at 10:07, Edith Gincel <[log in to unmask]> wrote:
>
> Dear all
>
> I have the same problem as in https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=CCPNMR;d49d44b1.1203
>
> Exception in Tkinter callback
>> Traceback (most recent call last):
>> File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1410, in __call__
>> return self.func(*args)
>> File "/data/soft/aria2.3/src/py/aria/gui/panels.py", line 990, in
>> select_shifts
>> from ccpnGui import gui_select_shiftList
>> File "/data/soft/aria2.3/src/py/aria/gui/ccpnGui.py", line 1, in <module>
>> from ccpnmr.format.general.userInteraction import setupMultiDialog
>> ImportError: No module named ccpnmr.format.general.userInteraction
>
>
> I do have the setenv CCPNMR_TOP_DIR "~/Desktop/logiciels/ccpnmr"
>
> but it doesn't help...
>
> I had to change the system to Centos7 (it worked perfectly in centos 6.7)
>
> Does someone have an idea why it doesn't work ?
>
> Thank you for your help.
> edith
|