spawnl issues with Win 7 access rights

2011-10-24 Thread Propad
Hello everybody,
I have some trouble with a program I run both on a WinXP and on Win 7.
It boils down to this several lines:

import os
vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD
\DiagRA_D.exe'
#vePath = r'C:\Windows\notepad.exe'
process_id = os.spawnl(os.P_NOWAIT, vePath)

Under Win XP they  open DiagRA just fine; under Win 7 I'm getting:
OSError: [Errno 22] Invalid argument
Needless to say, I checked the path under Win 7; it is correct.

As you can see, I tried the same lines with notepad, just in case;
same result. Works fine under XP, IOError under Win 7.

So I'm pretty sure it's some kind of Win 7 access rights issue... Can
anybody point me to a concise overview of the issues involved, and
maybe even the known solutions? Again, it's os.spawnl in Python 2.2,
under Win 7.

Thank you very much in advance.

Cheers,

Nenad
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spawnl issues with Win 7 access rights

2011-10-24 Thread Propad
Hello Tim,
thanx for the fast answer. Sorry to hear there are such issues.
I'm obviously not free to choose my version of Python, or I'would be
using the latest'n'greatest. It's more like this: I'm obliged to use
the version delivered with dSpace tools (which is HiL - ECU-testing
software for the automotive and aerospace industries).
I'just might be able to use 2.5, which dSpace delivered  2-3 years
ago; but I'm not sure of that, and not sure it would help in any way.
So some solution without tweaking the code or anything would be realy
nice. I can't imagine anything of such importance was not tested at
all during the beta phase - so it could be the tests were not run with
such a tricky configuration of windows.

Any hints are appreciated!

Cheers,
Nenad

On 24 Okt., 15:18, Tim Golden  wrote:
> On 24/10/2011 13:43, Propad wrote:
>
>
>
>
>
> > Hello everybody,
> > I have some trouble with a program I run both on a WinXP and on Win 7.
> > It boils down to this several lines:
>
> > import os
> > vePath = r'C:\Programme\RA Consulting_Webservices\DiagRA-MCD
> > \DiagRA_D.exe'
> > #vePath = r'C:\Windows\notepad.exe'
> > process_id = os.spawnl(os.P_NOWAIT, vePath)
>
> > Under Win XP they  open DiagRA just fine; under Win 7 I'm getting:
> > OSError: [Errno 22] Invalid argument
> > Needless to say, I checked the path under Win 7; it is correct.
>
> > As you can see, I tried the same lines with notepad, just in case;
> > same result. Works fine under XP, IOError under Win 7.
>
> > So I'm pretty sure it's some kind of Win 7 access rights issue... Can
> > anybody point me to a concise overview of the issues involved, and
> > maybe even the known solutions? Again, it's os.spawnl in Python 2.2,
> > under Win 7.
>
> That's impressive. I ran this (on Python 2.7 on Win7):
>
> 
> import os
>
> os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe")
>
> 
>
> and Python crashed hard! Long time since I've seen that happen.
>
> This may or may not be related to what you're seeing but it's
> definitely a problem. I'll check the bugs database and/or
> file a bug.
>
> I *can* reproduce your problem running Python22 on Win7. Now,
> no-one's going to be applying patches to Python 2.2 at this
> stage: in the 2.x series, only 2.7 is getting anything other
> than urgent security fixes. And even 2.7's only getting clear
> bugfixes. Just so you know.
>
> Without checking the code, I'm going to assume that the 2.2 codebase
> is handing off to the MS C Runtime Library for posix-related calls
> such as the spawn* family. So it may not even be Python's code directly
> which is returning this error.
>
> TJG- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spawnl issues with Win 7 access rights

2011-10-25 Thread Propad
On 25 Okt., 02:21, Miki Tebeka  wrote:
> Please use the subprocess module, it's the one who's actively 
> maintained.http://docs.python.org/library/subprocess.html#replacing-the-os-spawn...

Thnx again for all the answers. As stated before, I'm limited in my
options. One of them just might be to switch to Python 2.5, rewrite
the code that crashes using the subprocess module, and then somehow
patch the library I use (which I'm not suposed to do, but... oh
well :-)). I can just hope subrocess was already mature adn offering
the relevant functionality in 2.5.

