For Windows 10 (Update)
Installed https://www.swi-prolog.org/download/daily/bin/swipl-w64-2023-08-07.exe
which is the latest daily build for Windows. (One day newer than used in last post)
Welcome to SWI-Prolog (threaded, 64 bits, version 9.1.12-18-g7e6f7de02)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.
For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).
?- py_version.
% Janus embeds Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)]
true.
?- py_shell.
ERROR: Python error <class 'AttributeError'>:
ERROR: 'NoneType' object has no attribute 'write'
ERROR: In:
ERROR: [11] janus:py_call(janus:interact(),_46632)
ERROR: [9] toplevel_call(user:user:py_shell) at c:/program files/swipl/boot/toplevel.pl:1173
ERROR:
ERROR: Note: some frames are missing due to last-call optimization.
ERROR: Re-run your program in debug mode (:- debug.) to get more detail.
?-
Yesterday received this error but knew there were a few more patches to the swipy code so wanted to try again with newer code. Still same problem.
Additional info
C:\Users\Groot>where python
C:\Users\Groot\AppData\Local\Programs\Python\Python311\python.exe
C:\Users\Groot\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\Groot>where python3.dll
C:\Users\Groot\AppData\Local\Programs\Python\Python311\python3.dll
C:\Users\Groot>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\Groot> get-command python
CommandType Name Version Source
----------- ---- ------- ------
Application python.exe 3.11.41... C:\Users\Groot\AppData\Local\Programs\Python\Python311\python.exe
PS C:\Users\Groot> exit
C:\Users\Groot>python
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>