Hi all,
Thanks for your help with this. Compiling analysis from source has solved the issue. Thanks Brian!
Karthik
________________________________________
From: CcpNmr software mailing list [[log in to unmask]] on behalf of Benjamin Bardiaux [[log in to unmask]]
Sent: 18 January 2016 16:50
To: [log in to unmask]
Subject: Re: cannot import numpy
Hi,
not convinced that it's related to ARIA (apart from the fact that ARIA
check for the import of numpy and releases an error if it's not found).
If the "import numpy" fails at the PythonCcpn prompt
(ccpnmr/bin/pythonCcpn), then it's an analysis/numpy issue (maybe with
the "import ." syntax)
Benjamin
On 1/16/16 9:24 AM, Wayne Boucher wrote:
> Hello,
>
> This has been reported a few times. The import works ok from inside Analysis if you do not open Aria, so there must be something that Aria adds to the path which then knackers numpy. I guess you could try importing numpy (at the Python prompt) before opening up Aria. (But something else might be knackered as well.)
>
> Wayne
>
>> On 15 Jan 2016, at 17:26, Karthik Rajasekar <[log in to unmask]> wrote:
>>
>> Hi all,
>> I have installed aria and ccpnmr on a fedora machine. Analysis crashes when I open aria. Error says cannot find numpy - but I am able to import it in python - see below. Could anyone help please?
>>
>> [karthik@bioch ~]$ python
>> Python 2.7.10 (default, Sep 8 2015, 17:20:17)
>> [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import numpy
>>>>> import Numeric
>>>>> import scipy
>>
>> all is fine!
>> however in analysis
>>
>>>>> import numpy
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> File "/home/karthik/Progs/ccpnmr/python2.7/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
>> from . import add_newdocs
>> File "/home/karthik/Progs/ccpnmr/python2.7/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
>> from numpy.lib import add_newdoc
>> File "/home/karthik/Progs/ccpnmr/python2.7/lib/python2.7/site-packages/numpy/lib/__init__.py", line 17, in <module>
>> from numpy.lib import scimath as emath
>> ImportError: cannot import name scimath
>>
>>
>> Many thanks,
>> Karthik
--
---------------------------------------------
Dr Benjamin Bardiaux [log in to unmask]
Unité de Bioinformatique Structurale
CNRS UMR3528 - Institut Pasteur
25,28 rue du Docteur Roux 75015 Paris, France
---------------------------------------------
|