Hello everyone!
TLDR: pypiwin32 dependancy broken in Kit Python
I am currently writing an extension that uses the Python Docker SDK, on Windows, this depends on pypiwin32 for use of npipe.
The trouble I am having is that pypiwin32 is not being successfully installed in the Kit python environment.
Currently, in the extension’s extension.toml file I have:
[python.pipapi]
requirements = [
"pypiwin32",
"pywin32",
"... other deps",
]
Which appears to correctly start the pip process, however, when attempting to use commands that require pypiwin32 I recieve errors such as:
“docker.errors.DockerException: Install pypiwin32 package to enable npipe:// support”
Investigating the modules installed in the Kit Python instance [help(‘modules’)], shows no reference to “pypiwin32”, “pywin32”, “win32api” etc - although other modules specified in the .toml file can now be found there.
I have also attempted to manually use the Omniverse pip api e.g.:
success = omni.kit.pipapi.install("pypiwin32", use_online_index=True, extra_args=["--upgrade"])
however, this gave the same outcome. As did capturing the pip command run by Omniverse and running it manually in the prompt.
I notice the pywin32 is mentioned in several of the automated tests bundled with the Omniverse, but I am unsure how to reuse what is there in my work.
I’d really appreciate any help that anyone could give me with this issue!
Many thanks and kind regards,
Oliver
My environment is:
- Windows 10,
- Create 2021.3.8
- Kit 102.1.1