I have installed a pip package, but trying to use it I get errors about some modules or classes not being available. How can I investigate the root cause myself?
Motivation
On OpenSuse Leap 15.1, no binary package for AutoKey is available. As a consequence I was trying to install it with
pip install --user autokey # --user because I'm not root at work.
After executing this, when I try to run the GUIs, I get import-related exceptions:
- For
autokey-gtk
:ValueError: Namespace AppIndicator3 not available
, raised bygi.require_version(...)
. [1] - For
qutokey-qt
:ImportError: cannot import name 'Qsci'
, raised by anfrom ... import Qsci
line.
While trying to figure out how to resolve the error, likely related to missing dependencies, I started to wonder: Is there any way to figure out what is missing from the error message? Running pip3 search Qsci
and pip3 search AppIndicator3
would seem an obvious solution, but don't yield any results.
I intentionally omit the full backtrace for now in order to avoid distracting from the core question: How can I try to find the solution myself?