Skip to content

NotEmailValidator fails due to use of email_re #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tarak opened this issue Aug 19, 2013 · 0 comments
Closed

NotEmailValidator fails due to use of email_re #3

tarak opened this issue Aug 19, 2013 · 0 comments
Assignees

Comments

@tarak
Copy link
Owner

tarak commented Aug 19, 2013

Django 1.6 changed validation of email addresses. Regex disappeared, see django/django/core/validators.py

Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    test_suite='tests.main',
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 138, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 118, in with_project_on_sys_path
    func()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py", line 164, in run_tests
    testLoader = cks
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/dev/django-password-policies/tests.py", line 13, in <module>
    from password_policies.tests import settings
  File "/home/dev/django-password-policies/password_policies/tests/__init__.py", line 1, in <module>
    from password_policies.tests.forms import *
  File "/home/dev/django-password-policies/password_policies/tests/forms.py", line 5, in <module>
    from password_policies.forms import PasswordPoliciesForm, PasswordPoliciesChangeForm
  File "/home/dev/django-password-policies/password_policies/forms/__init__.py", line 16, in <module>
    from password_policies.forms.fields import PasswordPoliciesField
  File "/home/dev/django-password-policies/password_policies/forms/fields.py", line 3, in <module>
    from password_policies.forms.validators import validate_common_sequences
  File "/home/dev/django-password-policies/password_policies/forms/validators.py", line 9, in <module>
    from django.core.validators import email_re
ImportError: cannot import name email_re
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant