[Answered ]-Django-scarface not working in python 2.7

1👍

The problem is related to metaclass syntax change in Python 3.x (https://docs.python.org/3/whatsnew/3.0.html?highlight=metaclass#changed-syntax), django-scarface is 3.x oriented. I solved the problem (with Python 2.7.x) changing in platform_strategy.py (Line 38) to this:

class PlatformStrategy():
    __metaclass__ = ABCMeta

I submitted a pull request in github project: https://github.com/dreipol/django-scarface/pull/11

1👍

In the packaging instructions Python 2.7 is supported https://github.com/dreipol/django-scarface/blob/master/setup.py#L30.

You could run the package tests https://github.com/dreipol/django-scarface/blob/master/scarface/tests.py inside a virtualenv with Python 2.7.10 to see if they pass. If they don’t then there’s nothing wrong with your code. If they do pass then the problem might not be in the package itself.

Leave a comment