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

Extract Command not working properly #100

Open
KingTuts-00 opened this issue Nov 19, 2024 · 5 comments
Open

Extract Command not working properly #100

KingTuts-00 opened this issue Nov 19, 2024 · 5 comments

Comments

@KingTuts-00
Copy link

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?

@Eeems
Copy link
Collaborator

Eeems commented Nov 19, 2024

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.

@KingTuts-00
Copy link
Author

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.

@Eeems
Copy link
Collaborator

Eeems commented Nov 19, 2024

I'm unable to replicate your issue:
image

@KingTuts-00
Copy link
Author

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

@Eeems
Copy link
Collaborator

Eeems commented Nov 19, 2024

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

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