Skip to content

errors during init.sh #16

@ia-S-on

Description

@ia-S-on

this is what came back: init.sh errors, then run fail.

(venv) root@mint-Z1040HF:/home/mint/extractor# ./scripts/init.sh
*** Initializing Extractor build environment
Submodule 'kdzextractor' (https://github.com/innfinite4evr/Kdzextractor.git) registered for path 'kdzextractor'
Submodule 'nokia-dumper' (https://github.com/stze/Home-Brew_Tool-Nokia.git) registered for path 'nokia-dumper'
Submodule 'sinextract' (https://github.com/stze/anyxperia_dumper.git) registered for path 'sinextract'
Submodule 'splituapp' (https://github.com/stze/splituapp.git) registered for path 'splituapp'
Cloning into '/home/mint/extractor/kdzextractor'...
Cloning into '/home/mint/extractor/nokia-dumper'...
Cloning into '/home/mint/extractor/sinextract'...
Cloning into '/home/mint/extractor/splituapp'...
Submodule path 'kdzextractor': checked out '600c49114ffb518cbdf8f6e9eb51caef95660ed9'
Submodule path 'nokia-dumper': checked out '22de8dd21ff848c24725e6908452d4dfa7da57af'
Submodule path 'sinextract': checked out '11d89e213312de6141028729e4f881d011a06227'
Submodule path 'splituapp': checked out '986612c507d5d428774b6fdb470527993895fd42'
cc -Wall -O2 -Iinclude -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1   -c -o sony_dump.o sony_dump.c
cc -Wall -O2 -Iinclude -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1   -c -o unpackbootimg.o unpackbootimg.c
cc -Wall -O2 -Iinclude -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1   -c -o lz4.o lz4.c
cc -Wall -O2 -Iinclude -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1   -c -o untar.o untar.c
untar.c: In function ‘untar’:
untar.c:545:41: warning: argument 1 null where non-null expected [-Wnonnull]
545 |                                         fclose(f);
    |                                         ^~~~~~~~~
In file included from untar.c:25:
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:565:49: warning: argument 1 null where non-null expected [-Wnonnull]
565 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:575:49: warning: argument 1 null where non-null expected [-Wnonnull]
575 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:596:49: warning: argument 1 null where non-null expected [-Wnonnull]
596 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:605:49: warning: argument 1 null where non-null expected [-Wnonnull]
605 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:614:49: warning: argument 1 null where non-null expected [-Wnonnull]
614 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:623:49: warning: argument 1 null where non-null expected [-Wnonnull]
623 |                                                 fclose(f);
    |                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:654:57: warning: argument 1 null where non-null expected [-Wnonnull]
654 |                                                         fclose(f);
    |                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:683:81: warning: argument 1 null where non-null expected [-Wnonnull]
683 |                                                                                 fclose(f);
    |                                                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:692:81: warning: argument 1 null where non-null expected [-Wnonnull]
692 |                                                                                 fclose(f);
    |                                                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:703:81: warning: argument 1 null where non-null expected [-Wnonnull]
703 |                                                                                 fclose(f);
    |                                                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:752:73: warning: argument 1 null where non-null expected [-Wnonnull]
752 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:761:73: warning: argument 1 null where non-null expected [-Wnonnull]
761 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:774:81: warning: argument 1 null where non-null expected [-Wnonnull]
774 |                                                                                 fclose(f);
    |                                                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:803:73: warning: argument 1 null where non-null expected [-Wnonnull]
803 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:811:73: warning: argument 1 null where non-null expected [-Wnonnull]
811 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:821:73: warning: argument 1 null where non-null expected [-Wnonnull]
821 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:838:73: warning: argument 1 null where non-null expected [-Wnonnull]
838 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:850:73: warning: argument 1 null where non-null expected [-Wnonnull]
850 |                                                                         fclose(f);
    |                                                                         ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
untar.c:898:65: warning: argument 1 null where non-null expected [-Wnonnull]
898 |                                                                 fclose(f);
    |                                                                 ^~~~~~~~~
/usr/include/stdio.h:184:12: note: in a call to function ‘fclose’ declared ‘nonnull’
184 | extern int fclose (FILE *__stream) __nonnull ((1));
    |            ^~~~~~
cc -o sinextract sony_dump.o unpackbootimg.o lz4.o untar.o -lz 
(venv) root@mint-Z1040HF:/home/mint/extractor#

then

(venv) root@mint-Z1040HF:/home/mint# extractor/extractor.py /mnt/space/PhoneROM/CypressPoint.zip --system-dir-output /mnt/space/PhoneROM/CypressPoint
2026-03-17 14:31:40,378 root         INFO    :  tmpdir=b'/tmp/ANDROID_EXTRACT_0wyd4sm0'
2026-03-17 14:31:40,617 root         INFO    :  EXTRACTION_STEP: handler_stage_1_TopLevelZipHandler = handler_initial.get_next_handler()
2026-03-17 14:31:40,617 root         INFO    :  EXTRACTION_STEP: self.create_stage_dir(b'stage_1_TopLevelZipHandler')
2026-03-17 14:31:40,617 root         INFO    :  EXTRACTION_STEP: handler_stage_1_TopLevelZipHandler.extract_file2dir(b'stage_1_TopLevelZipHandler')
2026-03-17 14:31:40,617 root         INFO    :  ZipHandler: cmd=['unzip', '-q', b'/mnt/space/PhoneROM/CypressPoint.zip']  cwd=b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler'
2026-03-17 14:32:00,088 root         INFO    :  EXTRACTION_STEP: handler_stage_2_ArchiveDirectoryHandler = ArchiveDirectoryHandler(self, b'stage_1_TopLevelZipHandler')
2026-03-17 14:32:00,108 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/care_map.pb' since no handler matches
2026-03-17 14:32:00,118 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload_properties.txt' since no handler matches
2026-03-17 14:32:00,121 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/apex_info.pb' since no handler matches
2026-03-17 14:32:00,140 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin' since no handler matches
2026-03-17 14:32:00,143 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/metadata.pb' since no handler matches
2026-03-17 14:32:00,153 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/metadata' since no handler matches
2026-03-17 14:32:00,155 root         INFO    :  Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/otacert' since no handler matches
2026-03-17 14:32:00,155 root         INFO    :  PASS1: total_handled_size=0  total_unmatched_size=2763745932  ignored_archive_size=0  found_system_img=False  found_vendor_img=False
2026-03-17 14:32:00,155 root         INFO    :  ArchiveDirectoryHandler.get_handlers(): Going to pass 2
2026-03-17 14:32:00,159 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/care_map.pb' since no handler matches
2026-03-17 14:32:00,167 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload_properties.txt' since no handler matches
2026-03-17 14:32:00,170 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/apex_info.pb' since no handler matches
2026-03-17 14:32:00,188 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin' since no handler matches
2026-03-17 14:32:00,191 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/metadata.pb' since no handler matches
2026-03-17 14:32:00,200 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/metadata' since no handler matches
2026-03-17 14:32:00,202 root         INFO    :  PASS2: Ignoring file b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/META-INF/com/android/otacert' since no handler matches
2026-03-17 14:32:00,203 root         INFO    :  ArchiveDirectoryHandler.get_handlers(): PASS2: Biggest file: 2635.708MiB/2635.714MiB (100.00%): b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin'
2026-03-17 14:32:00,375 root         INFO    :  Selected handler <class '__main__.NokiaPayloadBinHandler'> for b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin'
2026-03-17 14:32:00,375 root         INFO    :  EXTRACTION_STEP: self.create_stage_dir(b'stage_3_NokiaPayloadBinHandler')
2026-03-17 14:32:00,375 root         INFO    :  EXTRACTION_STEP: handler_stage_3_NokiaPayloadBinHandler.extract_file2dir(b'stage_3_NokiaPayloadBinHandler')
2026-03-17 14:32:00,375 root         INFO    :  NokiaPayloadBinHandler.extract_file2dir(b'stage_3_NokiaPayloadBinHandler'): cmd=['python3', '/home/mint/extractor/nokia-dumper/payload_dumper.py', b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin', b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_3_NokiaPayloadBinHandler']
Traceback (most recent call last):
  File "/home/mint/extractor/nokia-dumper/payload_dumper.py", line 12, in <module>
    import update_metadata_pb2 as um
  File "/home/mint/extractor/nokia-dumper/update_metadata_pb2.py", line 8, in <module>
    from google.protobuf import reflection as _reflection
  File "/home/mint/venv/lib/python3.12/site-packages/google/protobuf/reflection.py", line 51, in <module>
    from google.protobuf import message_factory
  File "/home/mint/venv/lib/python3.12/site-packages/google/protobuf/message_factory.py", line 49, in <module>
    from google.protobuf.internal import python_message as message_impl
  File "/home/mint/venv/lib/python3.12/site-packages/google/protobuf/internal/python_message.py", line 59, in <module>
    from six.moves import range
ModuleNotFoundError: No module named 'six.moves'
Traceback (most recent call last):
  File "/home/mint/extractor/extractor.py", line 2363, in <module>
    main()
  File "/home/mint/extractor/extractor.py", line 65, in main
    extractor.extract(output_system_tar=args.tar_output, output_system_dir=args.system_dir_output, output_boot_img_path=output_boot_img_path, output_recovery_img_path=output_recovery_img_path, allow_missing_vendor=args.allow_missing_vendor)
  File "/home/mint/extractor/extractor.py", line 2118, in extract
    handler.extract_file2dir(queue_item.stage_dir)
  File "/home/mint/extractor/extractor.py", line 1508, in extract_file2dir
    subprocess.check_call(cmd)
  File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python3', '/home/mint/extractor/nokia-dumper/payload_dumper.py', b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_1_TopLevelZipHandler/payload.bin', b'/tmp/ANDROID_EXTRACT_0wyd4sm0/stage_3_NokiaPayloadBinHandler']' returned non-zero exit status 1.
(venv) root@mint-Z1040HF:/home/mint# 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions