ProtonVPN / linux-cli

Official ProtonVPN Linux app (CLI)
https://protonvpn.com/download-linux
GNU General Public License v3.0
332 stars 42 forks source link

Unable to generate logs: PY_SSIZE_T_CLEAN macro must be defined for '#' formats #90

Open BenjaminGuzman opened 1 year ago

BenjaminGuzman commented 1 year ago

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):


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.