Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python build #7

Closed
dzenanz opened this issue Sep 22, 2022 · 3 comments
Closed

Fix Python build #7

dzenanz opened this issue Sep 22, 2022 · 3 comments

Comments

@dzenanz
Copy link
Member

dzenanz commented Sep 22, 2022

dzenan@corista:~/ITKIOOMEZarrNGFF-rwd$ ninja
[2/2] Generating .pyi files for Python wrapper interface
FAILED: Wrapping/CMakeFiles/itk-stub-files /home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk/_proxies.pyi /home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk/__init__.pyi /home/dzenan/ITKIOOMEZarrNGFF-rwd/Wrapping/CMakeFiles/itk-stub-files 
cd /home/dzenan/ITKIOOMEZarrNGFF-rwd/Wrapping && /usr/bin/python3.10 /home/dzenan/ITK-git/Wrapping/Generators/Python/itk/pyi_generator.py --pyi_dir /home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk --pkl_dir /home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk-pkl --index_list_file /home/dzenan/ITKIOOMEZarrNGFF-rwd/Wrapping/GlobalIdxFilesList.txt
WARNING: index file  is missing,  Python stub hints will not be generated for this file. 
Exception: No index files were found in directory '/home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk-pkl'
Traceback (most recent call last):
  File "/home/dzenan/ITK-git/Wrapping/Generators/Python/itk/pyi_generator.py", line 569, in <module>
    raise Exception(except_comment)
Exception: No index files were found in directory '/home/dzenan/ITK-git-rel/Wrapping/Generators/Python/itk-pkl'
ninja: build stopped: subcommand failed.
dzenan@corista:~/ITKIOOMEZarrNGFF-rwd$

This seems like a duplicate of InsightSoftwareConsortium/ITK#3595.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 22, 2022

@tbirdso is there some chance you could look into this? I don't plan to touch it again until next week. My current progress is in PR #6.

@tbirdso
Copy link
Collaborator

tbirdso commented Sep 22, 2022

Hi @dzenanz, where is this failure happening? Does this occur in CI?

I agree that this is an instance of InsightSoftwareConsortium/ITK#3595 where wrapping is turned on but no wrap files are present. A resolution would be either 1) explicitly turn off wrapping for now or 2) add a wrap file for any class defined in the project.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 22, 2022

An easy way to reproduce is trying to build ITKIOOMEZarrNGFF on Linux, when pointing to an ITK build which has Python wrapping enabled. In trying to point you to the wrapping definition, I realized I forgot to check it in. It was only on my Windows computer.

@dzenanz dzenanz closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants