Re: Portable executable on OSX

2022-10-20 Thread Chris Angelico
On Fri, 21 Oct 2022 at 08:50, Thomas Passin wrote: > > "Portable executable" usually means that the program resides on > removable media, like a USB stick. You can go to a computer, plug the > stick in, and run the program. If it's Python, then the installation on &

Re: Portable executable on OSX

2022-10-20 Thread Thomas Passin
"Portable executable" usually means that the program resides on removable media, like a USB stick. You can go to a computer, plug the stick in, and run the program. If it's Python, then the installation on the removable medium needs to set up all the paths and directories c

Re: Portable executable on OSX

2022-10-20 Thread Cameron Simpson
On 20Oct2022 03:01, wdamn wrote: I would like to have a portable executable of python3 on OSX. I google a lot about it, but I could not find any solution. Am I missing something or is it simply not possible? I'm not sure what you mean. My Mac comes presupplied with Python 3, and I

Portable executable on OSX

2022-10-20 Thread wdamn
hi all, I would like to have a portable executable of python3 on OSX. I google a lot about it, but I could not find any solution. Am I missing something or is it simply not possible? thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Making a Python program into an executable file

2022-04-11 Thread Mats Wichmann
On 4/11/22 10:13, Brian Wagstaff via Python-list wrote: > Dear Python team, > I am trying to find out how to make my Python programs into executable files > (.exe, I presume) using Pyinstaller. I searched on line for how to do this > (the document I came across is headed Data to F

Making a Python program into an executable file

2022-04-11 Thread Brian Wagstaff via Python-list
Dear Python team, I am trying to find out how to make my Python programs into executable files (.exe, I presume) using Pyinstaller. I searched on line for how to do this (the document I came across is headed Data to Fish), and it seemed that Step 1 was to download the most recent version of

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-06-07 Thread Peter J. Holzer
On 2020-05-28 20:51:59 -0400, Terry Reedy wrote: > On 5/28/2020 5:20 PM, Peter J. Holzer wrote: [The final "security-only" releases are source-only] > > This seems a rather odd policy to me. > > Not if one considers the intended users. > Do you prefer we not make these releases? No, of couse no

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-29 Thread Adam Preble
On Friday, May 29, 2020 at 7:30:32 AM UTC-5, Eryk Sun wrote: > On 5/28/20, Adam Preble wrote: > Sometimes a user will open a script via "open with" and browse to > python.exe or py.exe. This associates .py files with a new progid that > doesn't pass the %* command-line arguments. > > The installe

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-29 Thread Mats Wichmann
On 5/28/20 3:20 PM, Peter J. Holzer wrote: > On 2020-05-23 13:22:26 -0600, Mats Wichmann wrote: >> On 5/23/20 12:23 AM, Adam Preble wrote: >>> I wanted to update from 3.6.8 on Windows without necessarily moving >>> on to 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. >>> >>> All I see for both

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-29 Thread Eryk Sun
On 5/28/20, Adam Preble wrote: > > We had found what looked like a bug in the Python Launcher where it would > eat command line arguments meant for the script. I would find some stuff > missing from sys.argv in a script that just imports sys and prints out > sys.argv if I ran it directly in cmd.ex

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Chris Angelico
On Fri, May 29, 2020 at 3:15 PM Mike Dewhirst wrote: > > On 29/05/2020 12:26 pm, Chris Angelico wrote: > > On Fri, May 29, 2020 at 11:57 AM Mike Dewhirst > > wrote: > >> I am an example > >> > >> I installed all the Pythons on my Windows 10 dev machine (locked into > >> Windows by having clients

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
On 29/05/2020 2:59 pm, Dieter Maurer wrote: Mike Dewhirst wrote at 2020-5-29 11:55 +1000: On 29/05/2020 10:51 am, Terry Reedy wrote: ... Source only releases only block Windows/Mac users who choose not to upgrade to a released installer and who cannot or choose not to compile. I am an example

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
On 29/05/2020 12:26 pm, Chris Angelico wrote: On Fri, May 29, 2020 at 11:57 AM Mike Dewhirst wrote: I am an example I installed all the Pythons on my Windows 10 dev machine (locked into Windows by having clients) but I'm also locked into Python 3.6.9 on my Ubuntu 18.04 production machines. Be

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Dieter Maurer
Mike Dewhirst wrote at 2020-5-29 11:55 +1000: >On 29/05/2020 10:51 am, Terry Reedy wrote: > ... >> Source only releases only block Windows/Mac users who choose not to >> upgrade to a released installer and who cannot or choose not to compile. > >I am an example > >I installed all the Pythons on my

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Chris Angelico
On Fri, May 29, 2020 at 1:46 PM Adam Preble wrote: > I'm now concerned about how long we have with 3.6 because people clearly > want us to move on even beyond that. I look online and the official support > window for it ends at the end of next year, but it looks like the real > support window for

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Adam Preble
On Thursday, May 28, 2020 at 7:57:04 PM UTC-5, Terry Reedy wrote: > The OP is so far choosing to not use an installer with those fixes. By > not doing so, he is missing out on the maybe 2000 non-security fixes and > some enhancements that likely would benefit him more than maybe 50 > mostly obs

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Chris Angelico
On Fri, May 29, 2020 at 11:57 AM Mike Dewhirst wrote: > > I am an example > > I installed all the Pythons on my Windows 10 dev machine (locked into > Windows by having clients) but I'm also locked into Python 3.6.9 on my > Ubuntu 18.04 production machines. Be careful of assuming too much here. Th

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Mike Dewhirst
On 29/05/2020 10:51 am, Terry Reedy wrote: On 5/28/2020 5:20 PM, Peter J. Holzer wrote: On 2020-05-23 13:22:26 -0600, Mats Wichmann wrote: On 5/23/20 12:23 AM, Adam Preble wrote: I wanted to update from 3.6.8 on Windows without necessarily moving on to 3.7+ (yet), so I thought I'd try 3.6.9 or

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Terry Reedy
On 5/28/2020 5:20 PM, Peter J. Holzer wrote: On 2020-05-23 13:22:26 -0600, Mats Wichmann wrote: On 5/23/20 12:23 AM, Adam Preble wrote: I wanted to update from 3.6.8 on Windows without necessarily moving on to 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. All I see for both are source arch

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-28 Thread Peter J. Holzer
On 2020-05-23 13:22:26 -0600, Mats Wichmann wrote: > On 5/23/20 12:23 AM, Adam Preble wrote: > > I wanted to update from 3.6.8 on Windows without necessarily moving > > on to 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. > > > > All I see for both are source archives: [...] > > During the ea

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-23 Thread Mats Wichmann
On 5/23/20 12:23 AM, Adam Preble wrote: > I wanted to update from 3.6.8 on Windows without necessarily moving on to > 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. > > All I see for both are source archives: > > https://www.python.org/downloads/release/python-369/ > https://www.python.org/d

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-23 Thread Souvik Dutta
And that there are no files for an installer. Souvik flutter dev On Sat, May 23, 2020, 4:04 PM Souvik Dutta wrote: > If you take a look at this page then you will find out that 3.6.10 was not > intended to be used in windows... > https://www.python.org/downloads/windows/ > > Souvik flutter dev

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-23 Thread Souvik Dutta
If you take a look at this page then you will find out that 3.6.10 was not intended to be used in windows... https://www.python.org/downloads/windows/ Souvik flutter dev On Sat, May 23, 2020, 11:55 AM Adam Preble wrote: > I wanted to update from 3.6.8 on Windows without necessarily moving on t

Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-22 Thread Adam Preble
I wanted to update from 3.6.8 on Windows without necessarily moving on to 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. All I see for both are source archives: https://www.python.org/downloads/release/python-369/ https://www.python.org/downloads/release/python-3610/ So, uh, I theoretically

Packaging Sqlite DB and Pictures with Executable file

2019-12-31 Thread Abdur-Rahmaan Janhangeer
Greetings list, Sometimes ago i was asking how to add Sqlite files to zipapp files here , i still haven't figured it out. Finally the solution i used was PyInstaller itself. Kushal Das shared an article

Re: How to call C functions from Linux C executable and vice-versa

2019-12-25 Thread Chris Angelico
On Thu, Dec 26, 2019 at 3:41 AM Manomugdha Biswas wrote: > > Hi, > I have a Linux C binary (executable, not .so file). i can update (add new > files/folders if it is required) but after compilation i will get a binary > executable file. > I want to access/call few functions

How to call C functions from Linux C executable and vice-versa

2019-12-25 Thread Manomugdha Biswas
Hi, I have a Linux C binary (executable, not .so file). i can update (add new files/folders if it is required) but after compilation i will get a binary executable file. I want to access/call few functions of this executable from python. for this i want to use cython interface (most probably

Re: Creating a Windows executable on a Linux system

2019-06-28 Thread Cecil Westerhof
Cecil Westerhof writes: > Cecil Westerhof writes: > >> I need to write a Python desktop program. I create it on a Linux >> system, but it has to run on a Windows system. When looking at how to >> create an executable it seems that you need to be on a Windows syste

Re: Creating a Windows executable on a Linux system

2019-06-28 Thread Cecil Westerhof
Cecil Westerhof writes: > I need to write a Python desktop program. I create it on a Linux > system, but it has to run on a Windows system. When looking at how to > create an executable it seems that you need to be on a Windows system > to create a Windows executable. Is this tr

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread David Sumbler
On Wed, 2019-06-26 at 13:41 +0200, Cecil Westerhof wrote: > I need to write a Python desktop program. I create it on a Linux > system, but it has to run on a Windows system. When looking at how to > create an executable it seems that you need to be on a Windows system > to crea

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread Grant Edwards
On 2019-06-26, Cecil Westerhof wrote: > [...] it seems that you need to be on a Windows system to create a > Windows executable. Is this true, or is it possible to create a > Windows executable on a Linux system? AFIAK, you have to use a Windows system to create a windows executable

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread Cecil Westerhof
"Peter Heitzer" writes: > Cecil Westerhof wrote: >>I need to write a Python desktop program. I create it on a Linux >>system, but it has to run on a Windows system. When looking at how to >>create an executable it seems that you need to be on a Windows system &

Re: Creating a Windows executable on a Linux system

2019-06-26 Thread Peter Heitzer
Cecil Westerhof wrote: >I need to write a Python desktop program. I create it on a Linux >system, but it has to run on a Windows system. When looking at how to >create an executable it seems that you need to be on a Windows system >to create a Windows executable. Is this true, or is

Creating a Windows executable on a Linux system

2019-06-26 Thread Cecil Westerhof
I need to write a Python desktop program. I create it on a Linux system, but it has to run on a Windows system. When looking at how to create an executable it seems that you need to be on a Windows system to create a Windows executable. Is this true, or is it possible to create a Windows

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread eryk sun
On 2/19/19, Chris Angelico wrote: > > I guess you have to define the question better for Windows, since > there's no single definition of "executable". If you mean "typing just > the base name of this file at the shell will result in it being run", > th

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Grant Edwards
>> >> chmod +x .exe >> >> [I assume there's native Windows point-and-grunt means for doing that >> as well.] >> >> So, in addition to the suffix and associations, there's some sort of >> file-system meta-data that determines whether a file i

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread MRAB
is a binary because on Windows, the executable files start with b'MZ'. > >Is .bat executable? Or any of the extensions on PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw I guess you have to define the question better for Windows, since there's no

Aw: Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Karsten Hilbert
> I guess you have to define the question better for Windows, since > there's no single definition of "executable". If you mean "typing just > the base name of this file at the shell will result in it being run", > then PATHEXT is the correct answer.

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Grant Edwards
>> >> is a binary because on Windows, the executable files start with b'MZ'. >> > >> >Is .bat executable? >> >> Or any of the extensions on >> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw > > I guess you ha

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Chris Angelico
On Wed, Feb 20, 2019 at 5:05 AM Dennis Lee Bieber wrote: > > On 19 Feb 2019 13:58:18 GMT, jureq declaimed the > following: > > >> I could also use the 2 first bytes of a file and determine if the file > >> is a binary because on Windows, the executable files st

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread bryan rasmussen
Well, I used to know the answer to this question but I haven't done this kind of thing since 2009, so hopefully what I suggest is not out of date, so for everything I say here assume I put provisos in like it used to be or whatever. Anyway if the type of a file is executable , for example a

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread jureq
> I could also use the 2 first bytes of a file and determine if the file > is a binary because on Windows, the executable files start with b'MZ'. Is .bat executable? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Stephane Wirtel
a file and determine if the file is a binary because on Windows, the executable files start with b'MZ'. But I wanted an elegant and minimalist solution. Thank you for your proposal. Have a nice day, Stéphane On 02/18, Igor Korot wrote: Hi, On Tue, Feb 19, 2019 at 7:26 AM Steph

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread Igor Korot
Hi, On Tue, Feb 19, 2019 at 7:26 AM Stephane Wirtel wrote: > > Hi all, > > on Linux/Unix/BSD, we can detect if a file is an executable with > os.access(path, os.X_OK) but this is not the case on Windows. > > Do you have an idea? Check file extension? Thank you.

How to detect if a file is executable on Windows?

2019-02-19 Thread Stephane Wirtel
Hi all, on Linux/Unix/BSD, we can detect if a file is an executable with os.access(path, os.X_OK) but this is not the case on Windows. Do you have an idea? Have a nice day, Stéphane -- Stéphane Wirtel - https://wirtel.be - @matrixise -- https://mail.python.org/mailman/listinfo/python-list

pyinstaller not finding external fortran executable

2018-01-19 Thread Heli
Dear all, My code consists of a graphical user interface written in PySide. This GUI will then call a FORTRAN executable. I run the FORTRAN executable using the following lines in my script: curPath = os.path.dirname(os.path.realpath(__file__)) execPath = os.path.join(curPath, "myFORTRA

how to change code in runtime after convert to executable file

2017-05-31 Thread Ho Yeung Lee
if keep module1.py code together with mainmodule1.exe, how to convert to executable file with py2exe in this case? after tried, it can run executable file with source code module1.py but the modified date can not be changed even if content of module1.py changed then i delete the file and change

is it possible use python to run another main point or function in some range of memory in executable file

2016-10-25 Thread meInvent bbird
is it possible python to run another main point or function in some range of memory in executable file -- https://mail.python.org/mailman/listinfo/python-list

Re: extract script from executable made by pyinstaller?

2016-01-08 Thread Ulli Horlacher
Oscar Benjamin wrote: > On 8 January 2016 at 07:44, Ulli Horlacher > wrote: > > Is it possible to extract (and view) the Python script from the Windows > > executable which was made by pyinstller? > > I may be misremembering but I though that pyinstaller actually

Re: extract script from executable made by pyinstaller?

2016-01-08 Thread Oscar Benjamin
On 8 January 2016 at 07:44, Ulli Horlacher wrote: > Is it possible to extract (and view) the Python script from the Windows > executable which was made by pyinstller? I may be misremembering but I though that pyinstaller actually stores the main script uncompressed so that it's just

Re: extract script from executable made by pyinstaller?

2016-01-08 Thread Chris Angelico
On Fri, Jan 8, 2016 at 6:44 PM, Ulli Horlacher wrote: > Is it possible to extract (and view) the Python script from the Windows > executable which was made by pyinstller? To some extent, yes. You might only get the .pyc files, rather than the proper source code, but you should be able

extract script from executable made by pyinstaller?

2016-01-07 Thread Ulli Horlacher
Is it possible to extract (and view) the Python script from the Windows executable which was made by pyinstller? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum IZUS/TIK E-Mail: horlac...@tik.uni-stuttgart.de Universitaet Stuttgart Tel:++49-711

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Terry Reedy
On 10/29/2015 1:14 PM, Laura Creighton wrote: Alas, it is a 'won't fix' for python.org. Maybe Activestate or Continuum.io will support XP with their 3.5 packages, It would be an unpleasant task at best. CPython does not work with xp because is uses shiny new system features that first appea

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
In a message of Thu, 29 Oct 2015 19:21:14 +0100, Gisle Vanem writes: >Wouldn't it be more elegant of Python (and it's installer) >to put a '-subsystem:console,5.02' in the link flags? >And then detect Win-XP later on and refuse a further install? > >-- >--gv >-- >https://mail.python.org/mailman/l

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Gisle Vanem
Mark Lawrence wrote: CPython's Windows support now follows this lifecycle. A new feature release X.Y.0 will support all Windows releases whose extended support phase is not yet expired. Subsequent bug fix releases will support the same Windows releases as the original feature release (even if th

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Mark Lawrence
On 29/10/2015 17:28, Tim Golden wrote: On 29/10/2015 16:14, Steffen Herzfeldt wrote: I just wanted to let you know that your program just doesn't work on WinXP. I guess you just think "Linux is better anyway" to which i agree until it comes to games requiring directx, but that doesn't change the

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Tim Golden
On 29/10/2015 16:14, Steffen Herzfeldt wrote: I just wanted to let you know that your program just doesn't work on WinXP. I guess you just think "Linux is better anyway" to which i agree until it comes to games requiring directx, but that doesn't change the fact that the installer was labeled as

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
In a message of Fri, 30 Oct 2015 03:36:36 +1100, Chris Angelico writes: >I don't know what you mean by "natively", but I play a number of >DirectX games on my Debian Linux. Give it a try! You might find that >it all works perfectly. Or, if you develop games, you might not http://www.pcworld.c

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Laura Creighton
unning a program >that was written for python 3.3.x >the response of my system was an error message "python.exe is not a valid >32 bit executable." . > >I just wanted to let you know that your program just doesn't work on WinXP. Thank you. We have a bug report in about

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Chris Angelico
was written for python 3.3.x > the response of my system was an error message "python.exe is not a valid 32 > bit executable." . > > I just wanted to let you know that your program just doesn't work on WinXP. Yes, that's correct. > I guess you just think "Li

python.exe is not a valid win32 executable

2015-10-29 Thread Steffen Herzfeldt
"python.exe is not a valid 32 bit executable." .   I just wanted to let you know that your program just doesn't work on WinXP.   I guess you just think "Linux is better anyway" to which i agree until it comes to games requiring directx, but that doesn't change the fact

executable egg?

2015-06-18 Thread dmaziuk
Hi all, Here's my directory structure: myegg/ pkg1/ __init__.py ... pkg2/ __init__.py ... pkg3/ __init__.py ... setup.py I can make an egg with "python setup.py bdist_egg" and it works just fine. I'd like t

Python {executable templates from XSLT, code generation tool}

2014-12-15 Thread Jean-Baptiste Braun
Hi, I'm searching a tool to translate an xsl file to executable python code. I know how to execute xslt with python. What I want is to process my xslt rules *in* python. Example : Mr Mrs I would like it to be translated in a python test statement. Does anyone know something like this

Re: segmentation fault, executable python file

2014-04-29 Thread fanny
I try gdb the executable file in another machine and get this: Error -3 from inflate: incorrect header check Error decompresing struct if I do gdb in my machine (where I generate the executable file) I get nothing, and the app work correctly. I try to search about that, but i don't g

Re: gdb python core dump file : not in executable format: File format not

2014-04-15 Thread Wesley
are/gdb/documentation/>. > > For help, type "help". > > Type "apropos word" to search for commands related to "word". > > [New LWP 25738] > > [New LWP 25739] > > [New LWP 25740] > > [New LWP 25745] > > [New LWP 25746] >

Re: gdb python core dump file : not in executable format: File format not

2014-04-14 Thread david.gar...@gmail.com
t;. > For help, type "help". > Type "apropos word" to search for commands related to "word". > [New LWP 25738] > [New LWP 25739] > [New LWP 25740] > [New LWP 25745] > [New LWP 25746] > [New LWP 25747] > [New LWP 25635] > Core was generated by

gdb python core dump file : not in executable format: File format not

2014-04-14 Thread Wesley
0] [New LWP 25745] [New LWP 25746] [New LWP 25747] [New LWP 25635] Core was generated by `python'. #0 0x0030016e15e3 in ?? () (gdb) file /root/server/deviceserver.py "/root/server/deviceserver.py": not in executable format: File format not recognized (gdb) file /root/server/dev

Re: segmentation fault, executable python file

2014-04-04 Thread Jurko Gospodnetić
possible of Python's modules into the executable and stores the remaining Python code in a single zip file and loads it from there at run-time. That should limit your search area to just the frozen part and externally used libraries, and my instinct tells me gdb should be able to point you i

Re: segmentation fault, executable python file

2014-04-04 Thread Chris Angelico
On Fri, Apr 4, 2014 at 8:06 PM, wrote: > the first one is ubuntu 12.04 64-bit (where i generate the executable file), > and the second one is the same. Any idea? I confused for days until today. > > Thanks for your replay That's a good start. Next thing to try is running your

Re: segmentation fault, executable python file

2014-04-04 Thread fanny
the first one is ubuntu 12.04 64-bit (where i generate the executable file), and the second one is the same. Any idea? I confused for days until today. Thanks for your replay On Friday, April 4, 2014 3:57:33 PM UTC+7, Chris Angelico wrote: > On Fri, Apr 4, 2014 at 7:36 PM, wrote: > >

Re: segmentation fault, executable python file

2014-04-04 Thread Chris Angelico
On Fri, Apr 4, 2014 at 7:36 PM, wrote: > Hello, > I generated an executable python file using cxfreeze. > I run that file, it runs fine. > But when I run it on another PC, it don't run. I try to it via terminal, and > it says "Segmentation fault(core dump)". I

segmentation fault, executable python file

2014-04-04 Thread fanny
Hello, I generated an executable python file using cxfreeze. I run that file, it runs fine. But when I run it on another PC, it don't run. I try to it via terminal, and it says "Segmentation fault(core dump)". I try again run it with sudo, it says nothing and nothing happend. C

Re: About executable

2013-08-26 Thread Fábio Santos
On 25 Aug 2013 21:47, "Luis José Novoa" wrote: > > Hi All. I am trying to create an executable file containing an optimization code using the pyomo package for optimization modeling along with ither packages like Numpy. When using py2exe to perform the task it generates the exec

About executable

2013-08-25 Thread Luis José Novoa
Hi All. I am trying to create an executable file containing an optimization code using the pyomo package for optimization modeling along with ither packages like Numpy. When using py2exe to perform the task it generates the executable file, but when I try to run it it reports: Import Error: No

Re: How to create an executable from python script in windows

2012-11-28 Thread Ulrich Eckhardt
Am 28.11.2012 07:43, schrieb Prakash: copying C:\Python24\lib\site-packages\py2exe\run_w.exe Python 2.4 was released 8 years ago and shouldn't be used for new development or learning any longer. The first step I would take is to upgrade to 2.7, which is the last in the 2

Re: How to create an executable from python script in windows

2012-11-27 Thread Prakash
ear to be missing ['win32com.shell'] *** binary dependencies *** Your executable(s) also depend on these dlls which are not included, you may or may not need to distribute them. Make sure you have the license if you distribute any of them, and make sure you don't distribute file

Re: How to create an executable from python script in windows

2012-11-27 Thread Steven D'Aprano
in creating windows executable. Thanks in advance Would you like us to guess what the error is? I love guessing games! My guess is... "File not found". You need to give the right name for the file. Am I close? If my guess was wrong, you need to tell us what the error is.

Re: portable way of locating an executable (like which)

2012-09-22 Thread Ramchandra Apte
On Friday, 21 September 2012 02:37:01 UTC+5:30, gelonida wrote: > I'd like to implement the equivalent functionality of the unix command > > /usr/bin/which > > > > The function should work under Linux and under windows. > > > > Did anybody already implement such a function. > > If not, is

Re: portable way of locating an executable (like which)

2012-09-21 Thread Hans Mulder
On 21/09/12 04:31:17, Dave Angel wrote: > On 09/20/2012 06:04 PM, Jason Swails wrote: >> On Thu, Sep 20, 2012 at 5:06 PM, Gelonida N wrote: >> >>> I'd like to implement the equivalent functionality of the unix command >>> /usr/bin/which >>> >>> The function should work under Linux and under window

Re: portable way of locating an executable (like which)

2012-09-21 Thread Tarek Ziadé
On 9/21/12 1:59 AM, Nobody wrote: On Thu, 20 Sep 2012 23:06:46 +0200, Gelonida N wrote: I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Note that "which" attempts to emulate the behaviour of execvp()

Re: portable way of locating an executable (like which)

2012-09-20 Thread Andrew Berg
On 2012.09.20 21:31, Dave Angel wrote: > I don't have a Windows machine set up right now, but I believe there are > two more directories to search, besides the ones described in the PATH > variable. > > One is the current directory, and the other is the Windows directory > (maybe also the xxx/syst

Re: portable way of locating an executable (like which)

2012-09-20 Thread Dave Angel
On 09/20/2012 06:04 PM, Jason Swails wrote: > On Thu, Sep 20, 2012 at 5:06 PM, Gelonida N wrote: > >> I'd like to implement the equivalent functionality of the unix command >> /usr/bin/which >> >> The function should work under Linux and under windows. >> >> Did anybody already implement such a fu

Re: portable way of locating an executable (like which)

2012-09-20 Thread Nobody
On Thu, 20 Sep 2012 23:06:46 +0200, Gelonida N wrote: > I'd like to implement the equivalent functionality of the unix command > /usr/bin/which > > The function should work under Linux and under windows. Note that "which" attempts to emulate the behaviour of execvp() etc. The exec(3) manpage wil

Re: portable way of locating an executable (like which)

2012-09-20 Thread Mark Lawrence
On 21/09/2012 00:15, Gelonida N wrote: On 09/21/2012 12:04 AM, Jason Swails wrote: Thanks a lot Jason, I've used the following in programs I write: def which(program): def is_exe(fpath): return os.path.exists(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split

Re: portable way of locating an executable (like which)

2012-09-20 Thread Gelonida N
On 09/21/2012 12:04 AM, Jason Swails wrote: Thanks a lot Jason, I've used the following in programs I write: def which(program): def is_exe(fpath): return os.path.exists(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe

Re: portable way of locating an executable (like which)

2012-09-20 Thread Gelonida N
On 09/21/2012 12:21 AM, Chris Angelico wrote: On Fri, Sep 21, 2012 at 7:47 AM, Mark Lawrence wrote: On 20/09/2012 22:06, Gelonida N wrote: I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Did anybod

Re: portable way of locating an executable (like which)

2012-09-20 Thread Chris Angelico
e, that'll do you fine. Is this something that might want to be a function in the os module? Particularly so if, as I suspect there might be, there's a Win32 API function that precisely replicates the behaviour of executable invocation. A while since I've done much Windows programming but I think there's a SearchPath function? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: portable way of locating an executable (like which)

2012-09-20 Thread Ian Kelly
On Thu, Sep 20, 2012 at 4:21 PM, Chris Angelico wrote: > os.sep is the directory separator, but os.pathsep may be what you > want. Between that and os.getenv('path') you can at least get the > directories. Then on Windows, you also need to check out > os.getenv('pathext') and split _that_ on the s

Re: portable way of locating an executable (like which)

2012-09-20 Thread Chris Angelico
On Fri, Sep 21, 2012 at 7:47 AM, Mark Lawrence wrote: > On 20/09/2012 22:06, Gelonida N wrote: >> >> I'd like to implement the equivalent functionality of the unix command >> /usr/bin/which >> >> The function should work under Linux and under windows. >> >> Did anybody already implement such a fun

Re: portable way of locating an executable (like which)

2012-09-20 Thread Jason Swails
On Thu, Sep 20, 2012 at 5:06 PM, Gelonida N wrote: > I'd like to implement the equivalent functionality of the unix command > /usr/bin/which > > The function should work under Linux and under windows. > > Did anybody already implement such a function. > If not, is there a portable way of splittin

Re: portable way of locating an executable (like which)

2012-09-20 Thread Mark Lawrence
On 20/09/2012 22:06, Gelonida N wrote: I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Did anybody already implement such a function. Searching found nothing obvious to me :( If not, is there a por

portable way of locating an executable (like which)

2012-09-20 Thread Gelonida N
I'd like to implement the equivalent functionality of the unix command /usr/bin/which The function should work under Linux and under windows. Did anybody already implement such a function. If not, is there a portable way of splitting the environment variable PATH? Thanks for any sugestions --

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-08 Thread Chris Angelico
On Sat, Jun 9, 2012 at 3:41 AM, Prasad, Ramit wrote: >> > Where is the lastest step by step guide to compile Python into an >> executable? >> >> Google. > > I think you mean the Internet as Google is just an index. > Unless you are referring to Google's ca

RunPy (was py2bat (was: How do I make a Python .bat executable file?))

2012-06-08 Thread James Lu
no way just use py2exe 1.download it and python 2.make a setup file with this replacing ? with python file name: from setuptools import setup setup(app=['Tic-Tac-Toe easy.py']) james a intermediate child programmer -- http://mail.python.org/mailman/listinfo/python-list

RE: Where is the lastest step by step guide to compile Python into an executable?

2012-06-08 Thread Prasad, Ramit
> > Where is the lastest step by step guide to compile Python into an > executable? > > > > Regards. > > > > David > > > > > > > > > > Google. I think you mean the Internet as Google is just an index. Unless you are referrin

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread Mark Lawrence
On 07/06/2012 11:05, David Shi wrote: Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David Google. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread David Shi
Hi, folks. Where is the lastest step by step guide to compile Python into an executable? Regards. David -- http://mail.python.org/mailman/listinfo/python-list

Re: windows executable calling python script

2012-02-27 Thread Andrea Crotti
ot;Usage = ./run "); exit(1); } /* TODO: make the path absolute? is it necessary? */ char *const to_run[1] = {"run.py"}; /* TODO: check if the path exists or not, and if it's executable */ execv(argv[1], to_run); return 1; } which still doesn't work (I have t

Re: windows executable calling python script

2012-02-27 Thread Andrea Crotti
On 02/27/2012 01:57 PM, Andrea Crotti wrote: I am creating an installer for python projects, using CMake and NSIS. Now my goal is to be able to select at installer time the python executable that will run that project, and then associate them. I saw that setuptools is able to generate exe

windows executable calling python script

2012-02-27 Thread Andrea Crotti
I am creating an installer for python projects, using CMake and NSIS. Now my goal is to be able to select at installer time the python executable that will run that project, and then associate them. I saw that setuptools is able to generate exe wrappers, but how does that work exactly? From

  1   2   3   4   5   >