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

Assertion Error #3

Open
IxidorZZ opened this issue Jun 8, 2019 · 1 comment
Open

Assertion Error #3

IxidorZZ opened this issue Jun 8, 2019 · 1 comment

Comments

@IxidorZZ
Copy link

IxidorZZ commented Jun 8, 2019

Hello community,
I am completely new to Python and I am trying to check the signature for the ZIP on Windows 10 using the command line. Hopefully someone can give me a hint how to solve my problem.
When applying the second line ("python3 update_verifier.py lineageos4microg_pubkey /path/to/zip"), I received the following error in the command line: "AssertionError: Footer has wrong magic".

The input of the command line looks the following:
C:\Windows\System32>H:\Programme\sonst\Python\python.exe H:\Programme\sonst\Python\Smartphone\LineageOS_microG\Python\update_verifier.py H:\Programme\sonst\Python\Smartphone\LineageOS_microG\Python\update_verifier-master\lineageos4microg_pubkey H:\Programme\sonst\Python\Smartphone\LineageOS_microG\Python\update_verifier-master.zip

I acted by dragging and dropping the components into the command line, which worked for the first line of the description (Usage, "pip3 install -r requirements.txt").

Python has the version 3.7.3 and I use Windows 10, 64 bit.

Thank you very much in advance.

Kind regards
Tobias

@Sasquiche
Copy link

Sasquiche commented Aug 12, 2019

When you pasted in "python3 update_verifier.py lineageos4microg_pubkey /path/to/zip" did you replace "path/to/zip/" with the path to the actual zip file?

I was also experiencing the same issue and couldn't figure it out. For me the issue was I was using the sha256sum zip from the website to check with the verifier script.

Once I downloaded the actual ROM (just the .zip not sha256sum or md5) I ran the script once again:

python3 update_verifier.py lineageos4microg_pubkey Users/Me/the/path/to/lineage-xx.x-xxxxxxxx-microG-xxx.zip

and got another error:

FileNotFoundError: [Errno 2] No such file or directory: 'lineagos4microg_pubkey'

So I just typed the whole path to "lineagos4microg_pubkey" (even though I was running the script from it's same directory).

verified successfully

Hope that helps.

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