question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArchiveBox incompatible with Django versions below v3: Invalid template library specified error

See original GitHub issue

Describe the bug

Followed the install instructions on debian, and once I tried to run the server it works, but gives me a Django related template error when I try to hit the :8000 url:

“Invalid template library specified” No module named ‘django.contrib.admin.templatetags.base’

Steps to reproduce

  1. Followed apt install steps for Debian
  2. created empty folder
  3. ran archivebox setup in it
  4. created user and super user following tutorial
  5. checked that all with fine with --version : no error reported
  6. launched server: archivebox server myip:8000
  7. Tried the myip:8000 in the browser and this is where I see the django error via SSH

ArchiveBox version

Cpython Linux Linux-4.19.0-16-amd64-x86_64-with-debian-10.9 x86_64
IN_DOCKER=False DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep

[i] Dependency versions:
 √  ARCHIVEBOX_BINARY     v0.6.2          valid     /usr/bin/archivebox                                                         
 √  PYTHON_BINARY         v3.7.3          valid     /usr/bin/python3.7                                                          
 √  DJANGO_BINARY         v2.0.10         valid     /usr/local/lib/python3.7/dist-packages/django/bin/django-admin.py           
 √  CURL_BINARY           v7.64.0         valid     /usr/bin/curl                                                               
 √  WGET_BINARY           v1.20.1         valid     /usr/bin/wget                                                               
 √  NODE_BINARY           v13.14.0        valid     /usr/bin/node                                                               
 √  SINGLEFILE_BINARY     v0.3.17         valid     ./node_modules/single-file/cli/single-file                                  
 √  READABILITY_BINARY    v0.0.2          valid     ./node_modules/readability-extractor/readability-extractor                  
 √  MERCURY_BINARY        v1.0.0          valid     ./node_modules/@postlight/mercury-parser/cli.js                             
 √  GIT_BINARY            v2.20.1         valid     /usr/bin/git                                                                
 √  YOUTUBEDL_BINARY      v2019.01.17     valid     /usr/bin/youtube-dl                                                         
 -  CHROME_BINARY         -               disabled                                                                              
 √  RIPGREP_BINARY        v0.10.0         valid     /usr/bin/rg                                                                 

[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /usr/lib/python3/dist-packages/archivebox                                   
 √  TEMPLATES_DIR         3 files         valid     /usr/lib/python3/dist-packages/archivebox/templates                         
 -  CUSTOM_TEMPLATES_DIR  -               disabled                                                                              

[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled                                                                              
 -  COOKIES_FILE          -               disabled                                                                              

[i] Data locations:
 √  OUTPUT_DIR            6 files         valid     /home/<myuser>/archivebox                                                  
 √  SOURCES_DIR           0 files         valid     ./sources                                                                   
 √  LOGS_DIR              1 files         valid     ./logs                                                                      
 √  ARCHIVE_DIR           0 files         valid     ./archive                                                                   
 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf                                                           
 √  SQL_INDEX             204.0 KB        valid     ./index.sqlite3  

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ekianjocommented, Apr 20, 2021

OK, after upgrading to Django 3.1.8 the problem is gone away - thanks!

0reactions
lgwapnitskycommented, Apr 20, 2021

good catch. i missed that

Larry G. Wapnitsky

E: Larry@Wapnitsky.com Web: Larry.Wapnitsky.com http://larry.wapnitsky.com/Twitter: @LGWapnitsky

On Tue, Apr 20, 2021 at 5:07 PM Nick Sweeting @.***> wrote:

You django version is waaaay too old. I don’t know where you installed it from, but you need at least Django version 3, if not 3.1.

pip3 install django==3.1.8.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ArchiveBox/ArchiveBox/issues/717#issuecomment-823601044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE6CFGYLWYXDX2PWSDQQR3TJXUI3ANCNFSM43HAP64A .

Read more comments on GitHub >

github_iconTop Results From Across the Web

django.template.library.InvalidTemplateLibrary: Invalid ...
InvalidTemplateLibrary : Invalid template library specified. ImportError raised when trying to load 'cms.templatetags.cms_admin': cannot import name get_varname ...
Read more >
Invalid template library specified in Django3.2 - Stack Overflow
I'm getting this error, after i update django to 3.2! Any possible solutions would be helpful. Thanks in advance! python · python-3.x ·...
Read more >
Release 0.4.18 - ArchiveBox
Just make sure you have a Docker version that's new enough to support version: 3 format: docker --version. Docker version 18.09.1, ...
Read more >
Release 0.6.2 - ArchiveBox
that ArchiveBox isn't reporting any incompatibility with the versions you install. # install python3 and archivebox with your system package ...
Read more >
Release 0.4.9 - ArchiveBox
Just make sure you have a Docker version that's new enough to support version: 3 format: docker --version. Docker version 18.09.1, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found