[Zope 2.12] zopectl adduser causes Zope2 import error

Bug #397861 reported by Andreas Jung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned

Bug Description

After creating an sandbox using zc.buildout I can not add new user accounts:

ajung@blackmoon:~/sandboxes/Zope-2.12/2.12> /tmp/abc/bin/zopectl adduser admin 123
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Zope2

Revision history for this message
Andreas Jung (ajung) wrote :

> /data/develop/sandboxes/Zope-2.12/2.12/src/Zope2/Startup/zopectl.py(285)do_adduser()
-> cmdline = self.get_startup_cmd(
(Pdb)
> /data/develop/sandboxes/Zope-2.12/2.12/src/Zope2/Startup/zopectl.py(286)do_adduser()
-> self.options.python ,
(Pdb)
> /data/develop/sandboxes/Zope-2.12/2.12/src/Zope2/Startup/zopectl.py(287)do_adduser()
-> 'import Zope2; '
(Pdb)
> /data/develop/sandboxes/Zope-2.12/2.12/src/Zope2/Startup/zopectl.py(292)do_adduser()
-> ) % (name, password)
(Pdb)
> /data/develop/sandboxes/Zope-2.12/2.12/src/Zope2/Startup/zopectl.py(293)do_adduser()
-> os.system(cmdline)
(Pdb) cmdline
'/opt/python-2.5.4/bin/python2.5 -c "from Zope2 import configure;configure(\'/tmp/abc/etc/zope.conf\');import Zope2; app = Zope2.app(); app.acl_users._doAddUser(\'admin\', \'123\', [\'Manager\'], []); import transaction; transaction.commit(); "'

Obviously the wrong Python interpreter instead of zopepy is used here

Revision history for this message
Andreas Jung (ajung) wrote :
Changed in zope2:
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.