BackRead method missing in madgraph.various.misc (272py3)

Bug #1873259 reported by Wolfgang Waltenberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Low
Unassigned

Bug Description

Hey Olivier, all,

when upgrading from 265py2 to 272py3, my setup crashes, with the error given below.
Do you have any idea what this could be about? It is true, I dont see any "BackRead" methods
in misc modules (neither in the "internal misc" module).
Thanks a lot in advance,

Wolfgang

  File "/local/wwaltenberger/git/smodels-utils/EM_Creator/mg5/madgraph/interface/madevent_interface.py", line 4824, in parse_PY8_log_file
    for line in misc.BackRead(log_file_path):
AttributeError: module 'madgraph.various.misc' has no attribute 'BackRead'

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

Hi,

Python3 is so difficult with file handling (so bad since it was a key feature of python2).
That I will need to look at this in details how to put back such type of support.

Using the non python3 version is the work around for the moment.

Cheers,

Olivier

Changed in mg5amcnlo:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Here is a first attempt to fix the issue.

https://bazaar.launchpad.net/~madteam/mg5amcnlo/python3/revision/299

Cheers,

Olivier

Changed in mg5amcnlo:
status: Confirmed → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → 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.