[Zope 2.12] zopectl adduser causes Zope2 import error
Bug #397861 reported by
Andreas Jung
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
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named Zope2
Changed in zope2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
> /data/develop/ sandboxes/ Zope-2. 12/2.12/ src/Zope2/ Startup/ zopectl. py(285) do_adduser( ) startup_ cmd( sandboxes/ Zope-2. 12/2.12/ src/Zope2/ Startup/ zopectl. py(286) do_adduser( ) sandboxes/ Zope-2. 12/2.12/ src/Zope2/ Startup/ zopectl. py(287) do_adduser( ) sandboxes/ Zope-2. 12/2.12/ src/Zope2/ Startup/ zopectl. py(292) do_adduser( ) sandboxes/ Zope-2. 12/2.12/ src/Zope2/ Startup/ zopectl. py(293) do_adduser( ) 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( ); "'
-> cmdline = self.get_
(Pdb)
> /data/develop/
-> self.options.python ,
(Pdb)
> /data/develop/
-> 'import Zope2; '
(Pdb)
> /data/develop/
-> ) % (name, password)
(Pdb)
> /data/develop/
-> os.system(cmdline)
(Pdb) cmdline
'/opt/python-
Obviously the wrong Python interpreter instead of zopepy is used here