Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.5.0
-
None
-
None
-
Patch
Description
Happening because of https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
Error:
+ /usr/lib/rpm/redhat/brp-mangle-shebangs *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/demo_master_election.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/test.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/demo_queue.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. *** ERROR: ambiguous python shebang in /usr/lib/zookeeper/contrib/rest/src/python/zk_dump_tree.py: #!/usr/bin/python. Change it to python3 (or python2) explicitly. *** WARNING: ./usr/lib/zookeeper/contrib/rest/src/python/zkrest.py is executable but has empty or no shebang, removing executable bit
possible fix is to add patch to zookeeper src directory. Tested with ZK 3.4.14 version
// code placeholder diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py index c0317c7fe..5c5194e02 100644 --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_master_election.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py index 9ca4c6440..8b42b3447 100644 --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/demo_queue.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py index 363747a64..1acfb2b36 100644 --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/test.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file diff --git a/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py b/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py index 517d23b34..5f240ba72 100755 --- a/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py +++ b/zookeeper-contrib/zookeeper-contrib-rest/src/python/zk_dump_tree.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file
Attachments
Attachments
Issue Links
- is superceded by
-
BIGTOP-3475 Bump ZooKeeper to 3.4.14
- Resolved