The program worked correctly, then when I tried to install the IMAPClient module I got an error:
sudo pip3 install IMAPClient
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/usr/local/lib/python3.6/dist-packages/run/__init__.py", line
121, in create_process
shlex.split(command),
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 136, in read_token
**strong text**nextchar = self.instream.read(1)
AttributeError: 'tuple' object has no attribute 'read'
I tried to reinstall pip, I also thought that there was a problem in some of the installed packages, if I try to display a list of packages, I get:
pip3 list
Package Version
------------------------ ---------
apt-clone 0.2.1
apturl 0.5.2
asn1crypto 0.24.0
bcrypt 3.1.4
(some more packages).........
Really looking forward to advice, honestly searched the forum before asking.