문제

We are using virtualenv and Mercurial 1.7.5.

To provide better code checking I installed Flake8 and added a mercurial hook to the repository as described here: http://pypi.python.org/pypi/flake8

I installed Flake8 in a virtual environment, so I was not surprised with the error I got on commit: 'ui' object has no attribute 'configint'. I thought the error would go away upon installing flake8 outside the virtualenv (I thought the 'python:' keyword in the configuration file applies to the system's python interpreter). But the error hasn't gone.

Could anyone help?

도움이 되었습니까?

해결책

Make sure Flake8 supports the version of Mercurial you're on. It may be that you're using a newer/older version of Mercurial than Flake8 supports. Mercurial internals are considered private and subject to change at any time. Extensions and hooks are expected to use the public Mercurial API: the hg executable.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top