Re: The following modules appear to be missing - py2exe

2011-07-19 Thread Noon Silk
On Tue, Jul 19, 2011 at 7:47 PM, Peter Irbizon  wrote:
> Hello, please I have problem with "The following modules appear to be
> missing" message during compiling my app exe file with py2exe. What should I
> do with this? Many thanks in advance.
>
> The following modules appear to be missing
>
> [...]


What does your setup.py look like? I was able to solve this my
including the relevant libs in the following:

setup(windows=[{'script': 'foo.py'}],
options={
'py2exe':
{
'includes': ['gzip', 'other libs here'],
}
    }
)

Given from here: <http://stackoverflow.com/questions/5308760/py2exe-lxml-woes>


-- 
Noon Silk | http://dnoondt.wordpress.com/ >

Fancy a quantum lunch? http://groups.google.com/group/quantum-lunch?hl=en

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."
-- 
http://mail.python.org/mailman/listinfo/python-list


nose + processes + xunit

2011-08-18 Thread Noon Silk
Has anyone had any trouble with this setup?

I am in a situation where, the tests run fine when I don't include
"--processes=N", however, when I *do* do that, they exit early?

The reason I think they exit, is that I'm actually running a different
executable, and I load it like so:

retcode = subprocess.call(["start /wait myprog.exe"], shell=True)

Now, note that this is on Windows 7; the "start /wait" does basically
exactly what you think. *And indeed it operates correctly in a single
process*, but when nose tries to run multi-process, it fails to block,
and the test executes far sooner than it should.

Indeed, Nose claims that it ran 0 tests, when it actually at least ran
1! So, I think the myprog.exe is sending some signal to kill it.

It so happens that start has a "/B"  parameter that may also help
here, but actually it doesn't. The result is that I don't get any
further output from the test (that is, the xunit xml isn't generated,
and even the console doesn't report anything as having happened).

Interested in thoughts ...

-- 
Noon Silk

Fancy a quantum lunch? http://groups.google.com/group/quantum-lunch?hl=en

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."
-- 
http://mail.python.org/mailman/listinfo/python-list