Unable to generate logs: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
We are happy to answer your questions about the code or discuss technical ideas.
Please complete the following checklist (by adding [x]):
- [x] I have searched open and closed issues for duplicates
- [x] This isn't a feature request
- [x] This is not a report about my app not working as expected
When installing from source there is a problem if you have python >= 3.10. If you execute protonvpn-cli --get-logs you'll encounter this error: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats which is not directly an error of this project but definitely affects it.
The error actually comes from systemd python dependency. https://github.com/systemd/python-systemd/issues/107
It has already been solved, but release is not in PyPI yet (https://github.com/systemd/python-systemd/issues/120).
Solution is to wait until the bug-free release is uploaded to PyPI, or build the dependency from source.