OSは、OSX El Capitanです。Pythonでdjango-scarfaceが動作しない2.7
バージョン:
- のPython 2.7.10
- ジャンゴ1.9.2
- ジャンゴ - スカーフェイス3.0
私はスカーフェイスをインストールして、インストール済みのアプリケーションに追加した後、それが与えますこのエラーと私は私のアプリケーションを実行することはできません。
Unhandled exception in thread started by <function wrapper at 0x1043dbe60>
Traceback (most recent call last):
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/scarface/models.py", line 7, in <module>
from scarface.platform_strategy import get_strategies
File "/Users/mcagataybarin/molocate-dev/env/lib/python2.7/site-packages/scarface/platform_strategy.py", line 38
class PlatformStrategy(metaclass=ABCMeta):
^
SyntaxError: invalid syntax
私はこのエラーを検索した後、私はその理由は、私のPythonのバージョンだと思います。 まだわからないので、私はあなたに尋ねています。
これを修正する方法はありますか?理由が本当に私のPythonのバージョンであれば、私のコードやすべてを傷つけることなく、私のpythonのバージョンを更新できますか?
問題の後、私はscarfaceを使用せず、boto3パッケージを使用しました。しかし、あなたの助けに感謝:) –