SourceForge has been redesigned. Learn more.
Close

#38 AttributeError 'flags'. Iin knowledge_engine.py

closed-duplicate
pyke (39)
5
2010-04-24
2010-04-23
Anonymous
No

knowledge_engine.py contains sys.flags.optimize which is new in Python 2.6.
Python 2.5 users can not run without changing line 435 in knowledge_engine.py
See

def _get_target_pkg(target_name):
if debug: print >> sys.stderr, "_get_target_pkg", target_name
module = target_pkg.import_(target_name)
path = module.__file__
if debug: print >> sys.stderr, "_get_target_pkg __file__ is", path
if path.endswith(('.pyc', '.pyo')): path = path[:-1]
## requires python 2.6 ## compiled_path = path + ('o' if sys.flags.optimize else 'c')
compiled_path = path + ('c')
if debug:

Discussion

  • Bruce Frederiksen

    • status: open --> closed-duplicate
     
  • Bruce Frederiksen

    This is a duplicate of bug 2991558 (which has been fixed and will be in Pyke release 1.1.1).

     

Log in to post a comment.