PyAPNs2 icon indicating copy to clipboard operation
PyAPNs2 copied to clipboard

apns2 0.7.2 requires PyJWT<2.0.0,>=1.4.0, but you have pyjwt 2.1.0 which is incompatible.

Open aabanaag opened this issue 3 years ago • 25 comments

setup.py was updated but it seems that it didn't apply properly still gets an error if PyJWT is 2.1.0

aabanaag avatar Jul 29 '21 10:07 aabanaag

@aabanaag Did you install from pypi or master branch? The changes from master branch are not yet released in pypi. I'm too waiting for the author to release the same.

babus avatar Aug 03 '21 08:08 babus

@Pr0Ger Can you please release the master?

alimirjahani7 avatar Aug 06 '21 10:08 alimirjahani7

@aabanaag Did you install from pypi or master branch? The changes from master branch are not yet released in pypi. I'm too waiting for the author to release the same.

from pypi

aabanaag avatar Aug 06 '21 12:08 aabanaag

Can someone help with a work-around here? I got the same issue.

anhphamt avatar Sep 03 '21 14:09 anhphamt

Hey @Pr0Ger, please release an update to PyPi

AlexJMohr avatar Nov 05 '21 18:11 AlexJMohr

Same issue. Please push update to pypi!

nik13 avatar Nov 06 '21 09:11 nik13

You can pin your dependencies to specific commit. For example, using poetry: https://python-poetry.org/docs/dependency-specification/#git-dependencies

andrewsanchez avatar Nov 10 '21 21:11 andrewsanchez

Bump. Can you push a new release to PyPI please?

levinotik avatar Dec 06 '21 20:12 levinotik

@andrewsanchez do you by chance know how to specify a specific commit as a dependency when using a requirements.in file with pip-tools?

levinotik avatar Dec 06 '21 20:12 levinotik

@levinotik

# requirements.in
apns2 @ git+https://github.com/Pr0Ger/PyAPNs2.git@5e4a938

output:

# requirements.txt
apns2 @ git+https://github.com/Pr0Ger/PyAPNs2.git@5e4a938
    # via -r requirements.in
cffi==1.15.0
    # via cryptography
cryptography==36.0.0
    # via apns2
h2==2.6.2
    # via hyper
hpack==3.0.0
    # via h2
hyper==0.7.0
    # via apns2
hyperframe==3.2.0
    # via
    #   h2
    #   hyper
pycparser==2.21
    # via cffi
pyjwt==2.3.0
    # via apns2

AlexJMohr avatar Dec 08 '21 02:12 AlexJMohr

Any status on this issue? We were using Django Push notifications which depends on this library but have another library that requires a PyJWT greater than 2.0. Any thoughts or suggestions on how to proceed and have everything compatible?

madhavSoni avatar Apr 03 '22 00:04 madhavSoni

there have some strange the latest version 0.7.2 required pyjwt = ">=2.0.0" in toml file but 0.7.2 release note and pypi required pyjwt < 2.0.0

johney4415 avatar Jun 14 '22 08:06 johney4415

+1

harikvpy avatar Nov 30 '22 03:11 harikvpy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 01 '23 00:06 github-actions[bot]

This is still an issue

daveisfera avatar Jun 01 '23 00:06 daveisfera

+1

DanielSchiavini avatar Jun 01 '23 07:06 DanielSchiavini

Any status on this ?

AzikDeveloper avatar Jun 01 '23 16:06 AzikDeveloper

In case you use pipenv I was able to install it with the specific master branch commit with the following command:

pipenv install "git+https://[email protected]/Pr0Ger/PyAPNs2.git@aac4bd3494670b8090774cb051798cfac5e0ed6a#egg=apns2"

biiit avatar Nov 13 '23 16:11 biiit

This is still an issue

Cair06 avatar Jan 12 '24 14:01 Cair06

A temporary solution In my requirements.txt:

# django-push-notifications==3.0.2
# Point temporaraly to a forked version of django-push-notifications with support for aioapns, to avoid using unamaintained apns2
git+https://github.com/pomali/django-push-notifications.git@master#egg=django-push-notifications
aioapns==3.1

Seems to fix the issue. Just make sure that git is installed in your environment, In my case, docker container, I had to add RUN apk add --no-cache git to my DockerFile

itayAmza avatar Jan 25 '24 15:01 itayAmza

still an issue!

ssyberg avatar Mar 08 '24 21:03 ssyberg

still an issue!!!!!!

usgitAz avatar Mar 11 '24 06:03 usgitAz