mailRe: ImportError: No module named platform, a setup problem?


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

Header


Content

Posted by Tyler Reddy on October 16, 2008 - 14:19:
Is it possible to output all of the text from the test-suite to a text file to
make it easier to search? I've tried the standard > test.out type command and
only the final portion of the test is entered to the file.

Also, this seems kind of bad:

###################################
# Summary of the relax test suite #
###################################

   System/functional tests
............................................................. [ Failed ]
   Unit tests
.......................................................................... [ OK
]
   Synopsis
............................................................................ [
Failed ]



Quoting Edward d'Auvergne <edward@xxxxxxxxxxxxx>:

Hi,

Thanks for the description of how to get this running on the Mac.  If
anyone else knows how to get the python development files,
specifically Python.h, properly installed and working on Mac OS X,
that information would be much appreciated.  It is quite easy to test
if relax will work with the compiled C modules, well only for the
1.3.x relax versions.  Just type:

$ relax --test-suite

Note that because the 1.3 line is a development line, not all tests
will pass.  But if there is a test failure mentioning the C modules,
or if the test named "Test the relaxation curve fitting C modules"
fails - then you know that you have a problem.

Cheers,

Edward


On Thu, Oct 16, 2008 at 1:44 AM, Tyler Reddy <TREDDY@xxxxxx> wrote:
For the mac installation I'd suggest just doing it from the source file for
relax and installing the various dependencies outlined for general use of
relax
in the manual.

The only part that's challenging is the compilation for the curve fitting
feature. You can get a C-compiler from Apple as part of their developer
tools
package (just make sure you get the package that matches your version of Mac
OS). You have to register on the apple developer site, but it's
short/free/simple. Then you have the standard 'gcc' compiler.

The tricky part is getting the correct Python.h header file for compilation.
I've compiled 4 or 5 versions of relax (on OS 10.4) using the Python.h
header
file that came with Sparky, but as Edward suggested in his responses to the
2nd
thread cited in his message, it would be better to have the 'correct' header
file from an actual python development package. Believe it or not, when I
put
one of those 'development' header files in the path, the compilation doesn't
work, only with the Sparky header... So I've been kind of blindly accepting
that for now.

Still, relax seems to run just fine on the mac.

Quoting Edward d'Auvergne <edward.dauvergne@xxxxxxxxx>:

Hi,

Welcome to the relax-users mailing list.  The problem you have
encountered is because relax only runs on Python versions 2.4 and
above.  Python 2.3 may work, although I just ran relax with version
and the test suite failed - 23 failures out of 63 system tests, and
the unit test won't even run.  So I would strongly recommend using 2.4
and above.  As for using relax on Mac OS X, that should be no problem
at all.  If you would like to use relaxation curve fitting to
determine the R1 and R2 relaxation rates, then you'll need to install
a number of development packages and compile the sources.  This is
described here:
https://mail.gna.org/public/relax-users/2008-08/msg00003.html.  It
would be very useful to read the whole thread starting at
https://mail.gna.org/public/relax-users/2008-10/msg00000.html as well.
Tyler, or anyone else, did you have any success with relax on your
Mac?

Regards,

Edward


On Wed, Oct 15, 2008 at 3:50 PM, Guang-Yao Li <gyli@xxxxxxxxxxxxxx> wrote:

Hi Ed,

My linux computer is running Fedora core 6. The available python is
python2.2 together with ccpnmr.

After I uncompressed the precompiled relax-1.3.2.GUN-Linux.i686.tar.bz2,
I
simply tried relax and got the following message.

Is it a python issue or anything else?



Traceback (most recent call last):

 File "relax", line 38, in ?

   import dep_check

 File "/users/ikuradata/gyli/linux/progs/relax-1.3.2/dep_check.py", line
30, in ?

   import platform

ImportError: No module named platform



By the way, are there any successful stories about installing relax on
Mac?
I am more interested in run it on my macbook than try it under the
control
of my IT people.



Thank you



---------------------

Guang-Yao Li, Ph.D.

Toronto Medical Discovery Tower

4th Floor, Room 4-902

101 College Street

Toronto, Canada, M5G 1L7



_______________________________________________
relax (http://nmr-relax.com)

This is the relax-users mailing list
relax-users@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-users














Related Messages


Powered by MHonArc, Updated Thu Oct 16 14:40:28 2008