tab and space

Bug #1708362 reported by Olivier Mattelaer on 2017-08-03
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MadAnalysis 5
High
Eric Conte

Bug Description

Hi,

I run today with python 2.6 and face the following crash:
This crash does not happen when using python 2.7 (which is... weird since it seems quite huge error_

Cheers,

Olivier

DEBUG: MadAnalysis5 error was:
DEBUG: ------------------------------------------------------------
DEBUG: Traceback (most recent call last):
  File "/Users/omattelaer/Documents/workspace/2.5.6/madgraph/interface/common_run_interface.py", line 2267, in get_MadAnalysis5_interpreter
    from madanalysis.interpreter.ma5_interpreter import MA5Interpreter
  File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/interpreter/ma5_interpreter.py", line 38, in <module>
    from madanalysis.core.main import Main
  File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/core/main.py", line 26, in <module>
    from madanalysis.dataset.dataset_collection import DatasetCollection
  File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/dataset/dataset_collection.py", line 26, in <module>
    import madanalysis.dataset.dataset as Dataset
  File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/dataset/dataset.py", line 25, in <module>
    from madanalysis.enumeration.linestyle_type import LineStyleType
  File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/enumeration/linestyle_type.py", line 31
     class __metaclass__(type):
                              ^
 TabError: inconsistent use of tabs and spaces in indentation
DEBUG: ------------------------------------------------------------

Eric Conte (eric-conte) on 2017-08-03
Changed in madanalysis5:
importance: Undecided → High
assignee: nobody → Eric Conte (eric-conte)
Eric Conte (eric-conte) wrote :

Hi Olivier,

It seems that you release of Python 2.6 is more sensible to the indentation. I have applied the 'tabnanny" module and several files are touched by this problem. I will fixed the problem and put this 'tabnanny' test in the MA5 validation platform.

Which release of MA5 do you use? v1.6beta? or the one downloaded from aMC@NLO?

Cheers,
Eric

Hi Eric,

I'm using the version downloaded from MG5aMC.
Note that this is not a blocker for me since I'm typically only use python2.7.
Just that I was running today with python2.6 to check a behaviour which exists only on python2.6
And then face such funny issue and thought that you might be happy to know about it/ fix it.

Thanks,

Olivier

> On 3 Aug 2017, at 16:15, Eric Conte <email address hidden> wrote:
>
> Hi Olivier,
>
> It seems that you release of Python 2.6 is more sensible to the
> indentation. I have applied the 'tabnanny" module and several files are
> touched by this problem. I will fixed the problem and put this
> 'tabnanny' test in the MA5 validation platform.
>
> Which release of MA5 do you use? v1.6beta? or the one downloaded from
> aMC@NLO?
>
> Cheers,
> Eric
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1708362
>
> Title:
> tab and space
>
> Status in MadAnalysis 5:
> New
>
> Bug description:
> Hi,
>
> I run today with python 2.6 and face the following crash:
> This crash does not happen when using python 2.7 (which is... weird since it seems quite huge error_
>
> Cheers,
>
> Olivier
>
> DEBUG: MadAnalysis5 error was:
> DEBUG: ------------------------------------------------------------
> DEBUG: Traceback (most recent call last):
> File "/Users/omattelaer/Documents/workspace/2.5.6/madgraph/interface/common_run_interface.py", line 2267, in get_MadAnalysis5_interpreter
> from madanalysis.interpreter.ma5_interpreter import MA5Interpreter
> File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/interpreter/ma5_interpreter.py", line 38, in <module>
> from madanalysis.core.main import Main
> File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/core/main.py", line 26, in <module>
> from madanalysis.dataset.dataset_collection import DatasetCollection
> File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/dataset/dataset_collection.py", line 26, in <module>
> import madanalysis.dataset.dataset as Dataset
> File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/dataset/dataset.py", line 25, in <module>
> from madanalysis.enumeration.linestyle_type import LineStyleType
> File "/Users/omattelaer/Documents/HEPTools/madanalysis5/madanalysis5/madanalysis/enumeration/linestyle_type.py", line 31
> class __metaclass__(type):
> ^
> TabError: inconsistent use of tabs and spaces in indentation
> DEBUG: ------------------------------------------------------------
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/madanalysis5/+bug/1708362/+subscriptions

Eric Conte (eric-conte) wrote :

Hi Olivier,
The developed release and the release used by MG5aMC are fixed now.
Thank you for help.
Cheers,
Eric

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

Other bug subscribers