#13190 closed defect (fixed)
ImportError: cannot import name HTTPBasicAuthHandler
| Reported by: | ntmlod | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Component: | AccountManagerPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 1.0 |
Description
I switched from release tag 0.4.4 to trunk 0.5dev for my verification email issue (#12735) to see if it has been fixed with the last commits.
After resolving several imports problems with my not-up-to-date Trac installation (1.0.1), I encountered a new problem
2017-05-24 21:08:31,958 Trac[loader] ERROR: Skipping "acct_mgr.http = acct_mgr.http": Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trac/loader.py", line 68, in _load_eggs entry.load(require=True) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "build/bdist.linux-x86_64/egg/acct_mgr/http.py", line 20, in <module> ImportError: cannot import name HTTPBasicAuthHandler 2017-05-24 21:08:32,578 Trac[db] ERROR: <class 'acct_mgr.web_ui.ResetPwStore'>: no IPasswordHashMethod enabled - fatal, can't work
Attachments (0)
Change History (13)
comment:1 Changed 8 years ago by
comment:2 follow-up: 4 Changed 8 years ago by
Replying to ntmlod:
I switched from release tag 0.4.4 to trunk 0.5dev for my verification email issue (#12735) to see if it has been fixed with the last commits.
Please share your [account-manager] section.
After resolving several imports problems with my not-up-to-date Trac installation (1.0.1),
What changes did you need to make? Can you post a patch?
comment:3 follow-up: 9 Changed 8 years ago by
I has same error in trac.log with latest trunk (r16619) version of AccountManagerPlugin on Trac 1.2.1
2017-05-26 08:39:38,259 Trac[loader] ERROR: Skipping "acct_mgr.http = acct_mgr.http": ImportError: cannot import name HTTPBasicAuthHandler
my [account-manager] section:
[account-manager]
allow_delete_account = disabled
auth_init = disabled
cache_ttl = 90
cookie_refresh_pct = 10
db_htdigest_realm =
dir_basedn = DC=bla-bla,DC=bla
dir_binddn = bla@bla_bla.bla
dir_bindpw = bla_bla_bla
dir_uri = ldap://bla_bla.bla
email_regexp = (?i)^[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}$
force_passwd_change = disabled
generated_password_length = 8
group_basedn =
group_expand = 0
group_knownusers = enabled
hash_method = HtDigestHashMethod
login_attempt_max_count = 0
login_opt_list = disabled
password_file =
password_store = DirAuthStore
persistent_sessions = enabled
refresh_passwd = disabled
register_basic_question =
register_basic_token =
register_check =
reset_password = disabled
user_lock_max_time = 86400
user_lock_time = 0
user_lock_time_progression = 1
username_regexp = (?i)^[A-Z0-9.\-_]{5,}$
verify_email = disabled
comment:4 follow-up: 5 Changed 8 years ago by
Replying to Ryan J Ollos:
Replying to ntmlod:
I switched from release tag 0.4.4 to trunk 0.5dev for my verification email issue (#12735) to see if it has been fixed with the last commits.
Please share your
[account-manager]section.
I solved this issue, see my last comment on #12735
After resolving several imports problems with my not-up-to-date Trac installation (1.0.1),
What changes did you need to make? Can you post a patch?
You have fixed almost all import issues with your last commit, it remains
-
acct_mgr/admin.py
28 28 from trac.core import Component, ExtensionPoint, implements 29 29 from trac.perm import PermissionCache, PermissionSystem 30 30 from trac.util import as_int 31 from trac.util.compat import cleandoc 31 32 from trac.util.datefmt import format_datetime, to_datetime 32 33 from trac.util.html import html as tag 33 34 from trac.util.presentation import Paginator 34 from trac.util.text import cleandoc,exception_to_unicode35 from trac.util.text import exception_to_unicode 35 36 from trac.web.api import IAuthenticator 36 37 from trac.web.chrome import Chrome, add_ctxtnav, add_link, add_notice 37 38 from trac.web.chrome import add_script, add_stylesheet, add_warning -
acct_mgr/api.py
16 16 from trac.core import Component, ExtensionPoint, Interface, TracError 17 17 from trac.core import implements 18 18 from trac.perm import IPermissionRequestor, PermissionCache 19 from trac.util.text import exception_to_unicode, cleandoc 19 from trac.util.compat import cleandoc 20 from trac.util.text import exception_to_unicode 20 21 from trac.util.translation import dgettext, domain_functions 21 22 from trac.web.chrome import ITemplateProvider, add_warning 22 23 from trac.web.main import IRequestFilter
comment:5 follow-up: 6 Changed 8 years ago by
Replying to ntmlod:
You have fixed almost all import issues with your last commit, it remains
You must be on Python 2.5 then. Is that correct?
comment:6 Changed 8 years ago by
Replying to Ryan J Ollos:
Replying to ntmlod:
You have fixed almost all import issues with your last commit, it remains
You must be on Python 2.5 then. Is that correct?
Nop, Python 2.7.6
comment:9 follow-up: 13 Changed 8 years ago by
Replying to Alexey:
I has same error in trac.log with latest trunk (r16619) version of AccountManagerPlugin on Trac 1.2.1
Please try with r11621 and let us known if you still see the ImportError.
comment:11 Changed 8 years ago by
Should be fixed with r16631. Very obvious error, not sure how I missed it in testing.
comment:12 Changed 8 years ago by
Confirmed, probably I could have done it if I had take the trouble.
comment:13 Changed 8 years ago by
Replying to Ryan J Ollos:
Replying to Alexey:
I has same error in trac.log with latest trunk (r16619) version of AccountManagerPlugin on Trac 1.2.1
Please try with r11621 and let us known if you still see the
ImportError.
Log is clean. All fine.



In 16619: