Modify ↓
Opened 16 years ago
Closed 16 years ago
#4390 closed defect (invalid)
Cannot move existing user passwords into the database
Reported by: | schkovich | Owned by: | John Hampton |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | normal | Keywords: | SessionStore, HtPasswdStore, import |
Cc: | schkovich@… | Trac Release: | 0.11 |
Description
While using contrib/sessionstore_convert.py following error is raised: python sessionstore_convert.py /var/trac/jmp Traceback (most recent call last):
File "sessionstore_convert.py", line 5, in ?
from acct_mgr.api import AccountManager
ImportError: No module named acct_mgr.api
Otherwise AccountManagerPlugin using HtPasswdStore is working just fine. :)
Attachments (0)
Change History (1)
comment:1 Changed 16 years ago by
Keywords: | SessionStore HtPasswdStore import added |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Folder in which are AccountManager source files must be in python path e.g. something like export PYTHONPATH=$PYTHONPATH:/root/tracinstall/accountmanagerplugin/0.11 will resolve the problem.
Since relative path from sessionstore_convert.py to AccountManager source files should be always the same (expect in case that user moved file to some other location) it might be nice to add it before line 5. Perhaps os.path.dirname( os.path.realpath( file ) ) could do the work but I am not familiar with Python. :(