We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
distutils
As per https://docs.python.org/3.12/whatsnew/3.12.html distutils is removed from Python 3.12 Of note, the distutils package has been removed from the standard library.
Of note, the distutils package has been removed from the standard library.
Executing sncli now throws ModuleNotFoundError: No module named 'distutils'
sncli
ModuleNotFoundError: No module named 'distutils'
The text was updated successfully, but these errors were encountered:
Hi,
Here's how I've solved this issue in simplenote_cli/clipboard.py
@@ -1,5 +1,5 @@ import os -from distutils import spawn +from shutil import which from subprocess import Popen, PIPE @@ -8,9 +8,9 @@ self.copy_command = self.get_copy_command() def get_copy_command(self): - if (spawn.find_executable('xsel')): + if (which('xsel')): return ['xsel', '-ib'] - if (spawn.find_executable('pbcopy')): + if (which('pbcopy')): return ['pbcopy'] return None
Sorry, something went wrong.
Closed with this commit
@clauseggers please close the issue
No branches or pull requests
As per https://docs.python.org/3.12/whatsnew/3.12.html
distutils
is removed from Python 3.12Of note, the distutils package has been removed from the standard library.
Executing
sncli
now throwsModuleNotFoundError: No module named 'distutils'
The text was updated successfully, but these errors were encountered: