delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/19/11:31:58

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=OGJ0Lm6eLKtYefV1
bh0Wob8rYJc+u5DUf0Xl+yU3s77CQEzoUc88oXXn6j0rYAoa4bcLNP21ID6rJhYC
tb8RsC3PEYWczPA3k5VtO5iGGLvNpGR5TdQA25nK3aCWBJ2Yd0nYqKtxK1Kmqybi
wnQwxhJvxE3qzg1ltRqjmbr7JbQ=
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=vNonPHiy7wfGAWpA1fZRaT
2XNrs=; b=KxBs51YoHPBva3wAVqv0/uVA6HZPcl/r0rTlHk50lQM2RpvLZD0rJ4
aKHONiGGjN7Gt5Xyf/3T7QRmrxFN1H/mRk4jGbzXBQomlzRZQ/yLetQ9v4EWiSvH
PiT3BORzeeiI7XF0KNiARjuNM+3/5Dd/mYq+n7EhE8obUIW9Glgfc=
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=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=001, pip, H*f:sk:dd69300, H*i:sk:dd69300
X-HELO: mail-pg0-f46.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=LuXcI4I0/HFuOBjZVMfiHYrWTPZxHktTkHCxiGx3nmI=; b=Hhu8oH0eQTaPCe3/zjk2DMwWNy1oy/HCz9gffgC9rmN2dpu8xYjOaiyJxiNRcFOfOX dCd0DFsouvmTy+M3o0TDiI0PwpezgAjh3rH093h1HKzWc+15KijGe79so4EWdjH4wghD wUa00IBKaKXAOxpCJHrO4ITchH2tjFs0nPuKs323avRNPmPuJoHYyfTgTx3pLNGjjmgy uyFFQCH/PvA/Y6rTarSSWBgU6ENkQDPv1QWqCeE0Lme925o9Fu2xgQUJVn9P5Ij9XVWe FgqnWKU8hr319plUJXO++s5zsQvh3IVv8rNhr22NROr3onkCqaFOFBeIVHirQqTXb0vZ HZUA==
X-Gm-Message-State: AKaTC00UlQrMBgmmdvbOXMgQrwZJqmNyor3tLOj9ojVbOLKwSoIl8QKHXKB8Cx3vc88PBQ==
X-Received: by 10.99.181.76 with SMTP id u12mr30151206pgo.64.1482165092439; Mon, 19 Dec 2016 08:31:32 -0800 (PST)
Subject: Re: compile python executable file on cygwin for windows
To: cygwin AT cygwin DOT com
References: <eacbe085-fe64-b701-cbe8-a301b9daeb3a AT gmail DOT com> <dd693006-3af1-5e0f-0387-cb95337ca8f1 AT gmail DOT com>
From: Goodman Leung <gbcbooksmj AT gmail DOT com>
Message-ID: <4ce8e961-0a76-4ee4-c6d7-3a5077bf5ddb@gmail.com>
Date: Tue, 20 Dec 2016 00:31:22 +0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <dd693006-3af1-5e0f-0387-cb95337ca8f1@gmail.com>
X-IsSubscribed: yes

yes, i tried , the program can start at less, and it stop for unable to 
find a file , because the format of path of the file is wrong, i use 
open(path+r"\\"+filename,"rb"), but the program explain it as 
c:\xxx\xxx\xxx////filename,that is wired .  and if i compile this source 
code under cmd.  it works well .

also, i notice when i compile the program on cygwin with command 
pyinstaller -F example.py , there is a error that program can not find 
module win32com, and it still completed the compilation .

i thinks that might be the reason why the executable file which compiled 
under Cygwin can not run properly .

module win32com might be supported by pywin32 , i  try to pip install 
pywin32 , but i was told there was no satisfies version . and i try pip 
search pywin32 , the resule as below:

$ pip search pywin32
PLUIE-new-realease-0.5 (0.5)  - a GUI for Python, via IE with Pywin32
pywin32-ctypes (0.0.1)        - UNKNOWN
PLUIE-new-realease (0.5)      - a GUI for Python, via IE with Pywin32
PLUIE (0.89)                  - a GUI for Python, via IE with Pywin32
pywin32 (214)                 - Python extensions for Windows


there is a pywin32 in the repository .


the next . i tried to compile pywin32 myself , unfortunately , i did not 
find the source code . only .exe file which is for the windows platform 
. i remember i installed a pywin32.exe on my windows OS , that meet the 
thing i said above , program compile under cmd can run properly .

from the what i experienced, i begin to doubt if if Cygwin can compile a 
python executable file for windows .





On 2016/12/19 23:13, Marco Atzeri wrote:
> On 19/12/2016 16:07, Goodman Leung wrote:
>> hi all
>>
>> i install python and pyinstaller on cygwin , and i can run pyinstaller
>> successfully to compile a exe file on the  cygwin environment .
>>
>> but when i launch this executable file on window with double click , it
>> occur a error and tell me the program can not find "cygwin.dll" (i can
>> not remember what it exactly is ).
>>
>> can cygwin compile a windows python executable program .or we should
>> treat cygwin like a pure linux OS that all things we have done on it
>> just compatible with linux only
>>
>> best regards
>> yuanxin.liang
>>
>>
>
> have you tried to run it from the Cygwin terminal (aka Mintty) ?
>
> Running from explorer (double click) do not properly set the
> PATH variable for cygwin programs.
>
> Regards
> MArco
>
> -- 
> 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
>


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