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

Pyznap won't run on Ubuntu server 22.04 #97

Open
lockheed opened this issue Mar 5, 2023 · 2 comments
Open

Pyznap won't run on Ubuntu server 22.04 #97

lockheed opened this issue Mar 5, 2023 · 2 comments

Comments

@lockheed
Copy link

lockheed commented Mar 5, 2023

It is a superb tool, but I cannot get it to run on Ubuntu Server 22.04. I installed it with
pip install pyznap
but when run, I get this:

# /usr/local/bin/pyznap snap
Mar 05 19:55:15 INFO: Starting pyznap...
Traceback (most recent call last):
  File "/usr/local/bin/pyznap", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/pyznap/main.py", line 170, in main
    return _main()
  File "/usr/local/lib/python3.10/dist-packages/pyznap/main.py", line 98, in _main
    config = read_config(config_path)
  File "/usr/local/lib/python3.10/dist-packages/pyznap/utils.py", line 105, in read_config
    dic[option] = int(value)
ValueError: invalid literal for int() with base 10: '4                          # Keep 4 frequent snapshots
`
@yboetz
Copy link
Owner

yboetz commented Mar 5, 2023

Hey. You need to remove the comments from the config file :). It cannot detect them and thus parses the entire line, so also reads the part after # as value in the config.

@lockheed
Copy link
Author

lockheed commented Mar 5, 2023

Fantastic. Thanks so much!

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