#7988 pkg_resources.DistributionNotFound

v1.3.1
closed
nobody
None
Wiki
nobody
2016-03-17
2015-09-14
Bruno Wendt
No

I can't start the webapp instance, when I try, I recieve this message:

Traceback (most recent call last):
File "/root/env-alluraNew/bin/paster", line 9, in <module>
load_entry_point('PasteScript==2.0.2', 'console_scripts', 'paster')()
File "/root/src/allura/Allura/.eggs/PasteScript-2.0.2-py2.6.egg/paste/script/command.py", line 91, in run
commands = get_commands()
File "/root/src/allura/Allura/.eggs/PasteScript-2.0.2-py2.6.egg/paste/script/command.py", line 133, in get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/root/src/allura/Allura/.eggs/PasteScript-2.0.2-py2.6.egg/paste/script/pluginlib.py", line 83, in resolve_plugins
pkg_resources.require(plugin)
File "/root/env-alluraNew/lib/python2.6/site-packages/pkg_resources/init.py", line 952, in require
needed = self.resolve(parse_requirements(requirements))
File "/root/env-alluraNew/lib/python2.6/site-packages/pkg_resources/init.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound

What can I do?

Discussion

  • Dave Brondsema

    Dave Brondsema - 2015-09-15

    Hi,

    Are you using the step by step instructions or docker installation?

    It looks like you do have the python virtualenv active, but maybe not all the packages got installed? Can you try running pip install -r requirements.txt again? (And make sure you have the venv activated first)

     
  • Bruno Wendt - 2015-09-15

    Hello Dave,
    I'm using the step by step instructions.
    I've tried running the command but it returns this new error:
    "Command "git clone -q git://github.com/brondsem/sphinx-argparse.git /root/env-alluraNew/src/sphinx-argparse" failed with error code 128 in None".

    Any suggestions?
    
    Thanks!
    
     
    • Dave Brondsema

      Dave Brondsema - 2015-09-15

      Is there a pip.log file with debug info? What are the last 20 or so lines from it?

      Can you try running git clone -q git://github.com/brondsem/sphinx-argparse.git /root/env-alluraNew/src/sphinx-argparse yourself and see what output that gives?

      And if need be, you could skip that one package (its only used for building the docs). Edit the requirements.txt file and delete that line (3rd from the bottom). Then try running the pip command again.

       
  • Bruno Wendt - 2015-09-15

    There's no pip.log file T_T
    I'm getting a time out when I run the command in terminal, but when I try to open on browser it seens ok.
    github.com[0: 192.30.252.128]: errno=Connection timed out
    fatal: unable to connect a socket (Connection timed out)

    I removed the line in requirements.txt and now I have this new error

    Should I try the docker installation?

    Thanks for the support.

     
  • Dave Brondsema

    Dave Brondsema - 2015-09-15

    Yeah I'm not sure exactly what's going on in your environment, but I would recommend the docker installation. It should be simpler and easier overall.

     
  • Bruno Wendt - 2015-09-15

    Can't use the docker installation cuz my OS is the CentOS release 6.6 and kernel is 2.6.32-504.8.1.el6.x86_64.

    Maybe the Allura needs the kernel 3+ or a updated version of CentOS?

    Btw, thanks anyway!

     
  • Bruno Wendt - 2015-09-15

    hey man, sorry for wasting your time, now I got this message when I run the command:
    paster setup-app development.ini

    File "/root/env-alluraNew/lib/python2.6/site-packages/activitystream/init.py", line 35
    return {ep.name: ep.load() for ep in
    ^
    SyntaxError: invalid syntax

     
    • Dave Brondsema

      Dave Brondsema - 2015-09-15

      That one I do know. You need python version 2.7

       
  • Dave Brondsema

    Dave Brondsema - 2016-03-17
    • status: open --> closed
     

Log in to post a comment.