Replies: 1 comment
-
|
Hi! Did you try with the prebuilt boot-gen1-patched.img file instead of building your own? As explained in the Quickstart (step 5) you can download it from the Github releases page. The error you get suggest that this is a Windows issue. I haven't tested the python scripts on Windows, only on Linux/macOS. If you really need to rebuild the img file you could try in a Linux virtual machine under Windows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all
Disclaimer - I'm not a coder!
My storytel was unable to connect to Mofibo servers, so it's been factory reset. It could connect to wifi like a charm, but not receive any updates.
I've been following the guide on my win10 machine, no hiccups, before I get to :
python3 tools/repack.py --boot_img tmp/boot.img --out_img tmp/boot-gen1-patched.img --mods_dir mods/gen1/
The result is:
E:\StorytelReaderMods>python3 tools/repack.py --boot_img tmp/boot.img --out_img tmp/boot-gen1-patched.img --mods_dir mods/gen1/
Using work dir: C:\Users\parabaz\AppData\Local\Temp\tmpec1rrce3
Unpacking E:\StorytelReaderMods\tmp\boot.img
Applying patch file: E:\StorytelReaderMods\mods\gen1\01.patch
Packing E:\StorytelReaderMods\tmp\boot-gen1-patched.img
Traceback (most recent call last):
File "E:\StorytelReaderMods\tools\repack.py", line 82, in
main()
~~~~^^
File "E:\StorytelReaderMods\tools\repack.py", line 73, in main
repack(
~~~~~~^
Path(args.boot_img).absolute().resolve(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
args.work_dir
^^^^^^^^^^^^^
)
^
File "E:\StorytelReaderMods\tools\repack.py", line 68, in repack
pack(out_img, work_dir, extra_ramdisk_files_attrs)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\StorytelReaderMods\tools\pack.py", line 46, in pack
cpioinfo = f.getcpioinfo(file, arcname)
File "E:\StorytelReaderMods\tools\utils\cpiofile.py", line 1266, in getcpioinfo
cpioinfo.devmajor = os.major(statres.st_dev)
^^^^^^^^
AttributeError: module 'os' has no attribute 'major'
Any ideas?
Regards, Peter
Beta Was this translation helpful? Give feedback.
All reactions