Bug 1498431 - Traceback during `import captcha.urls`
Summary: Traceback during `import captcha.urls`
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django-simple-captcha
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-04 10:10 UTC by Miroslav Suchý
Modified: 2018-03-20 18:18 UTC (History)
3 users (show)

Fixed In Version: python-django-simple-captcha-0.5.6-1.fc27
Clone Of:
Environment:
Last Closed: 2018-03-20 18:18:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2017-10-04 10:10:21 UTC
Description of problem:
When I try to use this library. E.g. with simplest:
  import captcha.urls
I got 

>>> import captcha.urls
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/captcha/urls.py", line 2, in <module>
    from django.conf.urls import patterns, url
ImportError: cannot import name 'patterns'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/captcha/urls.py", line 4, in <module>
    from django.conf.urls.defaults import patterns, url
ModuleNotFoundError: No module named 'django.conf.urls.defaults'

Note that this has been resolved in upstream 2 years ago and is fixed in 0.4.7 release. So rebase to latest upstream version should fix this.

Version-Release number of selected component (if applicable):
python3-django-simple-captcha-0.4.5-5.fc26.noarch

Comment 1 Miroslav Suchý 2017-10-04 10:11:38 UTC
This issue is blocking upgrade softwarecollections.org to F26.

Comment 2 Fedora End Of Life 2018-02-20 15:35:29 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 3 Matthias Runge 2018-03-03 07:52:51 UTC
looking at https://koji.fedoraproject.org/koji/packageinfo?packageID=13639 , it appears there is a very old version in f26 and f27. Assuming, nobody is really using it, I'm going to push the version from f28 to f27. Are you using the python3 version, or do you need the python2 package?

Comment 4 Fedora Update System 2018-03-08 09:36:37 UTC
python-django-simple-captcha-0.5.6-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-20569a7cd4

Comment 5 Fedora Update System 2018-03-08 16:23:31 UTC
python-django-simple-captcha-0.5.6-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-20569a7cd4

Comment 6 Fedora Update System 2018-03-20 18:18:46 UTC
python-django-simple-captcha-0.5.6-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.