X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 824333858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=abFWnOJHdUIHq8Ao/IWPhfAr7ttClnaKAFV3lXS/wQ4=; b=R5xiez2wHb9Ra279ToUYdnksV2dOcJr8axVF7OoE+xDLadFLDW2d+c01zIrcI9JqtG zvW0WVzkOS35dat7MKSe1s5HlOqR1GDVvGBOT6UF3BrJBzdJOLe6Ot384HxS7hj2/qtX NOMNwy/qUItWQ53JH26XJslx4vb8Ua05JxGgvjW6KPJjL4BQkstBqXFSR6JqiTLVYhsO 0f54dmMorNSbl2IQl12YUw6y500A4mEmtOd9yNxxoL2p3wWJjpYVRt0ne7oolgB968zY 2KQXKkFa/+Wi9dkSMKQkcFYIMVIL3p1eMweUB1lCaK8RPWLa3P3r1JbjXnJ0suUXbbDF S8Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=abFWnOJHdUIHq8Ao/IWPhfAr7ttClnaKAFV3lXS/wQ4=; b=vPx2POHQ3KcarJZ2mcZShDunOimmsgln73vkij0PLqGL8gtGSAY1D/3uHJAEHTEeVN h8DbGXDbuDUy3xKL8C2FXV9/5oTJJ0GLjPLTBT3lL7BbGBsARH0Im0jyHBQ5Pxx4VTwL PR0pcxsvFXYNUKMrQZ1KH2oGA31H+zGz5MJOxd/92bypaDsSdZVzKGxV/T2iVbemEa9p IPnjiYqwJY9sheD6swFYRr2vBHRdufgcM/4Nzg8MGso2+gpFsM5jZVFuYSFlIEl5inav OhYIQRaIWXWtyL6hCQRA+KOCN6phhACkgl4B+JoMTmwbnZEe3IUjyaZs4098jbt2bN1A MxBw== X-Gm-Message-State: AOAM533Bf0u1JAfLP5iIIvvsuLdG/z4pH8hCVJbPyOLS0OLBMrveo9vr CrT5HkIcCcqgyCf6w33w4g18NE0sUWs= X-Google-Smtp-Source: ABdhPJydUr0eUL+z2gfBJa394+aGFkx4eOl3uBBVtqT0HANjSUhXzKcj1bC2NJx6zhBzMlJpqbvXbQ== X-Received: by 2002:adf:904d:: with SMTP id h71mr25245224wrh.569.1642539356546; Tue, 18 Jan 2022 12:55:56 -0800 (PST) Message-ID: <0fe2e36a-2f32-0334-0ff6-d164f56e1b48@gmail.com> Date: Tue, 18 Jan 2022 21:55:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: python-numpy (1.22.0-1) can't be imported Content-Language: it To: cygwin AT cygwin DOT com References: From: Marco Atzeri In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 14.01.2022 03:04, airplanemath via Cygwin wrote: > On Wed, Jan 12 2022, Marco Atzeri wrote: > >> On 12.01.2022 12:47, ggl329 wrote: >>> Hi Marco, >>> I upgraded python39-numpy to 1.22.0-1, and failed to import numpy. >>> It seems that mtrand.cpython-39-x86_64-cygwin.dll does not have >>> PyInit_mtrand. >>> Could you check if numpy can be imported in your environment? >>> >> >> working on it. >> In theory I have not changed the build between the two versions >> but there was a patch in 1.19.4-1 for similar issue. >> >> Regards >> Marco > > I have the same problems with the distribution NumPy package, but I can > use a locally-compiled NumPy with no patches. It doesn't look like your > build has any patches either: > https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fpython-numpy-src%2Fpython-numpy-1.22.0-1-src&grep=numpy > so that's fun. > > Out of curiousity, what options are you passing for cpu-baseline and > cpu-dispatch? > https://numpy.org/devdocs/reference/simd/build-options.html > I don't see the newest cygport in the Cygwin package repository. I have not found the root cause yet. As the 1.21.4-1 imports correctly I removed the 1.22.0-1 until I solve the issue. I do not see anything obvious in upstream source between 1.21.4 and 1.22.0 that gives me any hint on root cause. Also 1.22.1 shows the same problem. I excluded the build chain as rebuilding 1.19.4 worked fine for all 3.6 to 3.9 Regards Marco -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple