www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/30/10:32:04

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=fhykQE5Cj9mOcICz
h2OviusBjdvGDw0ZbpkEpbjD9ebvIwcqJntvn48qQEc21p263GnAH+QvK5ZbXLub
49cieNHPs3aqYEHd6f3gwYcpsL+XtRIEFzlXCyBEDAkGZ5CdfvL0ap2S1Dpz62cv
z1nFJK/MpnCV9JDrNXf83pLDAMw=
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=m03mQPPbO/CRO3uLST1X5I
om4os=; b=tTIs/j8vJHg1iWM1wJ3WkqSNTbgwq4FTawlWa138IWQ582faHzAWDY
KUaINTVVFCvYn/UK3rQmQ/3y7YlTPmB42gfd1/eBiqGIhm17e6PdVTxb0Ct81eJu
jdVDF0XxzCaOe1b/bO7rA2KvPzelhKhP9/KfhqKmJsvkJIJDjPHc0=
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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Marvin, marvin, greenberg, Greenberg
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Tt2MP6ndFNJZxKcW1l8CXnvdEQ/uDABHV+w+IpqoNX0=; b=kvBVzmk/FY6Fq/z2CzyVyWzZh0v72e4hKK8yCwe+Un4n8m7wX5fpNzXHE0KpAJjPkR NW7eGF9iu972yThFFX3lwuWgSsyQ8jGav0J6P7jPdryQICo7fSZBgdca9+kDBH9f9ueY XwpSYtlw4jVbeMN3UZfFcbe5PAg5PQzgxw56lgx/kc0TX5a6E+wIfNsRNWQdXDsEbt82 oYm5lYlc1NYHXtskw3Qb+L1yHOzvJWzvP+1nygLl9yby3cyex2mC3V9BJI/X/wJ3jfhi hPJVeKxVnM7f6M1doiRmA0lVZGTFVXJbTvBp2YU70UaA8cyMDcfsudHur92b6op+r5RX EZTw==
X-Gm-Message-State: ALyK8tJjCAn6C0CDCqeskrEelKhj+RFp8AjIJdjAGPbq2GR103ibQOWsyrKY7F26MiJ62Q==
X-Received: by 10.28.45.201 with SMTP id t192mr28857233wmt.77.1467297092348; Thu, 30 Jun 2016 07:31:32 -0700 (PDT)
Subject: Re: Change in behavior (bug) in ctypes
To: cygwin AT cygwin DOT com
References: <57752727 DOT 9070706 AT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <40f4c48b-ce42-1250-cf3f-784c10af7718@gmail.com>
Date: Thu, 30 Jun 2016 16:31:27 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <57752727.9070706@gmail.com>
X-IsSubscribed: yes

On 30/06/2016 16:05, Marvin Greenberg wrote:
> Code like this was working until sometime recently,
>
> $ python
>>>> import ctypes
>>>> cygdll = ctypes.cdll.cygwin1
>

>
> $  python -c "import ctypes; print ctypes._dlopen('cygwin1')"; cygcheck
> -V; python -V
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> OSError: No such file or directory
> cygcheck (cygwin) 2.5.2
> System Checker for Cygwin  ...<snip>
> Python 2.7.10
>
> Note that simply changing the call to explicitly append the dll
> extension works fine:
>
> $  python -c "import ctypes; print ctypes._dlopen('cygwin1.dll')"
> 6442713088
>
> But that won't work with the former attribute-style of loading the dll.
>

No assumption on default extension

https://cygwin.com/ml/cygwin/2016-06/msg00379.html



--
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