Output error?

Asked by Fengwangdong Zhang

When I type in "output file" and press "Enter" after generating processes, it tells that Error detected in "output" and MadGraph5Error : Failed to clean correctly file: [Errno 13] Permission denied.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

They are three possibilities:
1) You don't have permission to write in your current directory
2) You are overquota
3) "file" already exist and you are not the owner of the file/directory.

Cheers,

Olivier

Revision history for this message
Fengwangdong Zhang (zhangfwd) said :
#2

Hi,
  The problem still exists. It is not resulting from the previous three reasons.
  Thanks.

Best regards,
Fengwangdong Zhang

At 2013-05-07 13:16:31,"Olivier Mattelaer" <email address hidden> wrote: >Your question #228315 on MadGraph5 changed: >https://answers.launchpad.net/madgraph5/+question/228315 > > Status: Open => Answered > >Olivier Mattelaer proposed the following answer: >Hi, > >They are three possibilities: >1) You don't have permission to write in your current directory >2) You are overquota >3) "file" already exist and you are not the owner of the file/directory. > > >Cheers, > >Olivier > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/madgraph5/+question/228315/+confirm?answer_id=0 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/madgraph5/+question/228315 > >You received this question notification because you asked the question.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Hi Could you please,

Copy paste the content of the debug file? (MG5_debug), such that I can have information on which part of the code tries to do something that you are not allowed to do.

Cheers,

Olivier

Revision history for this message
Fengwangdong Zhang (zhangfwd) said :
#4

Hi,
   I'm sorry for late.
   The error content in my debug file is as follows:
{
MadGraph5Error: Failed to clean correctly file:
  [Errno 13] Permission denied
                           MadGraph Options
                               ----------------
               complex_mass_scheme : False
                  stdout_level : 20 (user set)
                  group_subprocesses : Auto
            ignore_six_quark_processes : False
                             gauge : unitary

                          MadEvent Options
                           ----------------
             automatic_html_opening : True
                            nb_core : None
                              run_mode : 2

                        Configuration Options
                             ---------------------
                       web_browser : None
                            text_editor : None
               cluster_temp_path : None
                     cluster_queue : None
                madanalysis_path : ./MadAnalysis
                      pythia8_path : None (user set)
                pythia-pgs_path : ./pythia-pgs
                             td_path : ./td
                delphes_path : ./Delphes
                auto_update : 7
                 cluster_type : condor
             fortran_compiler : None
          exrootanalysis_path : ./ExRootAnalysis
                   eps_viewer : None
                      timeout : 60
}

 Thanks.
Best regards,
Fengwangdong Zhang

At 2013-05-07 21:06:18,"Olivier Mattelaer" <email address hidden> wrote:
>Your question #228315 on MadGraph5 changed:
>https://answers.launchpad.net/madgraph5/+question/228315
>
> Status: Open => Needs information
>
>Olivier Mattelaer requested more information:
>Hi Could you please,
>
>Copy paste the content of the debug file? (MG5_debug), such that I can
>have information on which part of the code tries to do something that
>you are not allowed to do.
>
>Cheers,
>
>Olivier
>
>--
>To answer this request for more information, you can either reply to
>this email or enter your reply at the following page:
>https://answers.launchpad.net/madgraph5/+question/228315
>
>You received this question notification because you asked the question.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

Hi,

