This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bug in Python3 ('tempfile', 'subprocess', '_hashlib')
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 8 Apr 2018 20:14:29 -0500
- Subject: Re: Bug in Python3 ('tempfile', 'subprocess', '_hashlib')
- 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+QxnIhzZcxiXMlC6FTFRLxnVWuMbYzXqiKMq/5U9h3sIQje7MjwdBZbQeaD38FXdegwf0x0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l1 8n5OZVun7b1i8puMJ2ni/ZYmbvLDSJIaTbKK5/k+3Zw0kOV8QIhpVsNlb9WyXxY/4alMBAE/ Pq3n3MVnnJr2iEzDoF/kGi36gfUUqUiB3voy5CmQrcyiSPVmEdaT9/4KS5nGU44No4Q5wiyQ WLmoL3KW0JaDzc2loMbwteF215vMx3Mi0tZtA+455ZF9E5rIgMJJBBgRAgAJBQJJBjjcAhsM AAoJEP8gr5pm7h+UgsoAn0IWjR3j8j9ns6GnMsFRjKnH2aJ3AJ9h1PM70UCjFODWikmi3OZN PeFehA==
- Openpgp: preference=signencrypt
- References: <8011548c-aefd-62a2-a492-69dca7646a44@analog.com>
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