Archives for: December 2004, 20

12/20/04

Tested modifications: didn't work

I just tested my modifications of the stateless-snapshooter.py file the way I explained a few posts earlier. It didn't work at all. These are the errors:
# ./stateless-snapshooter_modified --list
Traceback (most recent call last):
File "/usr/share/stateless/stateless-snapshooter.py_modified", line 79, in ?
protosystems = snapshooter.list_protosystems ()
File "/usr/share/stateless/snapshooter.py", line 54, in list_protosystems
srv = get_readonly_service ()
File "/usr/share/stateless/snapshooter.py", line 50, in get_readonly_service
return LDAPUtils.StatelessService (LDAPUtils.ReadOnlyDirectory (cfg))
File "/usr/share/stateless/LDAPUtils.py", line 81, in __init__
Directory.__init__ (self, cfg)
File "/usr/share/stateless/LDAPUtils.py", line 65, in __init__
self.uri = cfg.get_ldap_uri ()
File "/usr/share/stateless/config.py", line 43, in get_ldap_uri
server = self["LDAP_SERVER"].lstrip()
AttributeError: 'NoneType' object has no attribute 'lstrip'

# sh stateless-snapshooter_modified --new --protosystem LVStateless1
Traceback (most recent call last):
File "/usr/share/stateless/stateless-snapshooter.py_modified", line 97, in ?
snapshooter.get_next_id (protosystem))
File "/usr/share/stateless/snapshooter.py", line 71, in get_next_id
for snapshot in list_snapshots (protosystem):
File "/usr/share/stateless/snapshooter.py", line 62, in list_snapshots
srv = get_readonly_service ()
File "/usr/share/stateless/snapshooter.py", line 50, in get_readonly_service
return LDAPUtils.StatelessService (LDAPUtils.ReadOnlyDirectory (cfg))
File "/usr/share/stateless/LDAPUtils.py", line 81, in __init__
Directory.__init__ (self, cfg)
File "/usr/share/stateless/LDAPUtils.py", line 65, in __init__
self.uri = cfg.get_ldap_uri ()
File "/usr/share/stateless/config.py", line 43, in get_ldap_uri
server = self["LDAP_SERVER"].lstrip()
AttributeError: 'NoneType' object has no attribute 'lstrip'

What can I do now? Just give it up and install X/pyGTK?

Permalink . Peter . 13:49:17 . 267 Words . Problems we encounter . Email . No views