Modify

Opened 6 years ago

Closed 6 years ago

#4390 closed defect (invalid)

Cannot move existing user passwords into the database

Reported by: schkovich Owned by: pacopablo
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 6 years ago by schkovich@…

  • Keywords SessionStore HtPasswdStore import added
  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed The owner will remain pacopablo.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.