mail[bug #22798] Failure of relax to start due to an OrderedDict ImportError on Python 2.6 and earlier.


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

Header


Content

Posted by Edward d Auvergne on October 13, 2014 - 12:10:
URL:
  <http://gna.org/bugs/?22798>

                 Summary: Failure of relax to start due to an OrderedDict
ImportError on Python 2.6 and earlier.
                 Project: relax
            Submitted by: bugman
            Submitted on: Mon 13 Oct 2014 10:10:53 AM UTC
                Category: relax's source code
Specific analysis category: None
                Priority: 7 - High
                Severity: 5 - Blocker
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 3.3.1
         Discussion Lock: Any
        Operating System: All systems

    _______________________________________________________

Details:

The recently released relax 3.3.1 fails to start when using Python 2.6 or
ealier.  The problem is that the Python 'collections' package OrderedDict
object was only introduced in Python 2.7
(https://docs.python.org/2/library/collections.html).  The failure point is in
the relax_disp_repeat_cpmg auto-analysis.  An alternative solution is
required, as the minimum Python version is 2.5.

The failure looks like:

[edward@localhost 3.3.1]$ /data/python/bin/python2.6 relax --gui-tests
User_functions
Traceback (most recent call last):
  File "/data/relax/tags/3.3.1/multi/processor.py", line 494, in run
    self.callback.init_master(self)
  File "/data/relax/tags/3.3.1/multi/__init__.py", line 318, in
default_init_master
    self.master.run()
  File "/data/relax/tags/3.3.1/relax.py", line 256, in run
    from test_suite.test_suite_runner import Test_suite_runner
  File "/data/relax/tags/3.3.1/test_suite/test_suite_runner.py", line 37, in
<module>
    from test_suite.gui_tests import GUI_test_runner
  File "/data/relax/tags/3.3.1/test_suite/gui_tests/__init__.py", line 34, in
<module>
    from test_suite.gui_tests.bmrb import Bmrb
  File "/data/relax/tags/3.3.1/test_suite/gui_tests/bmrb.py", line 31, in
<module>
    from test_suite import system_tests
  File "/data/relax/tags/3.3.1/test_suite/system_tests/__init__.py", line 61,
in <module>
    from test_suite.system_tests.relax_disp import Relax_disp
  File "/data/relax/tags/3.3.1/test_suite/system_tests/relax_disp.py", line
35, in <module>
    from auto_analyses.relax_disp_repeat_cpmg import DIC_KEY_FORMAT,
Relax_disp_rep
  File "/data/relax/tags/3.3.1/auto_analyses/relax_disp_repeat_cpmg.py", line
33, in <module>
    from collections import OrderedDict
ImportError: cannot import name OrderedDict
[edward@localhost 3.3.1]$




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22798>

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




Related Messages


Powered by MHonArc, Updated Mon Oct 13 14:00:11 2014