django-pyas2 icon indicating copy to clipboard operation
django-pyas2 copied to clipboard

Dependency Conflict

Open Hammad-1 opened this issue 1 year ago • 3 comments

Hello,

I encountered an error during deployment, which states: "ERROR: Cannot install cryptography~=37.0.4 and pyas2lib because these package versions have conflicting dependencies"

I attempted to resolve this issue by updating the version of cryptography to 38.0.4. Although this change allowed the build to pass, migrations for django-pyas2 library did not apply. Upon reviewing the logs, I found the following error: "oscrypto.errors.LibraryNotFoundError: Error detecting the version of libcrypto"

Do you have any suggestions on how to address this issue?

Thanks, Hammad

Hammad-1 avatar May 22 '24 15:05 Hammad-1

@Hammad-1 : you can probably resolve the issue with libcrypto by using patch of oscrypto library as discussed in https://github.com/abhishek-ram/django-pyas2/issues/109

For the earlier one, you can probably do this by applying current master branch of pyas2-lib: pip install -U git+https://github.com/abhishek-ram/pyas2-lib@master

chadgates avatar May 23 '24 10:05 chadgates

Thank you @chadgates

Hammad-1 avatar Jun 03 '24 20:06 Hammad-1

maybe update this in your docker example as wel https://django-pyas2.readthedocs.io/en/latest/detailed-guide/docker.html because this will currently fail to build cryptography

gertcuykens avatar Jul 24 '24 16:07 gertcuykens