You are not logged in.
Somehow during updates some days ago my python environment broke in a certain way I can not figure out how
Most Python programms run very well but in two cases I habe some strange issues.
1. nvim can not communicate with the python-neovim client although it is installed and I can even run python commands from within nvim. However when I call Unite a PlugIn that needs nvim python support (and also other plugins that need python) I get:
function <SNR>51_call_unite..unite#start..unite#start#standard..unite#init#_current_unite..remote#define#CommandBootstrap..remote#host#Require..<SNR>56_RequirePythonHost, line 15
Vim(if):Channel was closed by the client
Error detected while processing function <SNR>51_call_unite..unite#start..unite#start#standard..unite#init#_current_unite..remote#define#CommandBootstrap..remote#host#Require..<SNR>56_RequirePythonHost:
line 22:
E605: Exception not caught: Failed to load python3 host. You can try to see what happened by starting Neovim with the environment variable $NVIM_PYTHON_LOG_FILE set to a file and opening the generated log file. Also, the host stderr will b
e available in Neovim log, so it may contain useful information. See also ~/.nvimlog.and the nvim log says:
2016-03-17 11:13:24,531 [ERROR @ session.py:run:121] 5355 - Setup error: No module named 'unite'Furthermore, when I want to update vdirsyncer since the same point in time the nvim issue appeared this update fails. First the test failed by saying that localserver is not installed, however it was installed. I re-installed it. During this re-install I got a warning that no package information could be read from /usr/lib/python3.5/site-packages/pytest-localserver. Anyway it was re-installed and the test during the vdirsyncer update recognized. Still, I had to repeat the procedure for other package tests that were installed alredy. In the end the update still does not work and breaks up with the line:
pkg_resources.DistributionNotFound: The 'vdirsyncer' distribution was not found and is required by the applicationso it does not find itself??? the full error message is
============================= test session starts ==============================
platform linux -- Python 3.5.1, pytest-2.9.0, py-1.4.31, pluggy-0.3.1
rootdir: /var/cache/pacman/pkg/vdirsyncer27409/vdirsyncer/src/vdirsyncer-0.9.2, inifile: setup.cfg
plugins: hypothesis-3.1.0, subtesthack-0.1.1, localserver-0.3.5
collected 430 items
test-requirements.txt s
tests/test_metasync.py ......
tests/test_sync.py .......................
tests/cli/test_config.py ........
tests/cli/test_discover.py .
tests/cli/test_fetchparams.py ..........
tests/cli/test_main.py F.............
tests/cli/test_repair.py ...
tests/cli/test_utils.py .
tests/storage/test_filesystem.py ...........................................sss...........
tests/storage/test_http.py ......
tests/storage/test_http_with_singlefile.py ......................................sssss...sssss
tests/storage/test_memory.py ......................................sssss...sss..
tests/storage/test_remotestorage.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssss
tests/storage/test_singlefile.py ......................................ssss...sssss.
tests/storage/dav/test_caldav.py ssssssssssssssssssssssssssssssssssssssssssssssssss
tests/storage/dav/test_carddav.py ssssssssssssssssssssssss
tests/storage/dav/test_utils.py .
tests/utils/test_main.py ......
tests/utils/test_vobject.py .........
=================================== FAILURES ===================================
______________________________ test_entry_points _______________________________
monkeypatch = <_pytest.monkeypatch.monkeypatch object at 0x7f3a245efa20>
capsys = <_pytest.capture.CaptureFixture object at 0x7f3a245efa90>
def test_entry_points(monkeypatch, capsys):
monkeypatch.setattr('sys.argv', ['--help'])
with pytest.raises(SystemExit) as excinfo:
> load_entry_point('vdirsyncer', 'console_scripts', 'vdirsyncer')()
tests/cli/test_main.py:23:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.5/site-packages/pkg_resources/__init__.py:549: in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
/usr/lib/python3.5/site-packages/pkg_resources/__init__.py:542: in get_distribution
dist = get_provider(dist)
/usr/lib/python3.5/site-packages/pkg_resources/__init__.py:422: in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
/usr/lib/python3.5/site-packages/pkg_resources/__init__.py:943: in require
needed = self.resolve(parse_requirements(requirements))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pkg_resources.WorkingSet object at 0x7f3a2853c748>, requirements = []
env = <pkg_resources.Environment object at 0x7f3a245ef780>, installer = None
replace_conflicting = False
def resolve(self, requirements, env=None, installer=None,
replace_conflicting=False):
"""List all distributions needed to (recursively) meet `requirements`
`requirements` must be a sequence of ``Requirement`` objects. `env`,
if supplied, should be an ``Environment`` instance. If
not supplied, it defaults to all distributions available within any
entry or distribution in the working set. `installer`, if supplied,
will be invoked with each requirement that cannot be met by an
already-installed distribution; it should return a ``Distribution`` or
``None``.
Unless `replace_conflicting=True`, raises a VersionConflict exception if
any requirements are found on the path that have the correct name but
the wrong version. Otherwise, if an `installer` is supplied it will be
invoked to obtain the correct version of the requirement and activate
it.
"""
# set up the stack
requirements = list(requirements)[::-1]
# set of processed requirements
processed = {}
# key -> dist
best = {}
to_activate = []
# Mapping of requirement to set of distributions that required it;
# useful for reporting info about conflicts.
required_by = collections.defaultdict(set)
while requirements:
# process dependencies breadth-first
req = requirements.pop(0)
if req in processed:
# Ignore cyclic or redundant dependencies
continue
dist = best.get(req.key)
if dist is None:
# Find the best distribution and add it to the map
dist = self.by_key.get(req.key)
if dist is None or (dist not in req and replace_conflicting):
ws = self
if env is None:
if dist is None:
env = Environment(self.entries)
else:
# Use an empty environment and workingset to avoid
# any further conflicts with the conflicting
# distribution
env = Environment([])
ws = WorkingSet([])
dist = best[req.key] = env.best_match(req, ws, installer)
if dist is None:
requirers = required_by.get(req, None)
> raise DistributionNotFound(req, requirers)
E pkg_resources.DistributionNotFound: The 'vdirsyncer' distribution was not found and is required by the application
/usr/lib/python3.5/site-packages/pkg_resources/__init__.py:830: DistributionNotFound
============== 1 failed, 267 passed, 162 skipped in 13.05 seconds ==============
Makefile:31: die Regel für Ziel „test“ scheiterteAfterwards I just tried to re-install everythin that is python related and even python3.5 itself. For some packages the issue where package information could not be read in /usr/lib/python3.5/site-packages… happened again. More curiously and although triggered by a python3.5 environment in two cases the re-install process tried to look in /usr/lib/python3.4/site-packages
Also after this complete new install the two issues with vdirsyncer and neovim remain. There is something seriously wrong with my python environment but meanwhile I do not know anymore where to look and how to solve it. Do you have any ideas?
Last edited by cutuchiqueno (2016-03-22 10:18:24)
Offline
What is the output of:
which python
ls -l /usr/bin/python
echo $PYTHONPATHOffline
@Scimmia
ah correct, I forgot, which python I have tried already the other two I did now but without getting more insides I suppose:
$ which python
/usr/bin/python
$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 3. Mär 10:44 /usr/bin/python -> python3
$ echo $PYTHONPATH
$Offline
I now updated a python package again wher the one type of WARNING happened for I did not give an example, so here it is:
Warnung: konnte Dateiinformationen für usr/bin/ikhal nicht ermitteln
Warnung: konnte Dateiinformationen für usr/bin/khal nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/PKG-INFO nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/SOURCES.txt nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/dependency_links.txt nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/entry_points.txt nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/requires.txt nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal-0.7.1.dev79+ngf95f9b0.d20160125-py3.5.egg-info/top_level.txt nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__init__.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/__init__.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/aux.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/calendar_display.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/cli.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/controllers.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/exceptions.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/log.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/terminal.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/__pycache__/version.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/aux.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/calendar_display.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/cli.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/controllers.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/exceptions.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__init__.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/__init__.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/aux.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/backend.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/event.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/exceptions.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/__pycache__/khalendar.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/aux.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/backend.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/event.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/exceptions.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/khalendar/khalendar.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/log.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__init__.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__pycache__/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__pycache__/__init__.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__pycache__/exceptions.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__pycache__/settings.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/__pycache__/utils.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/exceptions.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/khal.spec nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/settings.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/settings/utils.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/terminal.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__init__.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/ nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/__init__.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/base.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/calendarwidget.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/colors.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/startendeditor.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/__pycache__/widgets.cpython-35.pyc nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/base.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/calendarwidget.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/colors.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/startendeditor.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/ui/widgets.py nicht ermitteln
Warnung: konnte Dateiinformationen für usr/lib/python3.5/site-packages/khal/version.py nicht ermittelnUnfortunately it is German but basically says: Warning: could not find out file information for /usr/lib/python3.5/site/packages/... (in this example khal-git)
I tried to find out about this error with Google but seemed to be to stupid to get something useful
Offline
https://wiki.archlinux.org/index.php/Fo … s_and_code
Use
LC_ALL=C command ...But I think that is the pacman warning for files that pacman thinks you are supposed to have (and the update in question is supposed to replace), but do not exist on disk for some incredibly strange reason.
In other words, that package was really broken.
The reinstall should hopefully fix it.
Last edited by eschwartz (2016-03-21 14:32:04)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thx for the information to localize a command on demand and also for the info on pacman.
Meanwhile I found out that for some reason my pip command linked to a pip3.4 version instead of python 3.5. However, I do not know why this happened. This might be the source of the problems I experienced. Now I have to clean up the consequences. For neovim I could not manage it. Vdirsyncer is running again.
Thx.
Offline