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

[Python] Fixed import when AvroSchema is not being used #11034

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

merlimat
Copy link
Contributor

Motivation

Fixes #10929

Since by default we're not marking fastavro as a dependency, we shouldn't failing when the dependency
is not there, unless a user is really trying to use AvroSchema, in which case we should give a useful error message.

@merlimat merlimat added type/bug The PR fixed a bug or issue reported a bug component/python release/2.8.1 labels Jun 23, 2021
@merlimat merlimat added this to the 2.9.0 milestone Jun 23, 2021
@merlimat merlimat self-assigned this Jun 23, 2021
@sijie sijie merged commit b4fa411 into apache:master Jun 24, 2021
@merlimat merlimat deleted the fix-python-pkg branch June 24, 2021 09:36
kaushik-develop pushed a commit to kaushik-develop/pulsar that referenced this pull request Jun 24, 2021
### Motivation

Fixes apache#10929

Since by default we're not marking `fastavro` as a dependency, we shouldn't failing when the dependency
is not there, unless a user is really trying to use `AvroSchema`,  in which case we should give a useful error message.
codelipenghui pushed a commit that referenced this pull request Jun 25, 2021
### Motivation

Fixes #10929

Since by default we're not marking `fastavro` as a dependency, we shouldn't failing when the dependency
is not there, unless a user is really trying to use `AvroSchema`,  in which case we should give a useful error message.

(cherry picked from commit b4fa411)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jun 25, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
### Motivation

Fixes apache#10929

Since by default we're not marking `fastavro` as a dependency, we shouldn't failing when the dependency
is not there, unless a user is really trying to use `AvroSchema`,  in which case we should give a useful error message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-2.8 Archived: 2.8 is end of life release/2.8.1 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python pulsar-client 2.8.0 raise ModuleNotFoundError No module named 'fastavro'
4 participants