libertysoft3 / saidit

The reddit open source fork powering SaidIt
https://saidit.net
Other
228 stars 40 forks source link

reddit-run throws DistributionNotFound on Ubuntu 14.04 #76

Closed shelt closed 4 years ago

shelt commented 4 years ago

I'm using this GCP Ubuntu 14.04 image. The install script completes without errors, until the final reddit-run command which results in:

+ reddit-run -c 'print "ok done"'
Traceback (most recent call last):
  File "/usr/bin/paster", line 4, in <module>
    command.run()
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 93, in run
    commands = get_commands()
  File "/usr/lib/python2.7/dist-packages/paste/script/command.py", line 135, in get_commands
    plugins = pluginlib.resolve_plugins(plugins)
  File "/usr/lib/python2.7/dist-packages/paste/script/pluginlib.py", line 82, in resolve_plugins
    pkg_resources.require(plugin)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 943, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 829, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound

Any idea what's wrong?

libertysoft3 commented 4 years ago

I just came across this the other day and will keep this open until it's resolved. I think it's a missing dependency. Try:

$ cd /home/reddit/src/reddit/r2
$ python setup.py build
$ sudo python setup.py develop

If you can get the python shell to load with this, you're all good:

$ paster shell run.ini

Then you just need to finish the install script manually with sudo, just until the end of this file: https://github.com/libertysoft3/saidit/blob/master/install/reddit.sh#L679

libertysoft3 commented 4 years ago

I think this is resolved by 5650e099192d601b76158cfdf84402b1d1ba4347

A missing uglify-js dependency is now installed.