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

issue with raise InvalidSize(format(msg, size, tokens)) #70

Open
killmasta93 opened this issue May 3, 2023 · 0 comments
Open

issue with raise InvalidSize(format(msg, size, tokens)) #70

killmasta93 opened this issue May 3, 2023 · 0 comments

Comments

@killmasta93
Copy link

killmasta93 commented May 3, 2023

Hi Recently been getting an issue getting this error, i thought it was the version so i updated also

Name: humanfriendly
Version: 10.0
Summary: Human friendly output for text interfaces using Python
Home-page: https://humanfriendly.readthedocs.io
Author: Peter Odding
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.5/dist-packages
Requires:

 File "/usr/local/lib/python3.5/dist-packages/humanfriendly/__init__.py", line 258, in parse_size
    raise InvalidSize(format(msg, size, tokens))

this is part of the script

 # Extract Added Bytes
        RLOG_ADDED=$(cat $RLOG | grep 'Added to the repo' | awk '{print $5,$6}' | \
                python3 -c 'import sys; import humanfriendly; print (humanfriendly.parse_size(sys.stdin.read(), binary=True))' )
        arr+=("- rescript.backup.added[$REPO] $TIME $RLOG_ADDED")
        echo "Bytes Added:      $RLOG_ADDED"

and part of the added to the repo was

Added to the repo: 117.726 GiB

could it be its not recognizing the size?

changed the 117.726 Gib to

11.26 GiB and it worked so something odd with the reading ?

Thank you

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