Hey I am trying to use gnupg to encrypt some files before uploading to 3rd party sftp. I keep running into an error while trying to import gnupg. I installed it with pip. Any help would be greatly appreciated. Thanks!
02:25 ~/TXU/Enroll_Status $ python run_upload.py
Traceback (most recent call last):
File "run_upload.py", line 1, in <module>
import gnupg
File "/home/tfndevelopment/.local/lib/python2.7/site-packages/gnupg/__init__.py", line 23, in <module>
from . import gnupg
File "/home/tfndevelopment/.local/lib/python2.7/site-packages/gnupg/gnupg.py", line 42, in <module>
from ._meta import GPGBase
File "/home/tfndevelopment/.local/lib/python2.7/site-packages/gnupg/_meta.py", line 131, in <module>
class GPGBase(object):
File "/home/tfndevelopment/.local/lib/python2.7/site-packages/gnupg/_meta.py", line 72, in __new__
if cls._find_agent():
File "/home/tfndevelopment/.local/lib/python2.7/site-packages/gnupg/_meta.py", line 105, in _find_agent
this_process = psutil.Process(os.getpid())
File "/usr/local/lib/python2.7/dist-packages/psutil/__init__.py", line 232, in __init__
raise NoSuchProcess(pid, None, 'no process found with pid %s' % pid)
psutil._error.NoSuchProcess: no process found with pid 22517