Problem with python after Upgrade to Mint 20

these three steps worked like a charm in my mint 20 xfce vm:

sudo apt install python3 python3-dev python3-pip git
sudo pip3 install git+https://github.com/0-duke/wdpassport-utils
sudo pip3 install --user git+https://github.com/crypto-universe/py_sg

so they should work just fine for ubuntu 20 or anything based on it like mint 20 with whichever de you choose.

the first step is like the one you used before (sudo apt-get install python-pip python-dev lsscsi), but adds the installation of python3 itself and updates the other two packages to the python3 version. git is added to help with the next two steps. on ubuntu-based distros (more about mx19 later) this step also takes care of the second one you were using before (sudo apt install python-setuptools python-wheel). those packages (updated to python3 versions) were installed along with the three listed.

the second step replaces the fourth and fifth steps you had before (cd ~; wget https://raw.githubusercontent.com/evox95/wdpassport-utils/master/wdpassport-utils.py and chmod +x /home/easyt50/wdpassport-utils.py). in this step pip3 (python package installer) uses git (replacing wget) to download and install the majority of the program.

the third step uses the same process as the second to replace the third step you had before (sudo pip install py_sg) to install the final piece of the program and i believe the --user option means you don’t have to add /home/easyt50/ or ~/ when you run the program. i simply ran sudo wdpassport-utils.py and it worked.

part of the reason i made that previous post was because you had mentioned distro hopping and mx19. i was curious to see if an install was different on something debian-based so i tried it on an mx19.2 vm. it turned out that the second of these new three steps failed because python3-setuptools python3-wheel were not automatically installed with the first step. once i installed them, everything went just as easily as it had with mint 20 xfce.

so for mx 19.2 (and probably other debian-based distros, but no promises :slight_smile:) the process was these four steps:

sudo apt install python3 python3-dev python3-pip git
sudo apt install python3-setuptools python3-wheel
sudo pip3 install git+https://github.com/0-duke/wdpassport-utils
sudo pip3 install --user git+https://github.com/crypto-universe/py_sg

bonus image of nemo (on the left. thunar on the right) on mx 19.2 just because i was there and installing stuff:
https://imgur.com/a/QyhGOxn

2 Likes