OK thanks, added Pythonpath with variable values as my Leo folder.
The import leo command works fine. But I get a traceback with leo.run() :

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 
bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import leo
>>> leo.run()
Traceback (most recent call last):
  File "N:\git\leo-editor\leo\core\leoApp.py", line 1193, in setLeoID
    g.red('leoID=', g.app.leoID, ' (in ', theDir, ')', spaces=False)
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5057, in red
    g.es_print(color=g.actualColor('red'), *args, **keys)
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5200, in es_print
    g.pr(*args, **keys)
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5326, in pr
    stdout.write(s2)
AttributeError: 'NoneType' object has no attribute 'write'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    leo.run()
  File "N:\git\leo-editor\leo\__init__.py", line 11, in run
    runLeo.run(*args,**keys)
  File "N:\git\leo-editor\leo\core\runLeo.py", line 63, in run
    g.app.loadManager.load(fileName, pymacs)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 1966, in load
    lm.doPrePluginsInit(fileName, pymacs)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 2016, in 
doPrePluginsInit
    lm.initApp(verbose)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 2118, in initApp
    g.app.setLeoID(verbose=verbose)
  File "N:\git\leo-editor\leo\core\leoApp.py", line 1201, in setLeoID
    g.error('unexpected exception in app.setLeoID')
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5051, in error
    g.es_print(color=g.actualColor('red'), *args, **keys)
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5200, in es_print
    g.pr(*args, **keys)
  File "N:\git\leo-editor\leo\core\leoGlobals.py", line 5326, in pr
    stdout.write(s2)
AttributeError: 'NoneType' object has no attribute 'write'
>>> 


*Leo Log Window*
*Leo 5.4, build 20161226191821, Mon Dec 26 19:18:21 CST 2016*
*Git repo info: branch = master, commit = 0cf49992c997*
*Python 3.5.2, PyQt version 5.6.0*
*Windows Vista x86 (build 6.0.6002) SP2*

Regards
Lewis

On Thursday, December 29, 2016 at 9:03:44 PM UTC+11, Edward K. Ream wrote:
>
>
> ​It works for me. You may have to add the leo folder to Python's path.
>
> Edward
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to