mailRe: setting up relax on mac


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on August 09, 2013 - 09:23:
Hi,

I think we are getting closer.  It's a bit frustrating though.  You
can find out where numpy is installed by typing:

% locate python | grep '\/python$\|\/python...$' | grep bin | xargs -I
% echo % -c "\"import numpy; print(numpy.__version__)\""

The copy and paste the output of this command into the terminal.  It
should give a good summary.  What was the full file name of the numpy
DMG file you tried to install?  And what was the file name of the
Python DMG file?  Could you run the following:

% /usr/local/bin/python
import numpy; print(numpy.__version__)
import scipy; print(scipy.__version__)
import wx; print(wx.__version__)

Hopefully one of these will work.  Oh, also make sue that the Python
version printed out matches the DMG file you recently downloaded
exactly, just in case /usr/local/bin/python is a symbolic link to a
different Python version :S  Maybe also type:

% ls -alh /usr/local/bin/python

and make sure that the date on that symlink is less than a day old,
and that it points to
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7.  If
none of this works, then there is only one choice - compile from
source:

1) Download 
http://sourceforge.net/projects/numpy/files/NumPy/1.7.1/numpy-1.7.1.tar.gz/download.
2) Run:

% tar xvf numpy-1.7.1.tar.gz
% cd numpy-1.7.1
% sudo /usr/local/bin/python setup.py install

3) Cross fingers.

Regards,

Edward


On 9 August 2013 07:08, Paul Schanda <paul.schanda@xxxxxx> wrote:
I may get a bit closer, but I am not quite there yet.
I did install numpy via the dmg file, as described in
http://wiki.nmr-relax.com/Installation_mac

Nonetheless, I don't know where this numpy version went, because apparently
it is not seen when running scons.


[new-host-2:~/relax/relax_disp] paul% sudo /usr/libexec/locate.updatedb

dyld: DYLD_ environment variables being ignored because main executable
(/usr/bin/sudo) is setuid or setgid

Password:

So that works fine. However, scons does not see numpy... :

[new-host-2:~/relax/relax_disp] paul% /usr/local/bin/python
/usr/local/bin/scons

scons: Reading SConscript files ...


The dependency 'numpy' has not been installed.



I still have this pretty long list of python versions sitting around. I
don't know how to find out where the different numpy's sit, though.

[new-host-2:~/relax/relax_disp] paul% locate python | grep
'\/python$\|\/python2..$' | grep bin


/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

/Library/Frameworks/Python.framework/Versions/7.3/bin/python2.7

/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5

/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6

/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

/Users/paul/programmdownloads/ccpn2.2/ccpnmr/python2.6/bin/python2.6

/Users/paul/programmdownloads/python_virtualenv/my_new_env/bin/python2.7

/opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

/opt/local/bin/python2.4

/opt/local/bin/python2.5

/opt/local/bin/python2.6

/opt/local/bin/python2.7

/usr/bin/python2.5

/usr/bin/python2.6

/usr/bin/python2.7

/usr/local/bin/python2.7


paul





On 09.08.13 01:05, Edward d'Auvergne wrote:

Also, for the Python version, can you update your locate database with
"sudo /usr/libexec/locate.updatedb"?  I'm not sure if the new Python
is in the list.  Some more below:


This all works fine:

cd /usr/local/
svn co svn://svn.gna.org/svn/relax/branches/relax_disp relax_disp
cd relax_disp

But when I type

  scons


I get:

scons: Permission denied.


Try instead as a normal user:

$ cd ~
$ mkdir relax
$ cd relax
$ svn co http://svn.gna.org/svn/relax/branches/relax_disp
$ cd relax_disp
$ /usr/local/bin/python /usr/local/bin/scons

Maybe this will work better.


I try the following:

[new-host-2:/usr/local] paul% relax -g

The dependency 'numpy' has not been installed.

Try instead:

% /usr/local/bin/python ~/relax/relax_disp/relax -g

It'll be interesting to see if these commands also give problems.

Regards,

Edward





Related Messages


Powered by MHonArc, Updated Fri Aug 09 10:40:08 2013