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

Incompatibility with mqtt_client #19

Open
neillowden opened this issue Oct 16, 2021 · 4 comments
Open

Incompatibility with mqtt_client #19

neillowden opened this issue Oct 16, 2021 · 4 comments

Comments

@neillowden
Copy link

I am hitting the following incompatibility when trying to use esp_provisioning and mqtt_client in the same app.

Because mqtt_client >=9.1.0 depends on crypto ^3.0.1 and cryptography >=0.2.6 <2.0.0-nullsafety.0 depends on crypto ^2.0.0, mqtt_client >=9.1.0 is incompatible with cryptography >=0.2.6 <2.0.0-nullsafety.0.
Because esp_provisioning <=1.0.0+5 depends on cryptography ^0.2.6 and esp_provisioning >=1.0.0+6 depends on cryptography ^1.4.1, every version of esp_provisioning requires cryptography ^0.2.6 or ^1.4.1.
Thus, mqtt_client >=9.1.0 is incompatible with esp_provisioning.
So, because flutter_mqtt depends on both mqtt_client ^9.6.1 and esp_provisioning any, version solving failed.

Any suggestions on how to fix or workaround this?

@mahmoodfathy
Copy link

@neillowden I have the same issue , have you found any resolution to this ?

@neillowden
Copy link
Author

neillowden commented Nov 2, 2021

@neillowden I have the same issue , have you found any resolution to this ?

@mahmoodfathy Not yet. I tried building esp_provisioning with newer versions of crypto/ cryptography and Flutter but then got a multitude of null-safety problems. I'm starting to think this package is not actively maintained so I will be looking for alternatives.

@neillowden neillowden reopened this Nov 2, 2021
@mahmoodfathy
Copy link

@neillowden i have resolved this issue momentarily by overriding the crypto dependency by adding in the pubspec.yaml

dependency_overrides:
  crypto: ^2.0.0

but this is just a workaround and i agree with you that this is not actively maintained and we should look for alternatives or make it so we can resolve the null issues and open a PR

@zzdota
Copy link

zzdota commented May 26, 2022

@neillowden i have resolved this issue momentarily by overriding the crypto dependency by adding in the pubspec.yaml

dependency_overrides:
  crypto: ^2.0.0

but this is just a workaround and i agree with you that this is not actively maintained and we should look for alternatives or make it so we can resolve the null issues and open a PR

can not work in my project,issue as follow
Because owon_pct513 depends on dependency_overrides from unknown source "crypto", version solving failed. pub get failed (1; Because owon_pct513 depends on dependency_overrides from unknown source "crypto", version solving failed.)

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

3 participants