SC200 R-EM Android 10 Repo Init failed

epo.git --repo-branch=caf-stable
Downloading Repo source from git://codeaurora.org/tools/repo.git
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 6296 (delta 19), reused 0 (delta 0), pack-reused 6253
repo: error: “git” failed with exit status 1
cwd: /home/aravinth/Project/Quectel/AndroidQ/.repo/repo
cmd: [‘git’, ‘tag’, ‘-v’, ‘v1.12.16’]
stdout:

object 666d534636d262cbfd971509dd0f0be0cddb2e11
type commit
tag v1.12.16
tagger Conley Owens cco3@android.com 1398976458 -0700

repo 1.12.16
stderr:
gpg: Signature made Friday 02 May 2014 02:04:18 AM IST
gpg: using RSA key 67B7E448692B382C
gpg: Can’t check signature: No public key
fatal: cloning the git-repo repository failed, will remove ‘.repo/repo’

I have fixed the above mentioned issue, After that I’m below error on same repo init.
I’m using Ubuntu 20.4

Traceback (most recent call last):
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/main.py”, line 500, in
_Main(sys.argv[1:])
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/main.py”, line 476, in _Main
result = repo._Run(argv) or 0
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/main.py”, line 155, in _Run
result = cmd.Execute(copts, cargs)
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/subcmds/init.py”, line 390, in Execute
self._SyncManifest(opt)
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/subcmds/init.py”, line 236, in _SyncManifest
m.MetaBranchSwitch(opt.manifest_branch)
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/project.py”, line 2634, in MetaBranchSwitch
self.Sync_LocalHalf(syncbuf)
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/project.py”, line 1170, in Sync_LocalHalf
self._InitWorkTree()
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/project.py”, line 2224, in _InitWorkTree
_lwrite(os.path.join(dotgit, HEAD), ‘%s\n’ % self.GetRevisionId())
File “/home/aravinth/Project/Quectel/AndroidQ/.repo/repo/project.py”, line 51, in _lwrite
fd.write(content)
TypeError: a bytes-like object is required, not ‘str’

1 Like

have you solved this issue already?

No, I have fixed the first error of

gpg: using RSA key 67B7E448692B382C
gpg: Can’t check signature: No public key

But I haven’t fixed the second error
TypeError: a bytes-like object is required, not ‘str’

While doing repo init.

Can you plz help to fix.

it looks like something wrong with the repo command, could just try the git command?

This is the command I’m using for repo init and I’m getting the error.

repo init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m LA.UM.8.6.2.r2-02400-89xx.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

What command should I use to download repo.?
Ex:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

whay u want to download is the source code of SC200 R-EM , right?

Have you connected the local FAE or sales? they will give you the local git account and you could download from that

Yes, I want to download for SC200 R-EM Android 10 code only.
From Quectel team we have received some SDK and documents, In that they mentioned to download from above link.

were you accroding to the user guide inside the documents? there must be the describ of how to get source codes by git command

And we always use git clone to get rather than repo .

do you have git account?

For source code download we just received text document to get the code.

1:Downloader android source code from google
Setp:
   1.1:
   	   repo init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m LA.UM.8.6.2.r2-02400-89xx.0.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable
   1.2:
       repo sync
2:Merge Quectel SDK Code
     2.1:
         tar -zxvf  SC200R_Android10.0_Quectel_SDK_r023_20200731.tar.gz
     2.2:
         cp  -rf  SC200R_Android10.0_Quectel_SDK_r023_20200731/*   <android source code>/ 
3: Build project
     source build/envsetup.sh
     lunch msm8937_32-userdebug
		 make -j8

This what its contain.

Yaah, I have git account “aravinthkumarj1@gmail.com

Any update on this.?

I am having the exact same issues. I managed to resolve the first one (no public key gpg) and am also stuck on the

TypeError: a bytes-like object is required, not ‘str’

I am also using Ubuntu 20.04 and am following the Quectel document I received to the point. Like I said the commands I am running are exactly the same.

Hi, sorry for the late reply, I will try today to check it

Today I will try, thank you for your posting.

Hi Job.Bao,
Waiting for your update.

@robertlong-Q could you pls to check the repo command above and give me a hand?

A possible workaround is to use

repo init -u https://source.codeaurora.org/quic/la/platform/manifest.git -b release -m LA.UM.6.7.r1-07200-8x09.0.xml

without the --repo-url and --repo-branch flags. The problem there is that you will end up with a huge repository (150+GB) and everything will take forever (e.g. repo sync takes more than 10 hours).

Cheers, Jure

Hi @Job.Bao-Q,
Is this correct method to sync the code.?