atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Péter Gergő Barna (JIRA) <j...@apache.org>
Subject [jira] [Updated] (ATLAS-1515) Build (tests) fail with python3, only works with python2
Date Wed, 01 Feb 2017 16:50:51 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Péter Gergő Barna updated ATLAS-1515:
-------------------------------------
    Attachment: ATLAS-1515.patch

> Build (tests) fail with python3, only works with python2
> --------------------------------------------------------
>
>                 Key: ATLAS-1515
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1515
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating, 0.7-incubating
>            Reporter: Péter Gergő Barna
>            Priority: Trivial
>         Attachments: ATLAS-1515.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Build (tests) fail with python3, only works with python2
> Only atlas-distro module is affected.
> {noformat}
> [INFO] --- exec-maven-plugin:1.2.1:exec (python-test) @ atlas-distro ---
> Traceback (most recent call last):
>   File "unitTests.py", line 118, in <module>
>     main()
>   File "unitTests.py", line 87, in main
>     suite = all_tests_suite()
>   File "unitTests.py", line 78, in all_tests_suite
>     suite = unittest.TestLoader().loadTestsFromNames(tests_list)
>   File "/Users/pbarna/anaconda3/lib/python3.5/unittest/loader.py", line 219, in loadTestsFromNames
>     suites = [self.loadTestsFromName(name, module) for name in names]
>   File "/Users/pbarna/anaconda3/lib/python3.5/unittest/loader.py", line 219, in <listcomp>
>     suites = [self.loadTestsFromName(name, module) for name in names]
>   File "/Users/pbarna/anaconda3/lib/python3.5/unittest/loader.py", line 153, in loadTestsFromName
>     module = __import__(module_name)
>   File "/Users/pbarna/Desktop/apache-source/incubator-atlas/distro/src/test/python/scripts/TestMetadata.py",
line 26, in <module>
>     import atlas_config as mc
>   File "/Users/pbarna/Desktop/apache-source/incubator-atlas/distro/src/bin/atlas_config.py",
line 135
>     except OSError, e:
>                   ^
> SyntaxError: invalid syntax
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message