mailRe: [task #7581] Mac OS X support


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

Header


Content

Posted by Edward d'Auvergne on May 03, 2012 - 14:47:
Hi Jack,

I have been playing with the fink files you attached to the task (http://gna.org/task/?7581).  I now know the problem with the md5sums I was having before.  For some reason when downloading the files from my email, the Mac OS end of line characters '\r' were being converted to DOS end of line characters '\r\n'!  Now with the proper characters, the md5sum is fine and I can install relax via fink on a Mac with:

$ fink -m install relax-py27

I have encountered the same problem you reported in private:


./relax --system-tests;./relax --unit-tests;exit 0
Echoing of user function calls has been enabled.




#############################
# System / functional tests #
#############################


........................................................................................................................................F................................................................................................
======================================================================
FAIL: test_write_results (test_suite.system_tests.model_free.Mf)
Writing of model-free results using the user function results.write().
----------------------------------------------------------------------

relax> pipe.create(pipe_name='mf', pipe_type='mf')

relax> results.read(file='final_results_trunc_1.2', dir='/sw/src/fink.build/relax-py27-1.3.15-1/relax-1.3.15/test_suite/shared_data/model_free/OMP')
Opening the file '/sw/src/fink.build/relax-py27-1.3.15-1/relax-1.3.15/test_suite/shared_data/model_free/OMP/final_results_trunc_1.2.bz2' for reading.
relax 1.2 model-free results file.

Generating the sequence.

Setting the diffusion tensor.
Diffusion type: prolate
RelaxWarning: The PDB file 1F35_H.pdb cannot be found, no structures will be loaded.

Loading simulations.
sim_0
sim_1
sim_2

relax> results.write(file=<relax_io.DummyFileObject instance at 0x107b46cf8>, dir='/sw/src/fink.build/relax-py27-1.3.15-1/relax-1.3.15/test_suite/shared_data/model_free/OMP', compress_type=1, force=False)
Opening the file '/sw/src/fink.build/relax-py27-1.3.15-1/relax-1.3.15/test_suite/shared_data/model_free/OMP/final_results_trunc_1.3_new.bz2' for reading.
Traceback (most recent call last):
 File "/sw/src/fink.build/relax-py27-1.3.15-1/relax-1.3.15/test_suite/system_tests/model_free.py", line 2532, in test_write_results
   self.assertEqual(test_line, true_line)
AssertionError: '            <frq>\n' != "            <frq>{'R2_600': 600000000.0, 'R1_600': 600000000.0, 'R2_800': 800000000.0, 'R1_800': 800000000.0, 'NOE_800': 800000000.0, 'NOE_600': 600000000.0}</frq>\n"

----------------------------------------------------------------------
Ran 233 tests in 357.044s

FAILED (failures=1)




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


# Optional packages/modules
###########################

No tests skipped due to missing modules.

# Synopsis
##########

System/functional tests ......................................... [ Failed ]



This was quite difficult in tracking down, but the problem lies in fink itself.  There is a package called PyXML which is a dependency of some package relax-py27 pulls in, though I can't find the offending package to check if it really is a dependency.  But the problem is two fold.  First is that this software is very old, the newest release of 0.8.4 was from 2004 - it is a very dead project.  The second problem is that this overwrites the inbuilt Python XML module.  Now that the inbuilt module is far more advanced, this package causes big problems.  As a work around, I have added code to relax to detect which version of the XML library is being used (inbuilt or depreciated ancient junk), and relax will then assume the correct XML formatting of results and save files in the test suite.  Therefore the newest repository code should just work.  I will therefore probably release relax 1.3.16 soon with this minor fix.

Cheers,

Edward





On 2 May 2012 19:38, anonymous <NO-REPLY.INVALID-ADDRESS@xxxxxxx> wrote:
Additional Item Attachment, task #7581 (project relax):

File name: relax-py.info                  Size:2 KB
File name: relax-py.patch                 Size:2 KB


   _______________________________________________________

Reply to this item at:

 <http://gna.org/task/?7581>

_______________________________________________
 Message sent via/by Gna!
 http://gna.org/


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

This is the relax-devel mailing list
relax-devel@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-devel


Related Messages


Powered by MHonArc, Updated Thu May 03 15:20:08 2012