'browserid' is not a valid tag library: ImportError raised loading django_browserid.templatetags.browserid: cannot import name generic_tag_compiler

Bug #1444080 reported by Zack Piper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Postorius
New
Undecided
Unassigned

Bug Description

I get this error when trying to navigate to the login page (http://lists.apertron.net/archives/accounts/login/?next=/archives/)

Full stacktrace can be found at: http://lists.apertron.net

I have located the browserid file, here is the contents:

```
from django import template

from django_browserid import helpers

register = template.Library()

@register.simple_tag
def browserid_info(**kwargs):
    return helpers.browserid_info(**kwargs)

@register.simple_tag
def browserid_login(**kwargs):
    return helpers.browserid_login(**kwargs)

@register.simple_tag
def browserid_logout(**kwargs):
    return helpers.browserid_logout(**kwargs)

@register.simple_tag
def browserid_js(**kwargs):
    return helpers.browserid_js(**kwargs)

@register.simple_tag
def browserid_css(**kwargs):
    return helpers.browserid_css(**kwargs)

```

Sorry if this is in the wrong place.

Thanks!

Revision history for this message
Zack Piper (zack-piper123) wrote :

(I understand that django-browserid is a third-party package... it didn't seem to me as it was caused by itself...).

Revision history for this message
Pavan Koli (pskoli93) wrote :

I am not sure but the issue seems to be related with Django 1.8, I found a way around it by installing Django 1.7.7, just go to postorius/setup.py
Line 42 replace 'django>=1.6' with 'django<1.8'.
Then go to terminal and cd to postorius folder and type
python setup.py develop
Hopefully this should resolve the issue.

Revision history for this message
Zack Piper (zack-piper123) wrote : Re: [Bug 1444080] Re: 'browserid' is not a valid tag library: ImportError raised loading django_browserid.templatetags.browserid: cannot import name generic_tag_compiler

That works, thanks!

On 25 April 2015 10:49:19 BST, Pavan Koli <email address hidden> wrote:
>I am not sure but the issue seems to be related with Django 1.8, I
>found a way around it by installing Django 1.7.7, just go to
>postorius/setup.py
>Line 42 replace 'django>=1.6' with 'django<1.8'.
>Then go to terminal and cd to postorius folder and type
>python setup.py develop
>Hopefully this should resolve the issue.
>
>--
>You received this bug notification because you are subscribed to the
>bug
>report.
>https://bugs.launchpad.net/bugs/1444080
>
>Title:
> 'browserid' is not a valid tag library: ImportError raised loading
> django_browserid.templatetags.browserid: cannot import name
> generic_tag_compiler
>
>Status in The New Mailman Web UI:
> New
>
>Bug description:
> I get this error when trying to navigate to the login page
> (http://lists.apertron.net/archives/accounts/login/?next=/archives/)
>
> Full stacktrace can be found at: http://lists.apertron.net
>
> I have located the browserid file, here is the contents:
>
> ```
> from django import template
>
> from django_browserid import helpers
>
>
> register = template.Library()
>
>
> @register.simple_tag
> def browserid_info(**kwargs):
> return helpers.browserid_info(**kwargs)
>
>
> @register.simple_tag
> def browserid_login(**kwargs):
> return helpers.browserid_login(**kwargs)
>
>
> @register.simple_tag
> def browserid_logout(**kwargs):
> return helpers.browserid_logout(**kwargs)
>
>
> @register.simple_tag
> def browserid_js(**kwargs):
> return helpers.browserid_js(**kwargs)
>
> @register.simple_tag
> def browserid_css(**kwargs):
> return helpers.browserid_css(**kwargs)
>
> ```
>
> Sorry if this is in the wrong place.
>
> Thanks!
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/postorius/+bug/1444080/+subscriptions

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.