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 schkovich@…

Keywords: SessionStore HtPasswdStore import added
Resolution: invalid
Status: newclosed

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. :(

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Hampton.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.