From: Goodman Leung <gbcbooksmj@gmail.com>
To: cygwin@cygwin.com
Subject: Re: compile python executable file on cygwin for windows
Date: Mon, 19 Dec 2016 16:31:00 -0000 [thread overview]
Message-ID: <4ce8e961-0a76-4ee4-c6d7-3a5077bf5ddb@gmail.com> (raw)
In-Reply-To: <dd693006-3af1-5e0f-0387-cb95337ca8f1@gmail.com>
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
next prev parent reply other threads:[~2016-12-19 16:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 15:07 Goodman Leung
2016-12-19 15:13 ` Marco Atzeri
2016-12-19 16:31 ` Goodman Leung [this message]
2016-12-19 16:45 ` Erik Bray
2016-12-20 16:52 ` Goodman Leung
2016-12-21 14:19 ` Erik Bray
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ce8e961-0a76-4ee4-c6d7-3a5077bf5ddb@gmail.com \
--to=gbcbooksmj@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).