Re: Error installing Python Extension on Windows 10 - SaxonHEC1.2.1

Jack Trade <[email protected]>
Newsgroups gmane.text.xml.saxon.help
Message-ID <MN2PR19MB40619FD8DF1A35310E529F3BF7600@MN2PR19MB4061.namprd19.prod.outlook.com>
Thanks, O'Neil.

Yes, I'm aware of that question and the idea of installing Windows 10 SDK. I tried most of the methods there and was hoping to avoid installing the SDK. I'll do that if there's no other solution.

FYI, I also ran into another solution - open the Administrator Developer Command Prompt for VS 2017 (never heard of it, nor knew it was installed on my machine...) and make sure you do that as administrator (!) and run "saxon-setup.py build_ext -if " inside that.  Doing that got me past the  "Cannot open include file: 'io.h': No such file or directory" stage (it's something, at least...) but smack into another error message:

fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'x86'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\link.exe' failed with exit status 1112

I'm still try to research that one; seems even worse than the "missing" io.h" error.

Maybe you guys should consider just releasing a virtual machine image  (an Ubuntu guest for example) with the most recent Python and Saxon HE versions pre-installed...

From: O'Neil Delpratt <oneil-JkSD5nQpfvpWk0Htik3J/[email protected]>
Sent: Monday, July 13, 2020 4:09 AM
To: Mailing list for the SAXON XSLT and XQuery processor <[email protected]>
Subject: Re: [saxon] Error installing Python Extension on Windows 10 - SaxonHEC1.2.1

Hi,

This error message is a new one for me. Not seen it before. Have  you tried installing Windows 10 SDK?

As you mentioned this problem many do experience. You might find a resolution to your problem on the stack overflow link below:

https://stackoverflow.com/questions/40018405/cannot-open-include-file-io-h-no-such-file-or-directory

kind regards,

O'Neil


On 11 Jul 2020, at 01:28, Jack Trade <[email protected]<mailto:[email protected]>> wrote:



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

On running
saxon-setup.py build_ext -if

(Windows 10, 64 bit using Powershell as administrator)

I get this error message:

fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft<file://Microsoft> Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

io.h is installed, in several places, actually; on of which is in PATH variable, and another one in the same directory as cl.exe.

I understand the disappearance of io.h is a fairly common occurrence, but all my research did help me resolve it.

Any help would be appreciated.
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/saxon-help

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.