Click here to Skip to main content
15,440,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to Run django-spirit and followed the documentation https://spirit.readthedocs.io/en/latest/installation.html
and using version django-spirit 0.12.3 
i followed as bellow 

Get started
New in Spirit 0.5
Latest version can be installed through pip:Install Spirit:

<pre lang="Python">pip install django-spirit
Start your site:

spirit startproject mysite
Set up the database:


when i push python manage.py runserver command it thorugh the bellow error.
i have checked out the database too and its empy no tables/database is created


i am using python 3.9 and the requirements versions as per the project requirements

struggling since yesterday but no success

    PS C:\Users\gsminfinity.com\Desktop\gsminfinity.com\Spirit-master\community> python manage.py runserver
    Performing system checks...
    
    Exception in thread django-main-thread:
    Traceback (most recent call last):
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\utils.py", line 66, in __getitem__
        return self._engines[alias]
    KeyError: 'django'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 121, in get_package_libraries
        module = import_module(entry[1])
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 790, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\spirit\core\templatetags\spirit_tags.py", line 3, in <module>
        from spirit.comment import tags as comment
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\spirit\comment\tags.py", line 11, in <module>
        from .forms import CommentForm
    ImportError: cannot import name 'CommentForm' from partially initialized module 'spirit.comment.forms' (most likely due to a circular import) (C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\spirit\comment\forms.py)
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\threading.py", line 950, in _bootstrap_inner
        self.run()
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\threading.py", line 888, in run
        self._target(*self._args, **self._kwargs)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
        fn(*args, **kwargs)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
        self.check(display_num_errors=True)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 392, in check
        all_issues = checks.run_checks(
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\checks\registry.py", line 70, in run_checks
        new_errors = check(app_configs=app_configs, databases=databases)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\contrib\admin\checks.py", line 78, in check_dependencies
        for engine in engines.all():
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\utils.py", line 90, in all
        return [self[alias] for alias in self]
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\utils.py", line 90, in <listcomp>
        return [self[alias] for alias in self]
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\utils.py", line 81, in __getitem__
        engine = engine_cls(params)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 25, in __init__
        options['libraries'] = self.get_templatetag_libraries(libraries)
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 43, in get_templatetag_libraries
        libraries = get_installed_libraries()
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 108, in get_installed_libraries
        for name in get_package_libraries(pkg):
      File "C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 123, in get_package_libraries
        raise InvalidTemplateLibrary(
    django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'spirit.core.templatetags.spirit_tags': cannot import name 'CommentForm' from partially initialized module 'spirit.comment.forms' (most likely due to a circular import)
    (C:\Users\gsminfinity.com\AppData\Local\Programs\Python\Python39\lib\site-packages\spirit\comment\forms.py)


What I have tried:

cd mysite
python manage.py spiritinstall
Create an administrator account:

python manage.py createsuperuser
python manage.py runserver

python manage.py makermigrations
python manage.py migrate
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900