rafaeelaudibert / Encryptor

Several encryptors (cryptographic secure or not) available in a REST API fashion, using Flask
8 stars 12 forks source link

Conflicting dependencies in sentry-sdk and sentry-sdk[flask] #33

Closed chtnnh closed 2 years ago

chtnnh commented 2 years ago

When running pip install -r requirements.txt as instructed in the README.md, the following error causes the execution to stop:

INFO: pip is looking at multiple versions of sentry-sdk to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-dotenv to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytest-mock to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytest-flask to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pytest to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of markupsafe to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of itsdangerous to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flask to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of contextlib2 to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of blowfish to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of blinker to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install sentry-sdk==0.19.0 and sentry-sdk[flask]==0.12.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested sentry-sdk==0.19.0
    sentry-sdk[flask] 0.12.2 depends on sentry-sdk 0.12.2 (from https://files.pythonhosted.org/packages/cf/c2/845d503adb168fcd276a54ac7e5a4fab18d8ed83cf8ad8fba6599eb6ca9c/sentry_sdk-0.12.2-py2.py3-none-any.whl#sha256=ab16b539c40cc18e3dcfec99d0d3fff16337a050eaf79d4503ef2b73af9a7d9e (from https://pypi.org/simple/sentry-sdk/))

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

As pip suggests, these can be fixed by either loosening the sentry sdk version requirements or removing the package versions altogether.

chtnnh commented 2 years ago

Willing to take this up!!

rafaeelaudibert commented 2 years ago

I think that if we could bump both of the libraries to their latest versions, that'd be preferable. Id be verh happy if you could tackle it!

Dont hesitate on bringing the possible solutions here if you are in doubt!

Thanks

Em seg., 25 de out. de 2021 12:52, Chaitanya Mittal < @.***> escreveu:

Willing to take this up!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rafaeelaudibert/Encryptor/issues/33#issuecomment-950793097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUYAKFA5MFMWID7HPEZ37LUIUZFZANCNFSM5GU6VWQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

chtnnh commented 2 years ago

Well, I don't mind trying that. Although removing the version from sentry-sdk[flask] seemed to do the trick. Let me know if that is an acceptable solution haha

chtnnh commented 2 years ago

Also, would it be possible for you to add the label:hacktoberfest to this? would help a lot 🥺

rafaeelaudibert commented 2 years ago

We'll probably need sentry-sdk[flask] for it to properly integrate with flask, so I'd rather you not remove it.

chtnnh commented 2 years ago

We'll probably need sentry-sdk[flask] for it to properly integrate with flask, so I'd rather you not remove it.

Oh, I didn't remove sentry-sdk[flask], I just removed the version number so it automatically picks up the latest one. The event is showing up in sentry so I am sure it is working as expected. Let me know if that is acceptable and I will file a PR asap

rafaeelaudibert commented 2 years ago

Oh, that makes sense! Of course, go ahead and open a PR :)

rafaeelaudibert commented 2 years ago

Closed by #35