mail[bug #22704] After setting the relax references via bmrb.software, saved states are no longer loadable (SyntaxError: unexpected EOF).


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

Header


Content

Posted by Edward d Auvergne on September 26, 2014 - 16:28:
URL:
  <http://gna.org/bugs/?22704>

                 Summary: After setting the relax references via
bmrb.software, saved states are no longer loadable (SyntaxError: unexpected
EOF).
                 Project: relax
            Submitted by: bugman
            Submitted on: Fri 26 Sep 2014 02:28:37 PM UTC
                Category: relax's source code
Specific analysis category: Model-free analysis
                Priority: 3 - Low
                Severity: 2 - Minor
                  Status: None
             Assigned to: bugman
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 3.3.0
         Discussion Lock: Any
        Operating System: All systems

    _______________________________________________________

Details:

The relax state files become corrupted after either using the bmrb.software
user function to select relax or the bmrb.display or bmrb.write user
functions.  The following user functions demonstrate the problem:

pipe.create('test', 'mf')
bmrb.software('relax')
state.save('test', force=True)
reset()
state.load('test')

When running this, the following error occurs:

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

relax> bmrb.software(name='relax', version=None, url=None, vendor_name=None,
cite_ids=None, tasks=None)

relax> state.save(state='test', dir=None, compress_type=1, force=True)
Opening the file 'test.bz2' for writing.

relax> reset()

relax> state.load(state='test', dir=None, force=False)
Opening the file 'test.bz2' for reading.
Traceback (most recent call last):
  File "/data/relax/branches/frame_order_cleanup/multi/processor.py", line
494, in run
    self.callback.init_master(self)
  File "/data/relax/branches/frame_order_cleanup/multi/__init__.py", line 318,
in default_init_master
    self.master.run()
  File "/data/relax/branches/frame_order_cleanup/relax.py", line 199, in run
    self.interpreter.run(self.script_file)
  File "/data/relax/branches/frame_order_cleanup/prompt/interpreter.py", line
279, in run
    return run_script(intro=self.__intro_string, local=locals(),
script_file=script_file, show_script=self.__show_script,
raise_relax_error=self.__raise_relax_error)
  File "/data/relax/branches/frame_order_cleanup/prompt/interpreter.py", line
585, in run_script
    return console.interact(intro, local, script_file,
show_script=show_script, raise_relax_error=raise_relax_error)
  File "/data/relax/branches/frame_order_cleanup/prompt/interpreter.py", line
484, in interact_script
    exec_script(script_file, local)
  File "/data/relax/branches/frame_order_cleanup/prompt/interpreter.py", line
363, in exec_script
    runpy.run_module(module, globals)
  File "/usr/lib64/python2.7/runpy.py", line 180, in run_module
    fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/data/relax/branches/frame_order_cleanup/aaa.py", line 5, in <module>
    state.load('test')
  File "/data/relax/branches/frame_order_cleanup/prompt/uf_objects.py", line
224, in __call__
    self._backend(*new_args, **uf_kargs)
  File "/data/relax/branches/frame_order_cleanup/pipe_control/state.py", line
98, in load_state
    ds.from_xml(file)
  File "/data/relax/branches/frame_order_cleanup/data_store/__init__.py", line
554, in from_xml
    self[pipe_name].from_xml(pipe_node, file_version=file_version, dir=dir)
  File
"/data/relax/branches/frame_order_cleanup/data_store/pipe_container.py", line
207, in from_xml
    self.exp_info.from_xml(exp_info_nodes[0], file_version=file_version)
  File "/data/relax/branches/frame_order_cleanup/data_store/data_classes.py",
line 96, in from_xml
    xml_to_object(super_node, self, file_version=file_version)
  File "/data/relax/branches/frame_order_cleanup/lib/xml.py", line 242, in
xml_to_object
    py_type = eval(py_type)
  File "<string>", line 0
    
   ^
SyntaxError: unexpected EOF while parsing





    _______________________________________________________

Reply to this item at:

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

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




Related Messages


Powered by MHonArc, Updated Fri Sep 26 19:00:19 2014