Lyx 2.4.1 on Windows 11 doesn't find python

Torquil Macdonald Sørensen torquil at gmail.com
Thu Jul 25 10:11:29 UTC 2024


Hi!

I previously used Lyx 2.3.7, which worked fine. After uninstalling
that and installing 2.4.1, it doesn't work anymore. I have tried both
the options "For everyone" and "Only for me" in the Lyx installer.

The Python directory should be correctly included in the system PATH,
because I can run python from the command prompt without problems, as
you can see here:
$ C:\Users\TorquilSørensen\AppData\Local\Programs\LyX 2.4\bin>python
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC
v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

However, when I run Lyx within the same command prompt, I'm getting
the following:

C:\Users\TorquilSørensen\AppData\Local\Programs\LyX 2.4\bin>Error
returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72
0x71 0x75 0x69 0x6c 0x53 0xf8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4d 0x69 0x4b 0x54 0x65 0x58
0x5c 0x6d 0x69 0x6b 0x74 0x65 0x78 0x5c 0x62 0x69 0x6e 0x5c 0x78 0x36
0x34 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72
0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c
0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c
0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32
0x2e 0x34 0x5c 0x62 0x69 0x6e 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72
0x73 0x5c 0x54 0x6f 0x72 0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65
0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c
0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c
0x4c 0x79 0x58 0x20 0x32 0x2e 0x34 0x5c 0x50 0x79 0x74 0x68 0x6f 0x6e
0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71
0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e
0x34 0x5c 0x50 0x79 0x74 0x68 0x6f 0x6e 0x5c 0x4c 0x69 0x62 0x3b 0x43
0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75 0x69
0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70 0x70
0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f
0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e 0x34 0x5c
0x50 0x79 0x74 0x68 0x6f 0x6e 0x5c 0x53 0x63 0x72 0x69 0x70 0x74 0x73
0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71
0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e
0x34 0x5c 0x69 0x6d 0x61 0x67 0x65 0x6d 0x61 0x67 0x69 0x63 0x6b 0x3b
0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75
0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70
0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72
0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e 0x34
0x5c 0x67 0x68 0x6f 0x73 0x74 0x73 0x63 0x72 0x69 0x70 0x74 0x5c 0x62
0x69 0x6e 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f
0x72 0x71 0x75 0x69 0x6c 0x53 0xf8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c
0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c
0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x47 0x49 0x4d 0x50 0x20
0x32 0x5c 0x62 0x69 0x6e 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73
0x5c 0x54 0x6f 0x72 0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e
0x73 0x65 0x6e 0x5c 0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f
0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c
0x79 0x58 0x20 0x32 0x2e 0x34 0x5c 0x52 0x65 0x73 0x6f 0x75 0x72 0x63
0x65 0x73 0x5c 0x65 0x78 0x74 0x72 0x61 0x74 0x6f 0x6f 0x6c 0x73 0x3b
0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75
0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70
0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72
0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e 0x34
0x5c 0x62 0x69 0x6e 0x5c 0x3b 0x43 0x3a 0x5c 0x50 0x72 0x6f 0x67 0x72
0x61 0x6d 0x20 0x46 0x69 0x6c 0x65 0x73 0x5c 0x4d 0x69 0x63 0x72 0x6f
0x73 0x6f 0x66 0x74 0x20 0x4d 0x50 0x49 0x5c 0x42 0x69 0x6e 0x5c 0x3b
0x43 0x3a 0x5c 0x57 0x49 0x4e 0x44 0x4f 0x57 0x53 0x5c 0x73 0x79 0x73
0x74 0x65 0x6d 0x33 0x32 0x3b 0x43 0x3a 0x5c 0x57 0x49 0x4e 0x44 0x4f
0x57 0x53 0x3b 0x43 0x3a 0x5c 0x57 0x49 0x4e 0x44 0x4f 0x57 0x53 0x5c
0x53 0x79 0x73 0x74 0x65 0x6d 0x33 0x32 0x5c 0x57 0x62 0x65 0x6d 0x3b
0x43 0x3a 0x5c 0x57 0x49 0x4e 0x44 0x4f 0x57 0x53 0x5c 0x53 0x79 0x73
0x74 0x65 0x6d 0x33 0x32 0x5c 0x57 0x69 0x6e 0x64 0x6f 0x77 0x73 0x50
0x6f 0x77 0x65 0x72 0x53 0x68 0x65 0x6c 0x6c 0x5c 0x76 0x31 0x2e 0x30
0x5c 0x3b 0x43 0x3a 0x5c 0x57 0x49 0x4e 0x44 0x4f 0x57 0x53 0x5c 0x53
0x79 0x73 0x74 0x65 0x6d 0x33 0x32 0x5c 0x4f 0x70 0x65 0x6e 0x53 0x53
0x48 0x5c 0x3b 0x43 0x3a 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x20
0x46 0x69 0x6c 0x65 0x73 0x20 0x28 0x78 0x38 0x36 0x29 0x5c 0x57 0x69
0x6e 0x64 0x6f 0x77 0x73 0x20 0x4b 0x69 0x74 0x73 0x5c 0x38 0x2e 0x31
0x5c 0x57 0x69 0x6e 0x64 0x6f 0x77 0x73 0x20 0x50 0x65 0x72 0x66 0x6f
0x72 0x6d 0x61 0x6e 0x63 0x65 0x20 0x54 0x6f 0x6f 0x6c 0x6b 0x69 0x74
0x5c 0x3b 0x43 0x3a 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x20 0x46
0x69 0x6c 0x65 0x73 0x5c 0x64 0x6f 0x74 0x6e 0x65 0x74 0x5c 0x3b 0x43
0x3a 0x5c 0x57 0x69 0x6e 0x50 0x79 0x74 0x68 0x6f 0x6e 0x5c 0x57 0x50
0x79 0x36 0x34 0x2d 0x33 0x31 0x31 0x31 0x30 0x5c 0x70 0x79 0x74 0x68
0x6f 0x6e 0x2d 0x33 0x2e 0x31 0x31 0x2e 0x31 0x2e 0x61 0x6d 0x64 0x36
0x34 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72
0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c
0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c
0x4d 0x69 0x63 0x72 0x6f 0x73 0x6f 0x66 0x74 0x5c 0x57 0x69 0x6e 0x64
0x6f 0x77 0x73 0x41 0x70 0x70 0x73 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65
0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72
0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c
0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73
0x5c 0x4d 0x69 0x4b 0x54 0x65 0x58 0x5c 0x6d 0x69 0x6b 0x74 0x65 0x78
0x5c 0x62 0x69 0x6e 0x5c 0x78 0x36 0x34 0x5c 0x3b
LayoutFile.cpp (164): LayoutFileList::Read: no textclasses found!
Error returned from iconv
EILSEQ An invalid multibyte sequence has been encountered in the input.
When converting from UTF-8 to UCS-4LE.
Input: 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72
0x71 0x75 0x69 0x6c 0x53 0xf8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4d 0x69 0x4b 0x54 0x65 0x58
0x5c 0x6d 0x69 0x6b 0x74 0x65 0x78 0x5c 0x62 0x69 0x6e 0x5c 0x78 0x36
0x34 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72
0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c
0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c
0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32
0x2e 0x34 0x5c 0x62 0x69 0x6e 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72
0x73 0x5c 0x54 0x6f 0x72 0x71 0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65
0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c
0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c
0x4c 0x79 0x58 0x20 0x32 0x2e 0x34 0x5c 0x50 0x79 0x74 0x68 0x6f 0x6e
0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71
0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e
0x34 0x5c 0x50 0x79 0x74 0x68 0x6f 0x6e 0x5c 0x4c 0x69 0x62 0x3b 0x43
0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75 0x69
0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70 0x70
0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72 0x6f
0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e 0x34 0x5c
0x50 0x79 0x74 0x68 0x6f 0x6e 0x5c 0x53 0x63 0x72 0x69 0x70 0x74 0x73
0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71
0x75 0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41
0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50
0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e
0x34 0x5c 0x69 0x6d 0x61 0x67 0x65 0x6d 0x61 0x67 0x69 0x63 0x6b 0x3b
0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f 0x72 0x71 0x75
0x69 0x6c 0x53 0xc3 0xb8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c 0x41 0x70
0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c 0x50 0x72
0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x4c 0x79 0x58 0x20 0x32 0x2e 0x34
0x5c 0x67 0x68 0x6f 0x73 0x74 0x73 0x63 0x72 0x69 0x70 0x74 0x5c 0x62
0x69 0x6e 0x3b 0x43 0x3a 0x5c 0x55 0x73 0x65 0x72 0x73 0x5c 0x54 0x6f
0x72 0x71 0x75 0x69 0x6c 0x53 0xf8 0x72 0x65 0x6e 0x73 0x65 0x6e 0x5c
0x41 0x70 0x70 0x44 0x61 0x74 0x61 0x5c 0x4c 0x6f 0x63 0x61 0x6c 0x5c
0x50 0x72 0x6f 0x67 0x72 0x61 0x6d 0x73 0x5c 0x47 0x49 0x4d 0x50 0x20
0x32 0x5c 0x62 0x69 0x6e
Manually looking for python in PATH ...
Warning: No python v2.x or 3.x binary found.

My Python installation is in the directory C:\WinPython\WPy64-31110

I'm using Miktex, which is installed in
C:\Users\TorquilSørensen\AppData\Local\Programs\MiKTeX

The same Miktex installation worked fine with Lyx 2.3.7.

The system PATH is

$ C:\Users\TorquilSørensen\AppData\Local\Programs\LyX 2.4\bin>echo %PATH%
C:\Program Files\Microsoft
MPI\Bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program
Files\dotnet\;C:\WinPython\WPy64-31110\python-3.11.1.amd64;C:\Users\TorquilSørensen\AppData\Local\Microsoft\WindowsApps;C:\Users\TorquilSørensen\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;


More information about the lyx-users mailing list