delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/08/21:14:44

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Q0iKfaI88Yg+gWAD
o1iKNlF2N1bdbBzzVRyCALlYXpocXQkJwr4GzDobH4ek5vymuC+U5mIDy2CJLIJZ
lWad36sHyu87fSQH0TJSdt3mml3gS9wNzNaVCd8mNH8tnEiK0tZklJn36xwLKWYZ
+qlBGTQBGb5KWVHUPm/+opSm6Gc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=uyMiletjX7YGllEGNkO/VA
+G4QE=; b=JdYQjQQaWw0EVT1kiGz0tGkIfrmVQtoujHJYeEdxfw0/1bNRS22TPy
Ifh8TR5ECV/yQRu5vXdag1A6SyqlVSb0xYM3jTsTnjKul07bnjFtQ0FX9rfTgF6D
6udnE0i6LJwwtJcCgXEGR9ZjSHz6Sjjvib6if0oDuALDuNI3ovu50=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*M:cygwin, Resource
X-HELO: mx1.redhat.com
Subject: Re: Bug in Python3 ('tempfile', 'subprocess', '_hashlib')
To: cygwin AT cygwin DOT com
References: <8011548c-aefd-62a2-a492-69dca7646a44 AT analog DOT com>
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
Openpgp: preference=signencrypt
Autocrypt: addr=yselkowitz AT cygwin DOT com; keydata= xsDiBEkGONwRBADdCtCJumlgGFA2u2ZissSRq9NZ/76RTKZuUrO68Mnc7lMbQcnMPL3+ZYED 1Bt0dYY+SR0cdxUQvatybTdEY94FC5QOBZxyRvaSGTJKAqRu0ksLdi4R+2nqnv1vIajaNeM4 oMgIqUuruh/VUGaOX0bigfKCofInhY1zJXN3jhr1awCghfKh6EVeHKzfK7lQXqP1AtowzXkD /AjnIIJHDYioqpmv+t3EiQBAx/UVsBC4lekRTYspWvfSJNEkC2dlWrhqAkPTFTDnRPO/IsgC /AbsRr+5dLbpge62cyRWlCByuJneZhaNJM++tBSKYCNrmWP/cuELm7MxCFj2RC4CWyI7iosJ wnG21UlENFf+2MFTubdhvHAqkaKGA/9MK+AIGNqe2Ts+8k13jwSHelPT8njjmPpoXyoznnoF +nl/Qb/RoCKpnuYK2wJEKaaaBj5q7jmmVMCu6cshlp1aIV11o9OYiuGR8CXnGSmcGyLHmONO UOwwllrV1IZ5KcMEpjoVzssJmA8RFklwCvNmHNgVeLqh1zZw99Ec3NeX/c0oWWFha292IFNl bGtvd2l0eiA8eXNlbGtvd2l0ekBjeWd3aW4uY29tPsJiBBMRAgAiBQJTxw37AhsDBgsJCAcD AgYVCAIJCgsEFgIDAQIeAQIXgAAKCRD/IK+aZu4flE1cAJ9BGWneJyk0U5ntd6lzkTx1xN03 zwCdGqSKk9eiXeaHXel4wIzbDtnUCA7Ow00ESQY43BAQAOLQuG17nvOa03A6fznr8KFqBB3N T+QxnIhzZcxiXMlC6FTFRLxnVWuMbYzXqiK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Gmh1eluARpLmYHAPwpWgItPm/tEI0g0pSA3Cl1 8n5OZVun7b1i8puMJ2ni/ZYmbvLDSJIaTbKK5/k+3Zw0kOV8QIhpVsNlb9WyXxY/4alMBAE/ Pq3n3MVnnJr2iEzDoF/kGi36gfUUqUiB3voy5CmQrcyiSPVmEdaT9/4KS5nGU44No4Q5wiyQ WLmoL3KW0JaDzc2loMbwteF215vMx3Mi0tZtA+455ZF9E5rIgMJJBBgRAgAJBQJJBjjcAhsM AAoJEP8gr5pm7h+UgsoAn0IWjR3j8j9ns6GnMsFRjKnH2aJ3AJ9h1PM70UCjFODWi
Message-ID: <911802ba-dc49-88a7-3abb-b542ad241fa5@cygwin.com>
Date: Sun, 8 Apr 2018 20:14:29 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <8011548c-aefd-62a2-a492-69dca7646a44@analog.com>
X-IsSubscribed: yes

On 2018-04-05 20:14, Giuseppe Scelsi wrote:
> Using freshly-updated Cygwin 64-bit under Windows 7 Enterprise Ver 6.1
> and Python 3 version 3.6.4.
> 
> The execution of the following script:
> 
>     import subprocess
>     import _hashlib
>     import _sha3
>     subprocess.run('pwd')
> 
> always results in 'BlockingIOError: [Errno 11] Resource temporarily
> unavailable'.
> 
> I saw this error first in a script that imported 'tempfile' together
> with 'subprocess' (in any order):
> 
>     import subprocess
>     import tempfile
>     subprocess.run('pwd')
> 
> I then managed to narrow down the problem to the '_sha3' module.
> Notice that you need to import both '_hashlib' and '_sha3' *in that
> order*.  If I swap the order and import '_sha3' before '_hashlib', the
> error becomes sporadic, sometimes it happens and sometimes not.
> 
> This problem makes it impossible to use 'tempfile' and 'subprocess' in
> the same script.  My workaround is currently to disable '_sha3' in
> '/lib/python3.6/hashlib.py' by adding at line 62:
> 
>     __always_supported = __always_supported[0:8]
> 
> This problem only happens in Cygwin 64, 32-bit Cygwin works ok.
> 
> Can anyone reproduce this problem?

Not here.  This may be a fork issue though; please try rebase-trigger
all and run setup to see if that helps.

-- 
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019