You didn't include the first part of the files, which contains the important information.
(what command you enter, and more importantly, at which file/line the code crash and which sequence of commands leads you to that point.

Cheers,

Olivier

Revision history for this message
Fengwangdong Zhang (zhangfwd) said :
#6

Hi,
   My apology. This is the whole content of debug:
{
    set group_subprocesses Auto
    set ignore_six_quark_processes False
    set gauge unitary
    set complex_mass_scheme False
    import model sm
    define p = g u c d s u~ c~ d~ s~
    define j = g u c d s u~ c~ d~ s~
    define l+ = e+ mu+
    define l- = e- mu-
    define vl = ve vm vt
    define vl~ = ve~ vm~ vt~
    generate p p > l- vl~ j j QCD=0 @1
    output file
    Traceback (most recent call last):
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 819, in onecmd
    return self.onecmd_orig(line, **opt)
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 812, in onecmd_orig
    return func(arg, **opt)
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/master_interface.py", line 291, in do_output
    return self.cmd.do_output(self, *args, **opts)
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/madgraph_interface.py", line 4011, in do_output
    self._curr_exporter.copy_v4template(modelname=self._curr_model.get('name'))
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 1093, in copy_v4template
    super(ProcessExporterFortranME, self).copy_v4template(modelname)
    File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 128, in copy_v4template
    % (os.path.basename(self.dir_path),why))

    MadGraph5Error: Failed to clean correctly file:
   [Errno 13] Permission denied
                        MadGraph Options
                            ----------------
            complex_mass_scheme : False
                  stdout_level : 20 (user set)
              group_subprocesses : Auto
         ignore_six_quark_processes : False
                          gauge : unitary

                          MadEvent Options
                              ----------------
             automatic_html_opening : True
                           nb_core : None
                            run_mode : 2

                         Configuration Options
                              ---------------------
                         web_browser : None
                           text_editor : None
                     cluster_temp_path : None
                        cluster_queue : None
               madanalysis_path : ./MadAnalysis
                    pythia8_path : None (user set)
                    pythia-pgs_path : ./pythia-pgs
                                td_path : ./td
                      delphes_path : ./Delphes
                              auto_update : 7
                          cluster_type : condor
                     fortran_compiler : None
                exrootanalysis_path : ./ExRootAnalysis
                             eps_viewer : None
                                    timeout : 60
}

   Thanks.
Best regards,
Fengwangdong Zhang

At 2013-05-08 23:41:26,"Olivier Mattelaer" <email address hidden> wrote: >Your question #228315 on MadGraph5 changed: >https://answers.launchpad.net/madgraph5/+question/228315 > > Status: Open => Answered > >Olivier Mattelaer proposed the following answer: >Hi, > >You didn't include the first part of the files, which contains the important information. >(what command you enter, and more importantly, at which file/line the code crash and which sequence of commands leads you to that point. > >Cheers, > >Olivier > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/madgraph5/+question/228315/+confirm?answer_id=4 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/madgraph5/+question/228315 > >You received this question notification because you asked the question.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#7

Ok Thanks,

Looks like you fail to run the following command:
cd file; ./bin/internal/clean_template
I suppose that this is due to the fact that that file doesn't have the execution right.
If this is the case, it should be enough to apply the following patch:

=== modified file 'madgraph/iolibs/export_v4.py'
--- old/madgraph/iolibs/export_v4.py 2013-05-04 17:12:36 +0000
+++ new/madgraph/iolibs/export_v4.py 2013-05-09 06:02:23 +0000
@@ -121,7 +121,7 @@
                                  '--web'], cwd=self.dir_path)
             else:
                 try:
