aydinnyunus / Keylogger

Get Keyboard,Mouse,ScreenShot,Microphone Inputs from Target Computer and Send to your Mail.
Apache License 2.0
2.08k stars 442 forks source link

NameError: name 'keyboard' is not defined #33

Open johnrogerpap opened 1 year ago

johnrogerpap commented 1 year ago

Why am i having this message?

Traceback (most recent call last): File "/home/kali/Keylogger/keylogger.py", line 9, in import pyscreenshot File "/home/kali/.local/lib/python3.9/site-packages/pyscreenshot/init.py", line 5, in from pyscreenshot.loader import Loader, FailedBackendError File "/home/kali/.local/lib/python3.9/site-packages/pyscreenshot/loader.py", line 2, in from pyscreenshot import plugins File "/home/kali/.local/lib/python3.9/site-packages/pyscreenshot/plugins/init.py", line 5, in from pyscreenshot.plugins import wxscreen, gtkpixbuf, qt4grabwindow, qt5grabwindow, \ File "/home/kali/.local/lib/python3.9/site-packages/pyscreenshot/plugins/scrot.py", line 2, in from easyprocess import extract_version ImportError: cannot import name 'extract_version' from 'easyprocess' (/home/kali/.local/lib/python3.9/site-packages/easyprocess/init.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/kali/Keylogger/keylogger.py", line 143, in keylogger.run() File "/home/kali/Keylogger/keylogger.py", line 115, in run keyboard_listener = keyboard.Listener(on_press=self.save_data) NameError: name 'keyboard' is not defined

xAkihiro666 commented 1 year ago

pip install Pillow

hakxcore commented 1 year ago

Getting this issue

~/Keylogger (master) [1]> pip install pillow /usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes /usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: pillow in /home/ubuntu/.local/lib/python3.8/site-packages (9.2.0) --- Logging error --- Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 177, in emit self.console.print(renderable, overflow="ignore", crop=False, style=style) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_vendor/rich/console.py", line 1673, in print extend(render(renderable, render_options)) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_vendor/rich/console.py", line 1305, in render for render_output in iter_render: File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 134, in rich_console for line in lines: File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_vendor/rich/segment.py", line 249, in split_lines for segment in segments: File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_vendor/rich/console.py", line 1283, in render renderable = rich_cast(renderable) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast renderable = cast_method() File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/self_outdated_check.py", line 130, in rich__ pip_cmd = get_best_invocation_for_this_pip() File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip if found_executable and os.path.samefile( File "/usr/lib/python3.8/genericpath.py", line 101, in samefile s2 = os.stat(f2) FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.8' Call stack: File "/home/ubuntu/.local/bin/pip", line 8, in sys.exit(main()) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 70, in main return command.main(cmd_args) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 101, in main return self._main(args) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 223, in _main self.handle_pip_version_check(options) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check pip_self_version_check(session, options) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check logger.warning("[present-rich] %s", upgrade_prompt) File "/usr/lib/python3.8/logging/init.py", line 1458, in warning self._log(WARNING, msg, args, **kwargs) File "/usr/lib/python3.8/logging/init.py", line 1589, in _log self.handle(record) File "/usr/lib/python3.8/logging/init.py", line 1599, in handle self.callHandlers(record) File "/usr/lib/python3.8/logging/init.py", line 1661, in callHandlers hdlr.handle(record) File "/usr/lib/python3.8/logging/init__.py", line 954, in handle self.emit(record) File "/home/ubuntu/.local/lib/python3.8/site-packages/pip/_internal/utils/logging.py", line 179, in emit self.handleError(record) Message: '[present-rich] %s' Arguments: (UpgradePrompt(old='22.2.2', new='22.3.1'),)