Cheers,
Nenad
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spawnl issues with Win 7 access rights

2011-10-27 Thread Propad
Hello Gentelmen,

the suggestion to add the optional second parameter fixed the problem,
spawnl now works on the Win 7 computer I'm responsible for (with
Python 2.2). So the suggested cause seems to be right.

Thank you for the great help!

Cheers,

Nenad



On 26 Okt., 21:20, Terry Reedy  wrote:
> On 10/26/2011 10:38 AM, Tim Golden wrote:
>
> > On 26/10/2011 02:11, Terry Reedy wrote:
> >> OP reports 2.6 with XP works.
>
> > Where do you see that, Terry? (Or was there an offlist email?)
>
> The first message ofhttp://bugs.python.org/issue8036
> "Python 2.6 is however happy and just reports invalid arg."
>
> --
> Terry Jan Reedy

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyGUI as a standard GUI API for Python?

2008-10-13 Thread Propad
> the bottom line is: if you want a windows version of pywebkitgtk, i'm
> happy to assist and advise anyone of the process- it should be quite
> straightforward _if_ you have MSVC and follow the standard procedure,
> but i'm not about to spend my own time and effort on providing a win32
> port using ming32, doing all the work _myself_, on my own, without
> financial incentive and renumeration.

Is Visual Studio 2005 OK, or is some other compiler required?

> i'll happily explain to other people what _they_ need to do, though.
>
> l.

If Visual Studio 2005 suffices, I'd give it a try.

Propad
--
http://mail.python.org/mailman/listinfo/python-list


Re: IDE Question

2008-10-17 Thread Propad
> On Oct 15, 2:19 pm, "Steve Phillips" <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
> > I am just wondering what seems to be the most popular IDE.
>
Hello,
I also purhcased my copy of Wing IDE six months ago, after having used
Idle, Scite and Leo quite extensively. I gave PyDev two tries, one in
the begining of 2006 and another spring this year. Although PyDev
looked promissing and the main annoyances from the first try (like an
intelisense that needed half a minute) had been solved, I was still
missing some things, like a realy good integration of the python shell
into it.
Wing convinced me pretty fast. It is just specialized to Python, one
can see they have been around in the Python community for a while. I
find the context-based intellisense they do quite usefull, and just
started appreciating the information about functions and methods at
the cursor that they offer.
Yeah, I find they are serious. I had tried Wing maybe 3 or 4 years
ago, at that time it looked just so ugly I didn't want to consider it
any further. But that has also changed. Now it looks OK.
So, yes, I can recommend Wing IDE. It is a good tool for a Python
professional.
Regads,
Propad
P.S. In fact, yesterday I found one first bug in Wing IDE. I hope the
support is as good as they say - I'll give you a note on this thread.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Graphical object browser

2008-10-30 Thread Propad
On Oct 30, 2:10 am, Jason <[EMAIL PROTECTED]> wrote:
> Hooray! I discovered PyCrust. I made this script (for Linux - under
> Win, you could just have all but the first line as a python file and
> run it directly):
>
> #!/usr/bin/python
> import wx
> import wx.py.PyCrust
>
> if __name__ == '__main__' :
>     app = wx.App()
>     pc = wx.py.PyCrust.App(app)
>     pc.MainLoop()
>
> Run it from the working dir and tinker from there.

Hello,
is it still possible to run PyCrust with Python 2.2? I see no
installer for it anywhere...
Cheers,
Propad
--
http://mail.python.org/mailman/listinfo/python-list


Debugging of a long running process under Windows

2008-07-31 Thread Propad
Hello,
I know this issue pops up once in a while, but I haven't found a good
answer to it. I need to debug a long running application under
windows. The application is a combined java/python framework for
testing ECUs in the automotive industry. Basically, the Java GUI
(Eclipse-based) starts test-cases written in Python and provides the
console where the test-logs are seen. When there is a exception
somewhere in the testcases (or the underlying functionallity, also
written in Python), those are also logged, and then the framework
usually continues with the next command in the same test case.
I'd like to have a debugging facillity better than print statements. I
imagine:
a) something like a debugger poping up when I get an exception, or b)
something debugger-like poping up when it reaches a command I entered
something in the code,
or c) Me pressing on a button and getting a debugger-like-thing that
lets me look into the running, possibly halted code.
I've done some little experiments with the code module, which looks
nice but does not seem to get over the control from the java-part, and
with popen2("cmd"), which seems not even to work if I start the code
from a dosbox (the same console is keept), and same thing when strated
by the Java-App.
Just to add, using pdb (or pythonwin debugger) seems not to be an
option, as it makes the test-runs much slower.
Does somebody have an idea? It seems there used to be a python
debugger called Pygdb, able to attach to a running application, but
now it seems it disapeared (now there is a python debugger with the
same name, linked to ViM).
Thanx,
Propad
--
http://mail.python.org/mailman/listinfo/python-list


Re: Debugging of a long running process under Windows

2008-08-21 Thread Propad
Hello,

thank you very much everybody. I gave up hope for an answer a long
time ago :-).
I'll take a look at the proposed solutions and give you a note.

Cheers,

Propad

On Aug 21, 12:02 pm, [EMAIL PROTECTED] (R. Bernstein) wrote:
> Tim Golden <[EMAIL PROTECTED]> writes:
> > R. Bernstein wrote:
> >> I don't know how well Microsoft Windows allows for sending a process a
> >> signal in Python, but if the Python signal module works reasonably
> >> well on Microsoft Windows, then reread
> >>http://bashdb.sourceforge.net/pydb/pydb/lib/node38.html
>
> > The answer is: not terribly well. (Or, rather: in a very
> > limited way). You should, however, be able to make use
> > of the SetConsoleCtrlHandler win32 api which is exposed
> > by pywin32's win32api module, or could be accessed via
> > ctypes:
>
> >http://timgolden.me.uk/pywin32-docs/win32api__SetConsoleCtrlHandler_m...
> >http://msdn.microsoft.com/en-us/library/ms686016(VS.85).aspx
>
> > TJG
>
> Interesting. Yes, it seems limited in that you get CTRL+C or
> CTRL+BREAK which seems to map to one of CTRL_CLOSE_EVENT,
> CTRL_LOGOFF_EVENT, or CTRL_SHUTDOWN_EVENT signals.  
>
> If someone is interested in hooking this into pydb's signal handling
> mechanism, I'll consider adding in a future release. (If hacking the
> configure script to test for the presense Microsoft Windows or the
> win32api is tedious, I can manage doing that part.)- Hide quoted text -
>
> - Show quoted text -

--
http://mail.python.org/mailman/listinfo/python-list


Re: Ironpython

2009-12-23 Thread Propad
On Dec 23, 6:20 am, Lev  wrote:
> Is this a correct group to talk about Ironpython? If not, please tell
> which is?

The group for IronPython specific issues is:

http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

It's quite active and helpfull.

Cheers,
Nenad
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Author of a Python Success Story Needs a Job!

2009-12-28 Thread Propad
Hello Mr. Fine,
I just read your mail on the Python Google Group. I've been in
situations of searching a job many times now - in the meantime, it's
not employments but projects I'm looking for, as I'm working as a
contractor.
While I'm currently doing reasonably well, I've never been quite
comfortable with my position, as I've experienced it several times,
one day you're The King, the other day the company's out of money, and
you're just too expensive to keep. So I went on searching for ways to
make my job more secure, and I just managed to buy a book named "Rapid
Learning" by Steve Litt. It took me several years to do so, because
the gentelman was not sending his book outside of the USA (well he
does to Canada, but I'm in Germany).
It just could be, that the book contains solutions to your situation,
as it's both about learning new technology rapidly, but also and
foremostly about selling yourself succsessfully as a competent
Programer/SW-Engineer/you-name-it. And not in a sleazy way, but still
effectively, in my opinion. It also deals with all kinds of obstacles
one can encounter while searching a job, based on age/race/area of
residence/an out-of-the-norm CV.
So just in case you want to consider the part shown in the book,
here's the link:
http://www.troubleshooters.com/bookstore/rl.htm
Much of Mr. Litt-s job-searching-philosophy is also presented in
several articles on his website, but in your situation, I'd not stop
there, but go for the book.
I wish you success in your search and a Happy New Year.
All the best,
Nenad
-- 
http://mail.python.org/mailman/listinfo/python-list