Hi Roman,

* Roman Z. <rom...@lavabit.com>, 2011-11-10, 14:09:
ranger can't run if it can't find the "ranger" python module. It must be in one of the PYTHONPATH directories. On my install, ranger was installed to /usr/share/pyshared

Which is completely normal.

which is not in PYTHONPATH so ranger will not find it.

It would be a task for postinst script to make them appear there. (But the package was broken, and was explicitly declaring that is supports only 2.6, so it didn't work.)

It ought to be put at /usr/lib/pythonX/dist-packages/ instead with X being your python version.

To fix this, create a link from the place ranger was installed to some place in your PYTHONPATH, for example:

ln -s /usr/share/pyshared/ranger /usr/lib/python2.7/dist-packages/ranger

Do not ever do this. More importantly, do not post such ideas to the BTS, because some people might follow your "advice", breaking their systems horribly in a way that is very hard to debug. (Yes, it happened in the past...) Thanks.

[...]
ImportError: No module named gui.defaultui

This is caused due to removal of the empty file "ranger/gui/__init__.py", which is required for python to recognize that this directory is a python module.

Lack of __init__.py files in /usr/share/pyshared is also completely normal.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to