> Am 09.05.2017 um 02:59 schrieb john kennan <jken...@gmail.com>:
> 
> 
> 
> On Mon, May 8, 2017 at 1:04 PM, Stephan Witt <st.w...@gmx.net> wrote:
> Am 08.05.2017 um 19:48 schrieb Richard Heck <rgh...@lyx.org>:
> >
> > On 05/08/2017 11:22 AM, john kennan wrote:
> >> Scott:
> >>
> >> log file, as requested.
> >>
> >> John
> >>
> >>
> >> jkmac:referee jk$ /Applications/LyX.app/Contents/MacOS/lyx -dbg info
> >> "/Users/jk/Box Sync/jk/jkdonorblurb.lyx"
> >> Setting debug level to info
> >> Debugging `info' (General information)
> >> support/filetools.cpp (1002): Running: python -tt -V 2>&1
> >> support/filetools.cpp (1002): Running: python -tt
> >> "/Applications/LyX.app/Contents/Resources/scripts/prefs2prefs.py" -p
> >> "/Users/jk/Library/Application Support/LyX-2.3/preferences"
> >> "/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/convert_lyxrc.Ul2103"
> >> Encoding.cpp (798): Read unicode symbol 160 '~' ' '0 1 ~' '' 0 1 0 0 1
> >> ...
> >> Encoding.cpp (798): Read unicode symbol 120831 '' ' '0 0 \mathtt{9}'
> >> '' 0 1 0 0 1
> >> Encoding.cpp (864): Reading encoding utf8
> >> ...
> >> Language.cpp (210): Reading language welsh
> >> support/filetools.cpp (1002): Running: python -tt
> >> "/Applications/LyX.app/Contents/Resources/scripts/prefs2prefs.py" -l
> >> "/Users/jk/Library/Application Support/LyX-2.3/bind/user.bind"
> >> "/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/convert_bind.yA2103"
> >> Buffer.cpp (477): Buffer::Buffer()
> >> BufferList.cpp (122): Assigning to buffer 0
> >> Buffer.cpp (1324): Running 'python -tt
> >> "/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx" -t 541 -o
> >> "/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/lyx_tmpdir.YQwVSnRg2103/Buffer_convertLyXFormatWT2103.lyx"
> >> "/Users/jk/Box Sync/jk/jkdonorblurb.lyx"'
> >> support/filetools.cpp (1002): Running: python -tt
> >> "/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx" -t 541 -o
> >> "/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/lyx_tmpdir.YQwVSnRg2103/Buffer_convertLyXFormatWT2103.lyx"
> >> "/Users/jk/Box Sync/jk/jkdonorblurb.lyx"
> >> Traceback (most recent call last):
> >>  File "/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx",
> >> line 22, in <module>
> >>    import argparse
> >> ImportError: No module named argparse
> >> Error: Conversion script failed
> >
> > That's the error there. For some reason the called version of python
> > does not see that module. Note that the two versions of python are very
> > different: 2.7.5 and 3.6.1. I would guess that the argparse module may
> > not be installed for 2.7.5.
> 
> On Mac OS X 10.11.6 the vanilla python is 2.7.10 - I cannot believe it’s
> 2.7.5 on 10.12.4 (Sierra?)
> 
> $ /usr/bin/python
> Python 2.7.10 (default, Oct 23 2015, 19:19:21)
> [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import argparse;
> >>> quit()
> $
> 
> Stephan
> 
> Apparently argparse was installed
> 
> jkmac-3:MacOS jk$ python
> Python 2.7.5 |Anaconda 1.8.0 (x86_64)| (default, Oct 24 2013, 07:02:20) 
> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import argparse
> >>> import quack
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named quack
> >>> quit()
>  
> Presumably lyx2lyx wasn't looking in the right place.

What is this for a python installation? Does it work with /usr/bin/python?

Stephan

Reply via email to