mkmik / pastgit

git backed paste server (gist python clone)
52 stars 5 forks source link

Python 2.6-2.7 setup issue #2

Open kshcherban opened 10 years ago

kshcherban commented 10 years ago

Hello,

I'm trying to setup pastgit on Centos 6.4, used both python 2.6 and latest python 2.7 (2.7.6) but paster setup-app not working.

When i run: paster setup-app config.ini i get import error from pylons.error

    ImportError: cannot import name error_template

Can you please explain if pastgit works only with python 3?

mkmik commented 10 years ago

No, its been developed a long time before python 3, it's probably some other dependency. I'm not sure if I'll have time this week to take a look. Let me know if you find a solution. On Nov 26, 2013 9:50 AM, "Konstantin" notifications@github.com wrote:

Hello,

I'm trying to setup pastgit on Centos 6.4, used both python 2.6 and latest python 2.7 (2.7.6) but paster setup-app not working.

When i run: paster setup-app config.ini i get import error

ImportError: cannot import name error_template

Can you please explain if pastgit works only with python 3?

— Reply to this email directly or view it on GitHubhttps://github.com/mmikulicic/pastgit/issues/2 .

kshcherban commented 10 years ago

In pylons (1.0.1) that was installed as dependency there is no error_template function or class that is imported in pastgit/config/middleware.py Seems like you developed pastgit for pylons below 0.9.7 version which is outdated now.