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

Chetan Mehrotra commented on SLING-7164:
----------------------------------------

I initially faced issue due to presence of python 3. 
{noformat}
$ repo init --no-clone-bundle -u https://github.com/apache/sling-aggregator.git
warning: Python 3 support is currently experimental. YMMV.
Please use Python 2.6 - 2.7 instead.
Traceback (most recent call last):
  File "/home/chetanm/bin/repo", line 883, in <module>
    main(sys.argv[1:])
  File "/home/chetanm/bin/repo", line 851, in main
    _Init(args, gitc_init=(cmd == 'gitc-init'))
  File "/home/chetanm/bin/repo", line 337, in _Init
    _CheckGitVersion()
  File "/home/chetanm/bin/repo", line 391, in _CheckGitVersion
    ver_act = ParseGitVersion(ver_str)
  File "/home/chetanm/bin/repo", line 361, in ParseGitVersion
    if not ver_str.startswith('git version '):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
{noformat}

So had to modify the repo shebang line to explicitly use python2.7 to get going
{noformat}
- #!/usr/bin/env python
+ #!/usr/bin/env python2.7
{noformat}

> Set up the sling aggregator repository
> --------------------------------------
>
>                 Key: SLING-7164
>                 URL: https://issues.apache.org/jira/browse/SLING-7164
>             Project: Sling
>          Issue Type: Sub-task
>          Components: Best practices
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>         Attachments: sling-aggregate.zip
>
>
> This repository should replace the current 'sling' repo as an entry point. It 
> should contain a repo manifest ( or similar ) to allow checking out all the 
> sling modules and maybe even regenerate a reactor pom.xml file for quick 
> operations.
> The README should explain a bit more about Sling and our SCM setup and point 
> to the sling home page.
> Also we should update the 'Getting and building Sling' page while we're at it 
> - 
> http://sling.apache.org/documentation/development/getting-and-building-sling.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to