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

emonSDexpand #38

Open
NWItaly opened this issue Oct 24, 2023 · 0 comments
Open

emonSDexpand #38

NWItaly opened this issue Oct 24, 2023 · 0 comments

Comments

@NWItaly
Copy link

NWItaly commented Oct 24, 2023

A few days ago I downloaded new emonSD image and I flashed it in a 32GB micro SD for a raspberry 2.
When I tried to execute emonSDexpand I received this message:

SyntaxError: Missing parentheses in call to 'print' or similar. I don’t have an exact copy of error.
So I tried to modify emonSDexpand script. I finded 2 rows that use “print”. I added 2 parenthesis and bug was solved.

Previous:

echo " SD card total disk size = "$(python -c "print $PART_END * 512.0 / 1073741824")"Gb"
echo " Data Partition size     = "$(python -c "print ($DATA_END - $DATA_START + 1) * 512.0 / 1073741824")"Gb"

Resolved:

echo " SD card total disk size = "$(python -c "print($PART_END * 512.0 / 1073741824)")"Gb"
echo " Data Partition size     = "$(python -c "print(($DATA_END - $DATA_START + 1) * 512.0 / 1073741824)")"Gb"
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

1 participant