Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-02-15 Thread Mansour Moufid
On Mon, Feb 15, 2021 at 7:35 PM Mansour Moufid wrote: > > On Tue, Jan 26, 2021 at 3:50 AM Friedrich Romstedt > wrote: > > > > Hi, > > > > This is with Python 3.8.2 64-bit and numpy 1.19.2 on Windows 10. I'd > > like to be able to convert some C++ extension type to a numpy array by > > using ``nu

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-02-15 Thread Mansour Moufid
On Tue, Jan 26, 2021 at 3:50 AM Friedrich Romstedt wrote: > > Hi, > > This is with Python 3.8.2 64-bit and numpy 1.19.2 on Windows 10. I'd > like to be able to convert some C++ extension type to a numpy array by > using ``numpy.asarray``. The extension type implements the Python > buffer interfa

Re: [Numpy-discussion] Compile NumPy with ifort, MSVC and MKL - DLL load failed

2021-02-15 Thread Pietro Fontana
Hi, thank you very much for pointing me at this. I managed not to find this bit of information despite spending quite some time on the issue. Cheers, Pietro ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/l

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-02-15 Thread Lev Maximov
Hi Friedrich, Try adding view->suboffsets = NULL; view->internal = NULL; to Image_getbuffer Best regards, Lev On Mon, Feb 15, 2021 at 10:57 PM Sebastian Berg wrote: > On Mon, 2021-02-15 at 10:12 +0100, Friedrich Romstedt wrote: > > Hi, > > > > Am Do., 4. Feb. 2021 um 09:07 Uhr schrieb

Re: [Numpy-discussion] Compile NumPy with ifort, MSVC and MKL - DLL load failed

2021-02-15 Thread Christoph Gohlke
Hello, On 2/15/2021 7:38 AM, Pietro Fontana wrote: Hi all, I've been trying to compile NumPy from source on Windows 10, with MSVC compiler and Intel MKL. Whenever I link to MKL it fails at loading DLLs. I am running Windows 10.0.18363 with Microsoft Visual Studio 2019 (16.8.5) and Intel MKL 2

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-02-15 Thread Sebastian Berg
On Mon, 2021-02-15 at 10:12 +0100, Friedrich Romstedt wrote: > Hi, > > Am Do., 4. Feb. 2021 um 09:07 Uhr schrieb Friedrich Romstedt > : > > Am Mo., 1. Feb. 2021 um 09:46 Uhr schrieb Matti Picus < > > matti.pi...@gmail.com>: > > > Typically, one would create a complete example and then pointing > >

[Numpy-discussion] Compile NumPy with ifort, MSVC and MKL - DLL load failed

2021-02-15 Thread Pietro Fontana
Hi all, I've been trying to compile NumPy from source on Windows 10, with MSVC compiler and Intel MKL. Whenever I link to MKL it fails at loading DLLs. I am running Windows 10.0.18363 with Microsoft Visual Studio 2019 (16.8.5) and Intel MKL 2017.8.275. I managed to reproduce the issue with a mini

Re: [Numpy-discussion] Unreliable crash when converting using numpy.asarray via C buffer interface

2021-02-15 Thread Friedrich Romstedt
Hi, Am Do., 4. Feb. 2021 um 09:07 Uhr schrieb Friedrich Romstedt : > Am Mo., 1. Feb. 2021 um 09:46 Uhr schrieb Matti Picus : > > Typically, one would create a complete example and then pointing to the > > code (as repo or pastebin, not as an attachment to a mail here). > > https://github.com/fried