Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having trouble adding a Mercurial VCS root to a TeamCity Project. When I enter the repository information and click 'Test Connection' the pop-up says 'Connection Failed', shows me a message 'stderr: abort: couldn't find mercurial libraries in [...', ending with the message '(check your install and PYTHONPATH)'.

I am able to copy and paste the command from the error pop-up to the command line and mercurial works as expected. I have read that TeamCity should have no problem using Mercurial if it is working from the command line.

I have attempted to export the PYTHONPATH environment variable directly in the startup.sh and the catalina.sh with no change after restarting TeamCity. I have also been very careful to ensure the hg executable used by TeamCity is the same one being used on the command line.

What am I missing?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I was able to get help from Jet Brains on this issue and TeamCity needed to be patched to pull in the proper environment variable. More information can be found here: http://youtrack.jetbrains.net/issue/TW-12785

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.