Skip to content
New issue

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

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

Already on GitHub? # to your account

MacOS Azure Pipelines fails to install requirements.txt for Python #739

Closed
N-Dekker opened this issue Oct 7, 2022 · 1 comment
Closed

Comments

@N-Dekker
Copy link
Member

N-Dekker commented Oct 7, 2022

Errors encountered at the Azure Pipelines CI on MacOS:

ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/tmpMX6EIw
...
File "setup.py", line 5, in
with open('SimpleITK/Readme.md', encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function

And then, when explicitly specifying Python3:


   × python setup.py egg_info did not run successfully.
    │ exit code: 1
    ╰─> [4 lines of output]
        scikit-build is required to build from source.

After upgrade to macos-12:

2022-09-26T16:24:15.1932250Z Building wheels for collected packages: itk
2022-09-26T16:24:15.1944650Z   Building wheel for itk (setup.py): started
2022-09-26T16:24:16.8363120Z   Building wheel for itk (setup.py): finished with status 'error'
2022-09-26T16:24:16.8513630Z   error: subprocess-exited-with-error
2022-09-26T16:24:16.8515050Z   
2022-09-26T16:24:16.8516010Z   × python setup.py bdist_wheel did not run successfully.
2022-09-26T16:24:16.8517040Z   │ exit code: 1
2022-09-26T16:24:16.8518160Z   ╰─> [99 lines of output]

N-Dekker added a commit that referenced this issue Oct 7, 2022
Because of issue #739 "MacOS Azure Pipelines fails to install requirements.txt for Python".

The intention is now to defer the issue for a while.
N-Dekker added a commit that referenced this issue Oct 7, 2022
Because of issue #739 "MacOS Azure Pipelines fails to install requirements.txt for Python".

The intention is now to defer the issue for a while.
@N-Dekker
Copy link
Member Author

N-Dekker commented Oct 7, 2022

Deferred. Takes too much time to solve now, and we have MacOS running tests on GitHub actions anyway.

@N-Dekker N-Dekker closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2022
N-Dekker added a commit to InsightSoftwareConsortium/ITKElastix that referenced this issue Oct 24, 2022
Worked around the forrowing test failure:

    22/24 Test #23: TransformixTest ......................................***Failed    0.16 sec
    Traceback (most recent call last):
      File "/Users/runner/work/ITKElastix/build/_deps/elx-src/Testing/PythonTests/transformix_test.py", line 28, in <module>
        import itk
    ModuleNotFoundError: No module named 'itk'

Possibly related to issue SuperElastix/elastix#739
"MacOS Azure Pipelines fails to install requirements.txt for Python"
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant