Skip to content

Instantly share code, notes, and snippets.

@spladug
Forked from reddit/install-reddit.sh
Created April 15, 2011 17:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save spladug/922144 to your computer and use it in GitHub Desktop.
Save spladug/922144 to your computer and use it in GitHub Desktop.
The install script has moved to the main reddit repository:
https://github.com/reddit/reddit/blob/master/install-reddit.sh
@ttanner
Copy link

ttanner commented Dec 1, 2011

I've tried to follow the steps on Lucid (10.04.3 LTS) but it fails on
$ make pyx
Traceback (most recent call last):
File "r2/lib/js.py", line 8, in
from r2.lib.i18n import get_available_languages
ImportError: No module named r2.lib.i18n
Traceback (most recent call last):
File "r2/lib/js.py", line 8, in
from r2.lib.i18n import get_available_languages
ImportError: No module named r2.lib.i18n
cython r2/models/_builder.pyx

Error converting Pyrex file to C:

...
def _tree_filter(self, x):
return tree_sort_fn(x) < self.after._id

def _viewable_message(self, m):
    if (c.user_is_admin
        or getattr(m, "author_id", 0) == c.user._id
                 ^

/home/reddit/reddit/r2/r2/models/_builder.pyx:282:22: Call with wrong number of arguments (expected 2, got 3)

@spladug
Copy link
Author

spladug commented Dec 1, 2011

You need a newer version of Cython.

Note: we don't support Lucid any more and there're parts of the code that will not work on Python 2.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment