virtualenv problem on win32

2011-04-13 Thread Danny Shevitz
Howdy, I'm trying to use virtualenv for the first time and having endless grief. I have upgraded my python distribution to the latest 2.7 distribution and it is completely clean. I have prepended my path environment variable with c:\python27 and c:\python27\scripts. I have installed: setuptools

calling 64 bit routines from 32 bit matlab on Mac OS X

2011-03-15 Thread Danny Shevitz
Howdy, I have run into an issue that I am not sure how to deal with, and would appreciate any insight anyone could offer. I am running on Mac OS X 10.5 and have a reasonably large tool chain including python, PyQt, Numpy... If I do a which python, I get Mach-O executable i386. I need to call

Re: attach to process by pid?

2011-03-09 Thread Danny Shevitz
process has some kind of communication(s) interface; eg: * some kind of listening socket * some kind of I/O (pipe, stdin/stdout) It does have a stdin/stdout. How do I access it? thanks, D -- http://mail.python.org/mailman/listinfo/python-list

Re: attach to process by pid?

2011-03-09 Thread Danny Shevitz
Have a look at the SIMPL toolkit. http://www.icanprogram.com/06py/lesson1/lesson1.html This should be able to do exactly what you want. bob Does this work on Mac OS X? thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

attach to process by pid?

2011-03-08 Thread Danny Shevitz
Howdy, Is there any way to attach to an already running process by pid? I want to send commands from python to an application that is already running. I don't want to give the command name to subprocess.Popen. thanks, Danny -- http://mail.python.org/mailman/listinfo/python-list

how to communicate in python with an external process

2011-03-07 Thread Danny Shevitz
Howdy, I'm a long time python user but ran across something I have never needed to do before and don't know how to do it. The issue is that I need for my python script to call some matlab routines. Matlab is very expensive to start running, so I only want to run it once. I also want the changes

Re: how to communicate in python with an external process

2011-03-07 Thread Danny Shevitz
http://pypi.python.org/pypi/pymatlab/ Cheers, Chris I am on a mac. Does pymatlab support mac's? I tried the linux 64 bit egg (downloaded to my local machine) and got: macshevitz:~ dannyshevitz$ sudo easy_install pymatlab-0.1.3-py2.6-linux-x86_64. egg Password: Searching for

geospatial python and how to convert multilinestrings to kml

2009-03-03 Thread Danny Shevitz
Howdy, I need to do some geospatial work and am a complete newbie at this. I have access to a PostGIS database and there are lots of MultiLineString objects. I want to run a python algorithm that determines a group of these MultiLineString objects and creates a KML file of the results. Is

problem doing unpickle in an exec statement

2008-07-23 Thread Danny Shevitz
Howdy, In my app I need to exec user text that defines a function. I want this function to unpickle an object. Pickle breaks because it is looking for the object definition that isn't in the calling namespace. I have mocked up a simple example that shows the problem. Run this first code (from

Re: how to convert a multiline string to an anonymous function?

2008-04-30 Thread Danny Shevitz
Thanks All! you've solved my problem. D -- http://mail.python.org/mailman/listinfo/python-list

how to convert a multiline string to an anonymous function?

2008-04-29 Thread Danny Shevitz
Simple question here: I have a multiline string representing the body of a function. I have control over the string, so I can use either of the following: str = ''' print state return True ''' str = ''' def f(state): print state return True ''' and I want to convert this into the function: