[ 
https://issues.apache.org/jira/browse/ATLAS-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15573514#comment-15573514
 ] 

Suma Shivaprasad commented on ATLAS-1221:
-----------------------------------------

[~zhangqiang2] Can you pls reattach the patch . Unable to apply it with error - 
fatal: patch with only garbage at line 3 Also the patch still seems to have the 
line except OSError , e: which you wanted to remove?

> build failure in windows  SyntaxError: invalid syntax
> -----------------------------------------------------
>
>                 Key: ATLAS-1221
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1221
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>         Environment: window7(64) +maven3.2.5+git+python3.5(64)+jdk1.7.80
>            Reporter: zhangqiang2
>            Assignee: zhangqiang2
>            Priority: Critical
>              Labels: build
>
> 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 "c:\python\lib\unittest\loader.py", line 219, in loadTestsFromNames
>     suites = [self.loadTestsFromName(name, module) for name in names]
>   File "c:\python\lib\unittest\loader.py", line 219, in <listcomp>
>     suites = [self.loadTestsFromName(name, module) for name in names]
>   File "c:\python\lib\unittest\loader.py", line 153, in loadTestsFromName
>     module = __import__(module_name)
>   File 
> "E:\GITProject-bak\incubator-atlas-eclipse\distro\src\test\python\scripts\TestMetadata.py",
>  line 26, in <module>
>     import atlas_config as mc
>   File 
> "E:\GITProject-bak\incubator-atlas-eclipse\distro\src\bin\atlas_config.py", 
> line 135
>     except OSError, e:
>                   ^
> SyntaxError: invalid syntax
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] apache-atlas ....................................... SUCCESS [ 19.819 
> s]
> [INFO] Apache Atlas Common ................................ SUCCESS [ 23.974 
> s]
> [INFO] Apache Atlas Typesystem ............................ SUCCESS [ 44.967 
> s]
> [INFO] Apache Atlas Client ................................ SUCCESS [ 26.070 
> s]
> [INFO] Apache Atlas Server API ............................ SUCCESS [ 18.260 
> s]
> [INFO] Apache Atlas Notification .......................... SUCCESS [ 24.818 
> s]
> [INFO] Apache Atlas Graph Database Projects ............... SUCCESS [  1.996 
> s]
> [INFO] Apache Atlas Graph Database API .................... SUCCESS [ 12.466 
> s]
> [INFO] Graph Database Common Code ......................... SUCCESS [ 12.562 
> s]
> [INFO] Apache Atlas Titan 0.5.4 Graph DB Impl ............. SUCCESS [ 52.199 
> s]
> [INFO] Apache Atlas Repository ............................ SUCCESS [ 53.281 
> s]
> [INFO] Apache Atlas Authorization ......................... SUCCESS [ 14.496 
> s]
> [INFO] Apache Atlas Business Catalog ...................... SUCCESS [ 19.184 
> s]
> [INFO] Apache Atlas UI .................................... SUCCESS [13:55 
> min]
> [INFO] Apache Atlas Web Application ....................... SUCCESS [02:13 
> min]
> [INFO] Apache Atlas Documentation ......................... SUCCESS [ 14.923 
> s]
> [INFO] Apache Atlas FileSystem Model ...................... SUCCESS [01:04 
> min]
> [INFO] Apache Atlas Plugin Classloader .................... SUCCESS [ 12.809 
> s]
> [INFO] Apache Atlas Hive Bridge Shim ...................... SUCCESS [ 16.498 
> s]
> [INFO] Apache Atlas Hive Bridge ........................... SUCCESS [02:23 
> min]
> [INFO] Apache Atlas Falcon Bridge Shim .................... SUCCESS [ 17.179 
> s]
> [INFO] Apache Atlas Falcon Bridge ......................... SUCCESS [02:11 
> min]
> [INFO] Apache Atlas Sqoop Bridge Shim ..................... SUCCESS [  7.781 
> s]
> [INFO] Apache Atlas Sqoop Bridge .......................... SUCCESS [02:14 
> min]
> [INFO] Apache Atlas Storm Bridge Shim ..................... SUCCESS [  9.031 
> s]
> [INFO] Apache Atlas Storm Bridge .......................... SUCCESS [02:17 
> min]
> [INFO] Apache Atlas Distribution .......................... FAILURE [  8.631 
> s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 33:15 min
> [INFO] Finished at: 2016-10-12T09:06:02+08:00
> [INFO] Final Memory: 159M/857M
> [INFO] 
> ------------------------------------------------------------------------
> [WARNING] The requested profile "env-common" could not be activated because 
> it does not exist.
> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 
> (python-test) on project atlas-distro: Command execution failed. Proce
>  exited with an error: 1 (Exit value: 1) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test) on proje
>  atlas-distro: Command execution failed.
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>         at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution 
> failed.
>         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
>         at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>         ... 19 more
> Caused by: org.apache.commons.exec.ExecuteException: Process exited with an 
> error: 1 (Exit value: 1)
>         at 
> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
>         at 
> org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
>         at 
> org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
>         at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
>         ... 21 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the 
> command
> [ERROR]   mvn <goals> -rf :atlas-distro
> ______________________________________________
> The solution:
> then i  find   in incubator-atlas-eclipse\distro\bin\src\bin directoty
> i  Modify  atlas_config.py  
> line135     Modify   except OSError , e:     to        except OSError as e:
> You can look at the test code here 
> https://github.com/zhangqiang2/incubator-atlas/blob/master/distro/src/bin/atlas_config.py



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to