Hello,
Looking at the Aria code it looks like it wants an environment variable
calld CCPNMR_TOP_DIR set up in the environment. But I can't see that it
actually uses this variable. And so when it comes to importing the CCPN
libraries I think it is just using the globally set PYTHONPATH.
Now in (at least early versions of) v1 of Analysis these variables were
generally set globally. But in v2 they are set in the bin/ scripts so
never are set globally. So my first guess is that your global PYTHONPATH
(e.g. as set in your .cshrc file) points to v1 instead of v2.
Wayne
On Fri, 26 Mar 2010, Pryank Patel wrote:
>
> Hi all,
> First of all, I would like to apologise for the very long email, and posting
> this message to both the CCPN and the Aria mailing lists, but I thought this
> would be relevant to both groups and there may be people out there who have
> come across the same problem.
>
> I am running the latest version of analysis, and have recently downloaded the
> latest version of Aria 2.3.1. As I understand it (and correct me if I'm
> wrong), Aria 2.3.1 is able to read v2 CCPN Analysis project directories.
>
> I should say that in my CCPN installation directory (CCPNMR_TOP_DIR) I have
> both version 1 and version 2 of CCPN Analysis installed. And, over time, by
> updating within Analysis, various subdirectories of v2 Analysis are present
> (ccpnmr2.0, ccpnmr2.0_2.0.5, ccpnmr2.0_2.0.6, ccpnmr2.1, etc etc). But the
> latest version is always loaded and used so I don't see this as a problem.
>
> My first question is this: does the presence of v1 of CCPN Analysis in
> $CCPNMR_TOP_DIR affecting the check.py script in Aria 2.3.1? I believe it
> does, but I wanted to check before I start moving/deleting my v1
> installation, which I used to use for very old projects, and now no longer
> do. When I run this script, the following appears in the shell window:
>
>
> pryank@pc197016:~/programs/aria2.3> python check.py
> Checking Python environment...
>
> Python version ok.
> Numpy module ok (numpy)
> Tkinter and Tix modules...
> Tkinter imported (Tk version 8.500)
> Tix imported.
>
> CCPN distribution: failed.
> CCPN version >= 2.0 required (current version 1.1.a3).
> /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py:127:
> RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
> set_interactive(1)
> Matplotlib module (optional) ok.
>
>
> As you can see, it only recognises the existance of version 1.1.a3. But does
> this affect the functionality of Aria if it is only recognising a v1 CCPN
> distribution?
>
> My next question is how much of a v2 CCPN project is Aria able to load? It
> looks like importing a CCPN project is done from the 'CCPN data model' node
> in the Project tree. There is an input box labelled 'CCPN Project Folder' but
> when I click browse it is looking for a *xml file, as used to be the case in
> older Aria versions which would recognise v1 CCPN project xml files. If I try
> and enter a directory through the browse box, I get an error message saying
> 'Need to enter file', so I input the directory path manually. But it does not
> seem to be able to recognise data when I go to, for example, the 'Spectra' or
> 'Ambiguous Distances' nodes.
>
> So, does the fact that Aria 2.3.1 only recognises the v1 CCPN distribution
> affect whether it can read CCPN v2 projects? Or is there something else I am
> doing fundamentally wrong?
>
> Any ideas are much appreciated, and I thank you in advance for your input.
> Best wishes,
>
> Pryank
>
>
>
>
>
>
|