From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129184 invoked by alias); 19 Dec 2016 16:31:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 129164 invoked by uid 89); 19 Dec 2016 16:31:44 -0000 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 Received: from mail-pg0-f46.google.com (HELO mail-pg0-f46.google.com) (74.125.83.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Dec 2016 16:31:34 +0000 Received: by mail-pg0-f46.google.com with SMTP id g1so23333631pgn.0 for ; Mon, 19 Dec 2016 08:31:34 -0800 (PST) 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) Received: from [0.0.0.0] ([45.32.197.156]) by smtp.gmail.com with ESMTPSA id 186sm32665768pfv.61.2016.12.19.08.31.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Dec 2016 08:31:31 -0800 (PST) Subject: Re: compile python executable file on cygwin for windows To: cygwin@cygwin.com References: From: Goodman Leung Message-ID: <4ce8e961-0a76-4ee4-c6d7-3a5077bf5ddb@gmail.com> Date: Mon, 19 Dec 2016 16:31:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00195.txt.bz2 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