分类: Android平台
2019-09-26 15:49:47
repo sync -j4
while [ $? = 1 ]; do echo "Sync failed, repeat again:" repo sync -j4
done
和意料的一样,会报错,第一个过不了的就是权限不够, Traceback (most recent call last): File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py", line 47, in import event_log File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/event_log.py", line 166, in _EVENT_ID = multiprocessing.Value('i', 1) File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 253, in Value return Value(typecode_or_type, *args, **kwds) File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/sharedctypes.py", line 108, in Value lock = RLock() File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/__init__.py", line 183, in RLock return RLock() File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 172, in __init__ SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1) File "/snap/git-repo/18/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__ sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 13] Permission denied 这里直接提升用户组权限。 echo "gavin ALL=(ALL) ALL">>/etc/sudoers.d/gavin chomd 0440 /etc/sudoers.d/gavin 执行过程中提示缺少的东西,补上就可以了。 git-lfs filter-process --skip: 1: git-lfs filter-process --skip: git-lfs: not found fatal: The remote end hung up unexpectedly error: Cannot checkout android_tools_dexter: GitError: cannot initialize work tree for android_tools_dexter Traceback (most recent call last): File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py", line 572, in _Main(sys.argv[1:]) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py", line 547, in _Main result = run() File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py", line 540, in run = lambda: repo._Run(name, gopts, argv) or 0 File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/main.py", line 201, in _Run result = cmd.Execute(copts, cargs) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 997, in Execute self._Checkout(all_projects, opt) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 554, in _Checkout self._CheckoutWorker(**kwargs) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 439, in _CheckoutWorker return self._CheckoutOne(opt, project, *args, **kwargs) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 474, in _CheckoutOne project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/project.py", line 1492, in Sync_LocalHalf self._InitWorkTree(force_sync=force_sync, submodules=submodules) File "/home/gavin/Work/RK/Edge/WORKING_DIRECTORY/.repo/repo/project.py", line 2719, in _InitWorkTree raise GitError("cannot initialize work tree for " + self.name) error.GitError: cannot initialize work tree for android_tools_dexter Sync failed, repeat again: fatal: unable to access '/': gnutls_handshake() failed: The TLS connection was non-properly terminated. |
system/netd .repo/projects/system/netd.git .repo/project-objects/platform/system/netd.git tools/external/gradle .repo/projects/tools/external/gradle.git .repo/project-objects/platform/tools/external/gradle.git这样源码就可以同步完成了。
$ cd PATH_YOUR_PROJECT
$ cd u-boot $ make mrproper $ ./make.sh kedge
|
$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh $ lunch rk3399-userdebug $ make installclean
$ make -j16
$ ./mkimage.sh
|
在python中想要使用crypto相关的库,网上的解决方法一大片,但是大多都是废话,能用的没有几个,而且能安装的没有几个。
首先我告诉大家为什么不能安装,其次告诉一种真正的方法。
python版本:python3.6,系统:win7;目的:crypto安装
1.pycrypto、pycrytodome和crypto是一个东西,crypto在python上面的名字是pycrypto,它是一个第三方库,但是已经停止更新三年了,所以不建议安装这个库;
2.windows下python3.6安装也不会成功!
这个时候pycryptodome就来了,它是pycrypto的延伸版本,用法和pycrypto是一模一样的;
所以,我现在告诉大家一种解决方法--直接安装:pip install pycryptodome
3.但是,在使用的时候导入模块是有问题的,这个时候只要修改一个文件夹的名称就可以完美解决这个问题,
Python\Python36\Lib\site-packages,找到这个路径,下面有一个文件夹叫做crypto,将小写c改成大写C就ok了。
我在我的linux生产环境上,版本是3.6,直接安装pycryptodome,第三方目录下的包直接就是:Crypto、pycryptodome-3.6.6.dist-info,连名字都不用改。
以上红色部分从网上找的。