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

Add handling of TypeError case to is_native #588

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Add handling of TypeError case to is_native #588

merged 1 commit into from
Mar 30, 2023

Conversation

ahaberlach
Copy link
Contributor

This should address #587 which has more information, but basically the check for native fails on at least my system because package.file exists, but is None, so os.path.dirname() returns a TypeError.

This should address #587 which has more information, but basically the check for native fails on at least my system because package.__file__ exists, but is None, so os.path.dirname() returns a TypeError.
@emeryberger
Copy link
Member

Can you print out some info so we can see what library this is? It's a surprising issue. Thanks!

@akx
Copy link

akx commented Mar 30, 2023

Saw #587 happen to me locally just now and was about to come report it, but here we go :)

The package for me is

<module 'google.cloud' (<_frozen_importlib_external.NamespaceLoader object at 0x103b68060>)>

@emeryberger
Copy link
Member

This should be fixed in the latest release!

@ahaberlach ahaberlach deleted the patch-1 branch April 6, 2023 15:16
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

Successfully merging this pull request may close these issues.

3 participants