Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
On Thu, Aug 8, 2019 at 1:33 PM Peter Otten <__pete...@web.de> wrote: > > Larry Martell wrote: > > >> Pyke has been ported to py3. Here is the code that returns the data I > >> am trying to process: > >> > >> return map(self.doctor_answer, it) > >> > >> I don't see anything calling imap. > > > > I g

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Peter Otten
Larry Martell wrote: >> Pyke has been ported to py3. Here is the code that returns the data I >> am trying to process: >> >> return map(self.doctor_answer, it) >> >> I don't see anything calling imap. > > I grepped through the entire pyke code and imap is not in there. Fire up the python3 interp

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
On Thu, Aug 8, 2019 at 12:34 PM Rhodri James wrote: > > On 08/08/2019 17:16, Larry Martell wrote: > > On Thu, Aug 8, 2019 at 11:30 AM Peter Otten <__pete...@web.de> wrote: > >> > >> Larry Martell wrote: > [snip] > >>> But in py3 that fa

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Rhodri James
On 08/08/2019 17:16, Larry Martell wrote: On Thu, Aug 8, 2019 at 11:30 AM Peter Otten <__pete...@web.de> wrote: Larry Martell wrote: [snip] But in py3 that fails with: AttributeError: module 'itertools' has no attribute 'imap' In Python 3 the map() builtin is &

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
vasculopathy_engine = > > > knowledge_engine.engine((rule_base_source_folder, > > > (compiled_rule_base_folder))) > > > with vasculopathy_engine.prove_goal(...) as presentationGen: > > > for vals, plan in presentationGen: > > > > > > But

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
> > with vasculopathy_engine.prove_goal(...) as presentationGen: > > for vals, plan in presentationGen: > > > > But in py3 that fails with: AttributeError: module 'itertools' has no > > attribute 'imap' > > In Python 3 the map() builtin is &q

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread MRAB
import knowledge_engine vasculopathy_engine = knowledge_engine.engine((rule_base_source_folder, (compiled_rule_base_folder))) with vasculopathy_engine.prove_goal(...) as presentationGen: for vals, plan in presentationGen: But in py3 that fails with: AttributeError: module 'itertools&#x

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Peter Otten
; > from pyke import knowledge_engine > vasculopathy_engine = > knowledge_engine.engine((rule_base_source_folder, > (compiled_rule_base_folder))) > with vasculopathy_engine.prove_goal(...) as presentationGen: > for vals, plan in presentationGen: > > But in py3 that fails wi

AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
= knowledge_engine.engine((rule_base_source_folder, (compiled_rule_base_folder))) with vasculopathy_engine.prove_goal(...) as presentationGen: for vals, plan in presentationGen: But in py3 that fails with: AttributeError: module 'itertools' has no attribute 'imap' I tried conver