Re: [android-building] repo init python2.7 or python3.6 which one to use?

2020-04-22 Thread 'Dan Willemsen' via Android Building
When using `--repo-url=git://codeaurora.org/tools/repo.git
 --repo-branch=caf-stable`, you likely need to use a repo launcher
downloaded from codeaurora as well, as it seems the upstream repo launcher
is not compatible with it. I'm not familiar with codeaurora though --
there's a chance you could remove those arguments and be successful, this
may be something to bring up in their forums / support channels.

- Dan

On Wed, Apr 22, 2020 at 9:23 AM Yuvaraj Velumani  wrote:

> 1. I have my Ubuntu server 16.04.10 installed which has python 2.7.12 and
> 3.6.9(I installed it - following procedure referring
> https://realpython.com/installing-python/)
> 2. Installed repo launcher (version 2.5) as per
> https://source.android.com/setup/build/downloading (by default I used curl
> https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo)
>
> My intention was to install the qualcomm processor public code from using 
> "repo
> init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b
> release -m LA.AU.0.0.1-03620-sa8155_gvmq.0.xml --repo-url=git://
> codeaurora.org/tools/repo.git --repo-branch=caf-stable"
>
> *My initial repo download messages showed (when using python 3.6.9)*
>  warning: Python 3 support is currently experimental. YMMV.
>  Please use Python 2.6 - 2.7 instead
>  Get https://source.codeaurora.org/quic/le/le/manifest
> *Error Message*
>  File "/usr/local/lib/python3.6/codecs.py", line 321, in decode
>  (result, consumed) = self._buffer_decode(data, self.errors, final)
>  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position
> 151: invalid start byte
>
> *After this I change to python 2.7.12 *(rm -rf ~/bin/repo and used curl
> https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo)
> and launched "repo init -u
> https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m
> LA.AU.0.0.1-03620-sa8155_gvmq.0.xml --repo-url=git://
> codeaurora.org/tools/repo.git --repo-branch=caf-stable"
>
> *My initial repo download messages showed (when using python 2.7.12)*
> Get https://source.codeaurora.org/quic/la/tools/repo.git/clone.bundle
> Get https://source.codeaurora.org/quic/la/tools/repo.git
> *Error Message*
> File "/usr/lib/python2.7/pickle.py", line 1384, in load
> return Unpickler(file).load()
> File "/usr/lib/python2.7/pickle.py", line 864, in load
>  dispatch[key](self)
>  File "/usr/lib/python2.7/pickle.py", line 892, in load_proto
>  raise ValueError, "unsupported pickle protocol: %d" % proto
>  ValueError: unsupported pickle protocol: 4
>
> I really don't know what is the real issue.
>
> Thanks in advance and I appreciate your help.
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/054a0cab-d651-467d-942b-3aa54e3664a8%40googlegroups.com
> 
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdnGB4_WTUx_R8ZYEEeWo449%3DMxM7B3AGqArx%3Da6qE2S2Q%40mail.gmail.com.


[android-building] repo init python2.7 or python3.6 which one to use?

2020-04-22 Thread Yuvaraj Velumani
1. I have my Ubuntu server 16.04.10 installed which has python 2.7.12 and 
3.6.9(I installed it - following procedure referring 
https://realpython.com/installing-python/)
2. Installed repo launcher (version 2.5) as per 
https://source.android.com/setup/build/downloading (by default I used curl 
https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo)

My intention was to install the qualcomm processor public code from using "repo 
init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b 
release -m LA.AU.0.0.1-03620-sa8155_gvmq.0.xml 
--repo-url=git://codeaurora.org/tools/repo.git 
--repo-branch=caf-stable"

*My initial repo download messages showed (when using python 3.6.9)*
 warning: Python 3 support is currently experimental. YMMV.
 Please use Python 2.6 - 2.7 instead
 Get https://source.codeaurora.org/quic/le/le/manifest
*Error Message*
 File "/usr/local/lib/python3.6/codecs.py", line 321, in decode
 (result, consumed) = self._buffer_decode(data, self.errors, final)
 UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 
151: invalid start byte

*After this I change to python 2.7.12 *(rm -rf ~/bin/repo and used curl 
https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo) and 
launched "repo init -u 
https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m 
LA.AU.0.0.1-03620-sa8155_gvmq.0.xml 
--repo-url=git://codeaurora.org/tools/repo.git 
--repo-branch=caf-stable"

*My initial repo download messages showed (when using python 2.7.12)*
Get https://source.codeaurora.org/quic/la/tools/repo.git/clone.bundle
Get https://source.codeaurora.org/quic/la/tools/repo.git
*Error Message*
File "/usr/lib/python2.7/pickle.py", line 1384, in load 
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
 dispatch[key](self)
 File "/usr/lib/python2.7/pickle.py", line 892, in load_proto
 raise ValueError, "unsupported pickle protocol: %d" % proto 
 ValueError: unsupported pickle protocol: 4 

I really don't know what is the real issue.

Thanks in advance and I appreciate your help.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/054a0cab-d651-467d-942b-3aa54e3664a8%40googlegroups.com.