Misleading error message when trying to launch Gajim
Please first check if another issue has been opened for your problem
Versions
- OS: macOS 10.14.6
- Gajim version: latest Git master
- GTK version: 2.4.32
- Python-nbxmpp version: latest Git master
Steps to reproduce the problem
- Start Gajim from Git workspace with
./launch.py&
.
Expected behavior
After removing the try/except statements from _check_required_deps
in gajim/gajim.py, I got the following error message:
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
Traceback (most recent call last):
File "./launch.py", line 4, in <module>
gajim.main()
File "/Users/user/src/gajim/gajim/gajim.py", line 141, in main
_check_required_deps()
File "/Users/user/src/gajim/gajim/gajim.py", line 44, in _check_required_deps
import nbxmpp
File "<frozen zipimport>", line 259, in load_module
File "/Users/user/.local/share/virtualenvs/gajim-dVIidiP4/lib/python3.8/site-packages/nbxmpp-0.9.94-py3.8.egg/nbxmpp/__init__.py", line 1, in <module>
""" This Python-specific file indicates that
File "/Users/user/.local/share/virtualenvs/gajim-dVIidiP4/lib/python3.8/site-packages/gi/__init__.py", line 42, in <module>
from . import _gi
ImportError: dlopen(/Users/user/.local/share/virtualenvs/gajim-dVIidiP4/lib/python3.8/site-packages/gi/_gi.cpython-38-darwin.so, 2): Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
Referenced from: /Users/user/.local/share/virtualenvs/gajim-dVIidiP4/lib/python3.8/site-packages/gi/_gi.cpython-38-darwin.so
Reason: image not found
Before that I had wasted considerable time investigating my environment due to the misleading error message in the next section:
Actual behavior
Gajim prints:
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
Gajim needs python-nbxmpp to run. Quitting…