bugrelax - Bugs: bug #21704, Failure of the GUI analyses when...

 
 
Show feedback again

bug #21704: Failure of the GUI analyses when the results directory uses the home directory '~' character.

Submitted by:  Edward d Auvergne <bugman>
Submitted on:  Fri 21 Feb 2014 07:12:05 PM UTC  
 
Category: GUISpecific analysis category: None
Priority: 5 - NormalSeverity: 3 - Normal
Status: FixedAssigned to: Edward d Auvergne <bugman>
Originator Name: Open/Closed: Closed
Release: 3.1.5Operating System: All systems

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 21 Feb 2014 07:27:16 PM UTC, comment #4:

As the commit message says, this problem may resurface in many different parts of relax!

Edward d Auvergne <bugman>
Project AdministratorIn charge of this item.
Fri 21 Feb 2014 07:26:45 PM UTC, SVN revision 22248:

Merged revisions 22247 via svnmerge from
svn+ssh://bugman@svn.gna.org/svn/relax/trunk

........
r22247 | bugman | 2014-02-21 20:25:28 +0100 (Fri, 21 Feb 2014) | 9 lines

Fix for bug #21704, the failure of the GUI analyses when the home directory '~' character is used.

The bug is located at https://gna.org/bugs/?21704.

The problem is located in many parts of the program, and other problematic areas may still be
present. In all cases where the directory or file is accessed, the os.path.expanduser() function
must be called.
........

(Browse SVN revision 22248)

Edward d Auvergne <bugman>
Project AdministratorIn charge of this item.
Fri 21 Feb 2014 07:25:28 PM UTC, SVN revision 22247:

Fix for bug #21704, the failure of the GUI analyses when the home directory '~' character is used.

The bug is located at https://gna.org/bugs/?21704.

The problem is located in many parts of the program, and other problematic areas may still be
present. In all cases where the directory or file is accessed, the os.path.expanduser() function
must be called.

(Browse SVN revision 22247)

Edward d Auvergne <bugman>
Project AdministratorIn charge of this item.
Fri 21 Feb 2014 07:14:51 PM UTC, comment #1:

A slightly different error message:

relax> relax_disp.plot_disp_curves(dir='~/tmp/dispersion/non_clustered/R2eff', num_points=1000, extend=500.0, force=True)
Opening the file '/home/edward/tmp/dispersion/non_clustered/R2eff/disp_1_N.agr' for writing.
Exception raised in thread.

Traceback (most recent call last):
File "/data/relax/relax-trunk/gui/analyses/execute.py", line 87, in run
self.run_analysis()
File "/data/relax/relax-trunk/gui/analyses/auto_relax_disp.py", line 698, in run_analysis
Relax_disp(pipe_name=self.data.pipe_name, pipe_bundle=self.data.pipe_bundle, results_dir=self.data.save_dir, models=self.data.models, grid_inc=self.data.inc, mc_sim_num=self.data.mc_sim_num, pre_run_dir=self.data.pre_run_dir, mc_sim_all_models=self.data.mc_sim_all_models, insignificance=self.data.insignificance, numeric_only=self.data.numeric_only)
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 116, in _init_
self.run()
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 454, in run
self.write_results(path=path, model=model)
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 501, in write_results
self.interpreter.relax_disp.plot_disp_curves(dir=path, force=True)
File "/data/relax/relax-trunk/prompt/uf_objects.py", line 221, in _call_
self._backend(*new_args, **uf_kargs)
File "/data/relax/relax-trunk/specific_analyses/relax_disp/disp_data.py", line 1422, in plot_disp_curves
file = open_write_file(file_name, dir, force)
File "/data/relax/relax-trunk/lib/io.py", line 479, in open_write_file
raise RelaxError("Cannot open the file " + repr(file_path) + ". " + message.args[1] + ".")
RelaxError: RelaxError: Cannot open the file '/home/edward/tmp/dispersion/non_clustered/R2eff/disp_1_N.agr'. No such file or directory.

Edward d Auvergne <bugman>
Project AdministratorIn charge of this item.
Fri 21 Feb 2014 07:12:05 PM UTC, original submission:

Error messages such as the following result:

Opening the file '/home/edward/tmp/dispersion/non_clustered/R2eff/grace2images.py' for writing.
Exception raised in thread.

Traceback (most recent call last):
File "/data/relax/relax-trunk/gui/analyses/execute.py", line 87, in run
self.run_analysis()
File "/data/relax/relax-trunk/gui/analyses/auto_relax_disp.py", line 698, in run_analysis
Relax_disp(pipe_name=self.data.pipe_name, pipe_bundle=self.data.pipe_bundle, results_dir=self.data.save_dir, models=self.data.models, grid_inc=self.data.inc, mc_sim_num=self.data.mc_sim_num, pre_run_dir=self.data.pre_run_dir, mc_sim_all_models=self.data.mc_sim_all_models, insignificance=self.data.insignificance, numeric_only=self.data.numeric_only)
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 116, in _init_
self.run()
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 454, in run
self.write_results(path=path, model=model)
File "/data/relax/relax-trunk/auto_analyses/relax_disp.py", line 501, in write_results
self.interpreter.relax_disp.plot_disp_curves(dir=path, force=True)
File "/data/relax/relax-trunk/prompt/uf_objects.py", line 221, in _call_
self._backend(*new_args, **uf_kargs)
File "/data/relax/relax-trunk/specific_analyses/relax_disp/disp_data.py", line 1808, in plot_disp_curves
chmod(dir + sep + file_name, S_IRWXU|S_IRGRP|S_IROTH)
OSError: [Errno 2] No such file or directory: '~/tmp/dispersion/non_clustered/R2eff/grace2images.py'

Edward d Auvergne <bugman>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bugman (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Feb 2014 07:27:16 PM UTCbugmanStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup