eric-cc-su / PyAiml2

Python 3 and AIML 2 update of pyaiml (originally forked from huntersan9)
Other
6 stars 2 forks source link

AttributeError: 'InMemorySessionManager' object has no attribute '_sessions' #8

Closed Yagira closed 8 years ago

Yagira commented 8 years ago
>>> k = aiml.Kernel()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Yagira\AppData\Local\Programs\Python\Python35-32\lib\aiml\Kernel.py", line 42, in __init__
    self._sessionManager._addSession(self._globalSessionID)
  File "C:\Users\Yagira\AppData\Local\Programs\Python\Python35-32\lib\aiml\InMemorySessionManager.py", line 11, in _addSession
    if not sessionID in self._sessions:
AttributeError: 'InMemorySessionManager' object has no attribute '_sessions'
lordkada commented 8 years ago

@eric-cc-su: PR #9 should fix this (my bad... it was due to a bad code refactoring my side)

eric-cc-su commented 8 years ago

Resolved in PR #9 thanks @Yagira @lordkada