Jython does not support win32api. Although certainly technically feasible, it would be of very low priority for Jython development. Alternatives include using a commercial package like J/Invoke (are there good open source alternatives?), or some CPython/Jython integration.

Jython can readily import either Java or Python. The question for Python modules is whether they have either native dependencies, or rely on something OS specific. Anything like that would require some porting. In many ways, this is no different than in CPython, especially for crossing the Windows/*nix divide. In addition, we still have some gaps in our standard library support. 

- Jim

On Tue, Nov 24, 2009 at 7:03 AM, kilon <thekilon@yahoo.co.uk> wrote:

I am no expert on this field but Jython gives priority to Java libraries over
python libraries. Only java libraries work out of the box. Cpython libraries
need to be converted to jython in order to work. However jython already
includes many cpython libraries that have been converted to Jython (which is
java bytecode).

Most likely win32api is not jython friendly yet. And because it seems like
an Os specific ,  I do not see it implemented.

vistar76 wrote:
> Hi, Sorry for my English.
> I'm use Eclise and PyDev.
> I have a problem with "import win32api", I'm created an application Java
> and Python, and I'm import win32api but the message return : "ImportError:
> No module named win32api". I don't understand because with Python run, my
> application is successful start but Jython run return ImportError. The
> repertories of Win32api is Python25/Lib/site-packages/win32 so I'm insert
> the path but return always error.
> Jython doesn't read win32api.pyd ?
> Help me please

View this message in context: http://old.nabble.com/Win32api-tp26433325p26496424.html
Sent from the jython-users mailing list archive at Nabble.com.

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Jython-users mailing list

Jim Baker