MadGraph5_v1_5_7 - AttributeError: 'int' object has no attribute 'close' for gridpacks

Bug #1142042 reported by Sanjay Padhi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Hi

I am trying to run the gridpack created using MadGraph5_v1_5_7.

Seems like there are Attribute errors:

madevent/bin/internal/madevent_interface.py", line 4709, in refine4grid
    devnull.close()
AttributeError: 'int' object has no attribute 'close'

If we look at madevent/bin/internal/madevent_interface.py
seems like it should be os.close..

def refine4grid(self, nb_event):

...

 self.update_status('finish refine', 'parton', makehtml=False)
# devnull.close()
        os.close( devnull )

Best, Sanjay

Related branches

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Thanks Sanjay,

I have include the fix in 1.5.8.
Which should be release today or tomorrow.

Cheers,

Olivier

Changed in madgraph5:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.