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

depend: work around the potential None referer in get_co_using_ctypes #5663

Merged
merged 1 commit into from Mar 23, 2021

Conversation

rokm
Copy link
Member

@rokm rokm commented Mar 22, 2021

If ctypes is (manually) added to hidden imports under python 3.7, one of referers entries processed in get_co_using_ctypes() method of PyiModuleGraph ends up being None. This in turn causes error when its identifier property is accessed, causing #3825.

Work around the problem by explicitly skipping None entries.

Fixes #3825.

If `ctypes` is (manually) added to hidden imports under python 3.7,
one of `referers` entries processed in `get_co_using_ctypes()` method
of `PyiModuleGraph` ends up being None. This in turn causes error
when its `identifier` property is accessed, causing pyinstaller#3825.

Work around the problem by explicitly skipping `None` entries.

Fixes pyinstaller#3825.
@bwoodsend bwoodsend added the merge-on-ci-pass This PR is ready to merge providing CI passes label Mar 22, 2021
@bwoodsend bwoodsend merged commit cdfcbd8 into pyinstaller:develop Mar 23, 2021
@rokm rokm deleted the fix-3825 branch May 5, 2021 09:41
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
merge-on-ci-pass This PR is ready to merge providing CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure in 'Looking for ctypes DLLs' when specifying 'ctypes' as a hidden import.
2 participants