找回密码
 立即注册
  • 便民服务
  • 关注我们
  • 社区新手

[KaiOS综合] 诺基亚8000&6300 4g root教程实践贴

  [复制链接]
python里出现invalid decimal literal怎么办
回复 使用道具 举报
shxhynzxb 发表于 2024-9-27 22:30
python里出现invalid decimal literal怎么办

没遇到过这个,检查一下python版本和依赖看看
回复 使用道具 举报
xuhaobass 来自手机 班长 2024-10-28 00:40:26
18#
哈哈 哈哈
回复 使用道具 举报
ooppoo 士兵 2024-12-1 07:50:09
19#
谢谢大佬的分享,支持。
回复 使用道具 举报
ooppoo 士兵 2024-12-1 08:42:35
20#
shxhynzxb 发表于 2024-9-27 20:04
python显示invalid decimal literal怎么办

1.先安装 Visual C++ Build Tools:
勾选并安装desktop development with C++和.Net desktop build tools

2.安装python模块
先更新pip到最新版
pip install -r .\requirements.txt
回复 使用道具 举报
ooppoo 士兵 2024-12-1 09:42:02
21#
补充一下,下面这个报错是正常的,可以进行下一步。
  1. (.venv) PS E:\code\python\shuaji> python edl.py w recovery ./recovery-8110.img --loader=./8k.mbn
  2. Capstone and Keystone libraries missing.
  3. Qualcomm Sahara / Firehose Client V3.1 (c) B.Kerler 2018-2021.
  4. Library.utils - Using loader ./8k.mbn ...
  5. Library.utils - Waiting for the device
  6. Library.utils - Device detected :)
  7. Library.utils - Mode detected: sahara
  8. Device is in EDL mode .. continuing.
  9. Library.sahara -
  10. ------------------------
  11. HWID:              0x009600e100420029 (MSM_ID:0x009600e1,OEM_ID:0x0042,MODEL_ID:0x0029)
  12. PK_HASH:           0x952bed90f6e9eac6e28da21916da4410e3dfebd81c5523ad712bb226db0b5df3
  13. Serial:            0x1e11ed8d

  14. Library.sahara - Using loader ./8k.mbn ...
  15. Successfully uploaded programmer :)
  16. Library.utils - Nop succeeded.
  17. Library.utils - No supported functions detected, configuring qc generic commands
  18. Library.utils - <?xml version="1.0" encoding="UTF-8" ?><data><log value="logbuf@0x08057EB8 fh@0x08054D20" /></data>
  19. Library.utils - TargetName=MSM8909
  20. Library.utils - MemoryName=eMMC
  21. Library.utils - Version=1
  22. Library.utils - Supported functions:
  23. -----------------
  24. configure,program,firmwarewrite,patch,setbootablestoragedrive,ufs,emmc,power,benchmark,read,getstorageinfo,getcrc16digest,getsha256digest,erase,peek,poke,nop,xml   
  25. Library.utils - Target detected: MSM8909
  26. Library.utils -
  27. Writing to physical partition 0, sector 2488416, sectors 32411
  28. Progress: |██████████████████████████████████████████████████| 99.0% CompleteTraceback (most recent call last):
  29.   File "E:\code\python\shuaji\edl.py", line 372, in <module>
  30.     main()
  31.   File "E:\code\python\shuaji\edl.py", line 355, in main
  32.     fh.handle_firehose(cmd,options)
  33.   File "E:\code\python\shuaji\Library\firehose_client.py", line 520, in handle_firehose
  34.     if self.firehose.cmd_program(lun, partition.sector, filename):
  35.   File "E:\code\python\shuaji\Library\firehose.py", line 308, in cmd_program
  36.     self.cdc.write(wdata, wlen)
  37.   File "E:\code\python\shuaji\Library\usblib.py", line 224, in write
  38.     self.device.write(self.EP_OUT, b'')
  39.   File "E:\code\python\shuaji\.venv\lib\site-packages\usb\core.py", line 989, in write
  40.     return fn(
  41.   File "E:\code\python\shuaji\.venv\lib\site-packages\usb\backend\libusb0.py", line 545, in bulk_write
  42.     return self.__write(_lib.usb_bulk_write,
  43.   File "E:\code\python\shuaji\.venv\lib\site-packages\usb\backend\libusb0.py", line 681, in __write
  44.     return int(_check(fn(
  45.   File "E:\code\python\shuaji\.venv\lib\site-packages\usb\backend\libusb0.py", line 447, in _check
  46.     raise USBError(errmsg, ret)
  47. usb.core.USBError: [Errno None] b'libusb0-dll:err [_usb_reap_async] timeout error\n'
  48. (.venv) PS E:\code\python\shuaji>
复制代码
回复 使用道具 举报
ooppoo 士兵 2024-12-1 10:05:29
22#
再补充下楼主文档里的git clone https://gitlab.com/suborg/8k-boot-patcher.git && cd 8k-boot-patcher,这段命令不要直接复制,因为文档里clone后面不是空格,直接复制运行提示不支持命令,改为空格就好了。
顺便感谢楼主的教程。
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册