linux-cli icon indicating copy to clipboard operation
linux-cli copied to clipboard

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

Open BenjaminGuzman opened this issue 3 years ago • 0 comments

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.

BenjaminGuzman avatar Jan 22 '23 22:01 BenjaminGuzman