Issue with RC extensions not being able to be installed due to missing pkg_resources

kai's Avatar


23 Dec, 2015 04:10 AM

This is a "fork" of the discussion here:

Marcin, Patrick,

I'm having a similar issue. Trying to install the extensions on RC 3.7.0 on Windows.

The RC Tools do exist for me and I didn't have to install anything to get them. But then running:

$ .rccontrol/enterprise-1/profile/bin/rhodecode-extensions --instance-name=enterprise-1 --ini-file=rhodecode.ini --plugins

results in:

Traceback (most recent call last):
  File "./rhodecode-extensions", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

There seems to be an issue with pkg_resources in the internal python installation and the extensions installation fails.

  1. 1 Posted by kai on 23 Dec, 2015 04:14 AM

    kai's Avatar

    Just posting it here, maybe it's interesting for other users on Windows:

    I was able to solve this problem by copying



    C:\Program Files\RhodeCode\nix\store\yynbwxrgljs063rzqjwk57sxlvvvqnz3-python2.7-Rhodecode_tools-0.6.2\lib\python2.7\site-packages


    C:\Program Files\RhodeCode\nix\store\sy8n5lc7ddf4bac0ng1zk71ym0d60sl4-python-2.7.8\lib\python2.7\site-packages

    I'd be great to get some feedback re the viability of this solution/workaround/hack, not sure if it _should_ be done like that or if this issue should rather be fixed in a different/better way. Instead of just copying the RC tools package into the main Python installation, I think it should rather be solved in a way that RC tools refers properly to Setuptools, where pkg_resources seems to stem from.

    Running 3.7.0 and 3.7.1 here btw - same behaviour happened in both instances.

  2. Support Staff 2 Posted by develop on 13 Jan, 2016 10:19 AM

    develop's Avatar

    Hello Kai,

    Thanks for the heads up on the RCT packaging issue on Cygwin and for posting the work around. I have investigated and found the root cause being that RCT scripts were missed when wrapping the commands with Python. I have fixed the packaging problem and new binaries have been released publicly.

    If you "rccontrol self-update" you will be able to get access to the new binaries marked as "733_b19042b39436_b8c3bae59b9f" which now have RCT properly wrapped.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac


17 Oct, 2018 03:22 PM
15 Oct, 2018 05:20 AM
03 Oct, 2018 01:16 PM
01 Oct, 2018 08:41 AM
28 Sep, 2018 10:12 AM
26 Sep, 2018 04:34 AM