Comment 2 for bug 1708362

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1708362] Re: tab and space

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