codexctl icon indicating copy to clipboard operation
codexctl copied to clipboard

Extract Command not working properly

Open KingTuts-00 opened this issue 1 year ago • 5 comments

This is probably a bit of a noob comment but I am having trouble getting my .signed file to extract properly. I am trying to roll back to a version support by rmHacks and I have read the comments detailing how to do that. My issue is that no matter how I try to enter the argument to extract the .signed file I get the items below.

C:\Users\trace>C:\Users\trace\OneDrive\Documents\windows-latest\codexctl.exe download latest Downloading 3.11.2.5 to downloads folder Warning for 3.11.2.5: This version changes the update mechanism, which codexctl currently does not support. If you install this version, you will not be able to downgrade using codexctl. [==================================================] Done! (3.11.2.5_reMarkable2-qLFGoqPtPL.signed)

C:\Users\trace>C:\Users\trace\OneDrive\Documents\windows-latest\codexctl.exe extract 3.11.2.5_reMarkable2-qLFGoqPtPL.signed Traceback (most recent call last): File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\codexctl.py", line 12, in <module> File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\codexctl\__init__.py", line 808, in main File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\codexctl\__init__.py", line 627, in do_extract File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\codexctl\__init__.py", line 255, in get_update_image File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\remarkable_update_image\image.py", line 393, in __new__ File "C:\Users\trace\AppData\Local\Temp\ONEFIL~3\remarkable_update_image\image.py", line 77, in __init__ FileNotFoundError: [Errno 2] No such file or directory: '3.11.2.5_reMarkable2-qLFGoqPtPL.signed'

The signed file appears in my downloads but then I cannot create the output file. It also does not seem to help if I move the .signed file to a different location or spell out its file path explicitly in the extract command.

What am I doing wrong?

KingTuts-00 avatar Nov 19 '24 05:11 KingTuts-00

You aren't passing the path to the image to extract properly, it's downloaded to your downloads folder by default. What is an example of you trying to "spell out" the file path explicitly and not working.

Eeems avatar Nov 19 '24 05:11 Eeems

I’d do something like below where I put the file path to the .signed file.

C:\Users\trace>C:\Users\trace\OneDrive\Documents\windows-latest\codexctl.exe extract C:\Users\trace\downloads\3.11.2.5_reMarkable2-qLFGoqPtPL.signed

But even when I have both codexctl and the .signed file in the same location I’m getting this error.

KingTuts-00 avatar Nov 19 '24 05:11 KingTuts-00

I'm unable to replicate your issue: image

Eeems avatar Nov 19 '24 05:11 Eeems

Ok so I am able to get there now, I moved everything into my Downloads folder and now it will run and give me to the same "Public key missing" as you.

Next step, am I supposed to see the .img file that I have created? I don't see it in my Downloads folder. :\Users\trace>C:\Users\trace\Downloads\codexctl.exe extract --out 3.11.2.5.img C:\Users\trace\Downloads\3.11.2.5_reMark able2-qLFGoQPtPL.signed C:\Users\trace\AppData\Local\Temp\ONEFIL~4\codexctl\__init__.py:269: RuntimeWarning: Public key missing

KingTuts-00 avatar Nov 19 '24 14:11 KingTuts-00

The file you created was called 3.11.2.5.img, and you created it while in the C:\Users\trace directory, so it won't be in your downloads folder, it'll be there. If you wanted to create it in your downloads folder instead of your current folder you would run the following:

.\Downloads\codexctl.exe extract --out .\Downloads\3.11.2.5.img .\Downloads\3.11.2.5_reMark able2-qLFGoQPtPL.signed

Eeems avatar Nov 19 '24 16:11 Eeems