- subprocess.call([pjoin('bin', 'internal', 'clean_template')], \
+ misc.call([pjoin('bin', 'internal', 'clean_template')], \
                                                                        cwd=self.dir_path)
                 except Exception, why:
                     raise MadGraph5Error('Failed to clean correctly %s: \n %s' \

If not could you run the above command and see if it runs/crash.

Cheers,

Olivier

On May 8, 2013, at 10:21 PM, Fengwangdong Zhang <email address hidden> wrote:

> Question #228315 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/228315
>
> Status: Answered => Open
>
> Fengwangdong Zhang is still having a problem:
> Hi,
> My apology. This is the whole content of debug:
> {
> set group_subprocesses Auto
> set ignore_six_quark_processes False
> set gauge unitary
> set complex_mass_scheme False
> import model sm
> define p = g u c d s u~ c~ d~ s~
> define j = g u c d s u~ c~ d~ s~
> define l+ = e+ mu+
> define l- = e- mu-
> define vl = ve vm vt
> define vl~ = ve~ vm~ vt~
> generate p p > l- vl~ j j QCD=0 @1
> output file
> Traceback (most recent call last):
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 819, in onecmd
> return self.onecmd_orig(line, **opt)
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 812, in onecmd_orig
> return func(arg, **opt)
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/master_interface.py", line 291, in do_output
> return self.cmd.do_output(self, *args, **opts)
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/madgraph_interface.py", line 4011, in do_output
> self._curr_exporter.copy_v4template(modelname=self._curr_model.get('name'))
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 1093, in copy_v4template
> super(ProcessExporterFortranME, self).copy_v4template(modelname)
> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 128, in copy_v4template
> % (os.path.basename(self.dir_path),why))
>
> MadGraph5Error: Failed to clean correctly file:
> [Errno 13] Permission denied
> MadGraph Options
> ----------------
> complex_mass_scheme : False
> stdout_level : 20 (user set)
> group_subprocesses : Auto
> ignore_six_quark_processes : False
> gauge : unitary
>
> MadEvent Options
> ----------------
> automatic_html_opening : True
> nb_core : None
> run_mode : 2
>
> Configuration Options
> ---------------------
> web_browser : None
> text_editor : None
> cluster_temp_path : None
> cluster_queue : None
> madanalysis_path : ./MadAnalysis
> pythia8_path : None (user set)
> pythia-pgs_path : ./pythia-pgs
> td_path : ./td
> delphes_path : ./Delphes
> auto_update : 7
> cluster_type : condor
> fortran_compiler : None
> exrootanalysis_path : ./ExRootAnalysis
> eps_viewer : None
> timeout : 60
> }
>
> Thanks.
> Best regards,
> Fengwangdong Zhang
>
>
>
> At 2013-05-08 23:41:26,"Olivier Mattelaer" <email address hidden> wrote: >Your question #228315 on MadGraph5 changed: >https://answers.launchpad.net/madgraph5/+question/228315 > > Status: Open => Answered > >Olivier Mattelaer proposed the following answer: >Hi, > >You didn't include the first part of the files, which contains the important information. >(what command you enter, and more importantly, at which file/line the code crash and which sequence of commands leads you to that point. > >Cheers, > >Olivier > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/madgraph5/+question/228315/+confirm?answer_id=4 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/madgraph5/+question/228315 > >You received this question notification because you asked the question.
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Fengwangdong Zhang (zhangfwd) said :
#8

Hi,

  OK, it runs successfully. Thanks very much.

Best regards,
Fengwangdong Zhang

At 2013-05-09 14:11:39,"Olivier Mattelaer" <email address hidden> wrote: >Your question #228315 on MadGraph5 changed: >https://answers.launchpad.net/madgraph5/+question/228315 > > Status: Open => Answered > >Olivier Mattelaer proposed the following answer: >Ok Thanks, > >Looks like you fail to run the following command: >cd file; ./bin/internal/clean_template >I suppose that this is due to the fact that that file doesn't have the execution right. >If this is the case, it should be enough to apply the following patch: > >=== modified file 'madgraph/iolibs/export_v4.py' >--- old/madgraph/iolibs/export_v4.py 2013-05-04 17:12:36 +0000 >+++ new/madgraph/iolibs/export_v4.py 2013-05-09 06:02:23 +0000 >@@ -121,7 +121,7 @@ > '--web'], cwd=self.dir_path) > else: > try: >- subprocess.call([pjoin('bin', 'internal', 'clean_template')], \ >+ misc.call([pjoin('bin', 'internal', 'clean_template')], \ > cwd=self.dir_path) > except Exception, why: > raise MadGraph5Error('Failed to clean correctly %s: \n %s' \ > >If not could you run the above command and see if it runs/crash. > >Cheers, > >Olivier > >On May 8, 2013, at 10:21 PM, Fengwangdong Zhang ><email address hidden> wrote: > >> Question #228315 on MadGraph5 changed: >> https://answers.launchpad.net/madgraph5/+question/228315 >> >> Status: Answered => Open >> >> Fengwangdong Zhang is still having a problem: >> Hi, >> My apology. This is the whole content of debug: >> { >> set group_subprocesses Auto >> set ignore_six_quark_processes False >> set gauge unitary >> set complex_mass_scheme False >> import model sm >> define p = g u c d s u~ c~ d~ s~ >> define j = g u c d s u~ c~ d~ s~ >> define l+ = e+ mu+ >> define l- = e- mu- >> define vl = ve vm vt >> define vl~ = ve~ vm~ vt~ >> generate p p > l- vl~ j j QCD=0 @1 >> output file >> Traceback (most recent call last): >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 819, in onecmd >> return self.onecmd_orig(line, **opt) >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/extended_cmd.py", line 812, in onecmd_orig >> return func(arg, **opt) >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/master_interface.py", line 291, in do_output >> return self.cmd.do_output(self, *args, **opts) >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/interf ace/madgraph_interface.py", line 4011, in do_output >> self._curr_exporter.copy_v4template(modelname=self._curr_model.get('name')) >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 1093, in copy_v4template >> super(ProcessExporterFortranME, self).copy_v4template(modelname) >> File "/ClusterDisks/HDN14/WorkSpace/zhangfwd/madgraph/MadGraph5_v1_5_9/madgraph/iolibs /export_v4.py", line 128, in copy_v4template >> % (os.path.basename(self.dir_path),why)) >> >> MadGraph5Error: Failed to clean correctly file: >> [Errno 13] Permission denied >> MadGraph Options >> ---------------- >> complex_mass_scheme : False >> stdout_level : 20 (user set) >> group_subprocesses : Auto >> ignore_six_quark_processes : False >> gauge : unitary >> >> MadEvent Options >> ---------------- >> automatic_html_opening : True >> nb_core : None >> run_mode : 2 >> >> Configuration Options >> --------------------- >> web_browser : None >> text_editor : None >> cluster_temp_path : None >> cluster_queue : None >> madanalysis_path : ./MadAnalysis >> pythia8_path : None (user set) >> pythia-pgs_path : ./pythia-pgs >> td_path : ./td >> delphes_path : ./Delphes >> auto_update : 7 >> cluster_type : condor >> fortran_compiler : None >> exrootanalysis_path : ./ExRootAnalysis >> eps_viewer : None >> timeout : 60 >> } >> >> Thanks. >> Best regards, >> Fengwangdong Zhang >> >> >> >> At 2013-05-08 23:41:26,"Olivier Mattelaer" <email address hidden> wrote: >Your question #228315 on MadGraph5 changed: >https://answers.launchpad.net/madgraph5/+question/228315 > > Status: Open => Answered > >Olivier Mattelaer proposed the following answer: >Hi, > >You didn't include the first part of the files, which contains the important information. >(what command you enter, and more importantly, at which file/line the code crash and which sequence of commands leads you to that point. > >Cheers, > >Olivier > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/madgraph5/+question/228315/+confirm?answer_id=4 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/madgraph5/+question/228315 > >You received this question notification because you asked the question. >> >> -- >> You received this question notification because you are a member of >> MadTeam, which is an answer contact for MadGraph5. > >-- >If this answers your question, please go to the following page to let us >know that it is solved: >https://answers.launchpad.net/madgraph5/+question/228315/+confirm?answer_id=6 > >If you still need help, you can reply to this email or go to the >following page to enter your feedback: >https://answers.launchpad.net/madgraph5/+question/228315 > >You received this question notification because you asked the question.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#9

Thanks, I put it as solved then.

Cheers,

Olivier