ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

crashes on debian 10.1, python 3.7.3 #55

Open hoosierEE opened 4 years ago

hoosierEE commented 4 years ago

From a fresh clone of this repo, master branch, I modified the first line to be this:

#!/usr/bin/python3

It crashes:

./ssh-ident me@somehost

Traceback (most recent call last):
  File "./ssh-ident", line 316, in <module>
    import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'

Python3's distutils module has a different interface from python2, but my sense is that you're mainly using it for the find_executable feature. There is shutil.which() in python3 that might be a good alternative.

hoosierEE commented 4 years ago

I created a pull request for this at #56