Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #33

Open
CanerKaraca23 opened this issue Dec 25, 2023 · 15 comments
Open

Error #33

CanerKaraca23 opened this issue Dec 25, 2023 · 15 comments

Comments

@CanerKaraca23
Copy link

I got this error when i want to use the tool

Traceback (most recent call last): File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator_gui\main.py", line 512, in create_zip _, invalid_files = firmware_creator.extract() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 486, in extract self.extractor.extract(files_to_extract) File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator\extractors\zip_extractor.py", line 91, in extract self.handler.extract(files_to_extract) File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator\extractors\handlers\android_one_zip.py", line 58, in extract parse_payload(self.payload, partition, out_f) File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 99, in parse_payload r = decompress_payload('xzcat', data, e.num_blocks * BLOCK_SIZE, operation.data_sha256_hash) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Roaming\Python\Python312\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 82, in decompress_payload p = subprocess.Popen([command, '-'], stdout=subprocess.PIPE, stdin=subprocess.PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python312\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python312\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the specified file

@yshalsager
Copy link
Member

@CanerKaraca23 What's the tool version?

@CanerKaraca23
Copy link
Author

@CanerKaraca23 What's the tool version?

Latest, 2.3.17.

@yshalsager
Copy link
Member

@CanerKaraca23 can you please send the command you are tring to run?

@yshalsager
Copy link
Member

Another thing, the tool isn't tested on Py3.12 yet. so can you try using 3.11 and see?

@CanerKaraca23
Copy link
Author

@CanerKaraca23 can you please send the command you are tring to run?

I'm not running any command, i just opened GUI, selected rom zip and clicked start and then cmd gives this error. Will try on 3.11.

@CanerKaraca23
Copy link
Author

Got same error. @yshalsager

Traceback (most recent call last): File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator_gui\main.py", line 512, in create_zip _, invalid_files = firmware_creator.extract() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 486, in extract self.extractor.extract(files_to_extract) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\zip_extractor.py", line 91, in extract self.handler.extract(files_to_extract) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\handlers\android_one_zip.py", line 58, in extract parse_payload(self.payload, partition, out_f) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 99, in parse_payload r = decompress_payload('xzcat', data, e.num_blocks * BLOCK_SIZE, operation.data_sha256_hash) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 82, in decompress_payload p = subprocess.Popen([command, '-'], stdout=subprocess.PIPE, stdin=subprocess.PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the specified file

@yshalsager
Copy link
Member

yshalsager commented Dec 25, 2023

@CanerKaraca23 are you selecting a zip from C:/ drive like downloads or documents? Try moving to somewhere else.

@CanerKaraca23
Copy link
Author

@CanerKaraca23 are you selecting a zip from C:/ drive like downloads or documents? Try moving to somewhere else.

I'm selecting from Downloads. Will try on different folders.

@CanerKaraca23
Copy link
Author

CanerKaraca23 commented Dec 26, 2023

@CanerKaraca23 are you selecting a zip from C:/ drive like downloads or documents? Try moving to somewhere else.

I'm selecting from Downloads. Will try on different folders.

Tried on multiple different folders, still same error. @yshalsager

@CanerKaraca23
Copy link
Author

Even cli version gives same error @yshalsager

Unzipping MIUI ROM... Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\__main__.py", line 5, in <module> main() File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\xiaomi_flashable_firmware_creator.py", line 43, in main new_zip = firmware_creator.auto() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 522, in auto _, invalid_files = self.extract() ^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\firmware_creator.py", line 486, in extract self.extractor.extract(files_to_extract) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\zip_extractor.py", line 91, in extract self.handler.extract(files_to_extract) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\handlers\android_one_zip.py", line 58, in extract parse_payload(self.payload, partition, out_f) File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 99, in parse_payload r = decompress_payload('xzcat', data, e.num_blocks * BLOCK_SIZE, operation.data_sha256_hash) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\site-packages\xiaomi_flashable_firmware_creator\extractors\ota_payload_extractor\extract_android_ota_payload.py", line 82, in decompress_payload p = subprocess.Popen([command, '-'], stdout=subprocess.PIPE, stdin=subprocess.PIPE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\caner\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] The system cannot find the specified file

@yshalsager
Copy link
Member

@CanerKaraca23 are you selecting a zip from C:/ drive like downloads or documents? Try moving to somewhere else.

I'm selecting from Downloads. Will try on different folders.

Move to another drive please, it will work.

@CanerKaraca23
Copy link
Author

@CanerKaraca23 are you selecting a zip from C:/ drive like downloads or documents? Try moving to somewhere else.

I'm selecting from Downloads. Will try on different folders.

Move to another drive please, it will work.

I don't have another drive, will split but can it work on USB drive?

@yshalsager
Copy link
Member

I don't have another drive, will split but can it work on USB drive?

Try this solution https://stackoverflow.com/a/61766417

@CanerKaraca23
Copy link
Author

CanerKaraca23 commented Jan 13, 2024

I don't have another drive, will split but can it work on USB drive?

Try this solution https://stackoverflow.com/a/61766417

Disabled all security, moved to another drive, runned as administrator but still same error.

@yshalsager

@yshalsager
Copy link
Member

I don't have another drive, will split but can it work on USB drive?

Try this solution https://stackoverflow.com/a/61766417

Disabled all security, moved to another drive, runned as administrator but still same error.

@yshalsager

I would suggest running the tool from Windows subsystem for Linux (WSL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants