olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
803 stars 206 forks source link

Can't import module #286

Closed kryptonn closed 2 years ago

kryptonn commented 3 years ago

When i just import module i get this error : Traceback (most recent call last): File "/var/www/myfolder/script.py", line 3, in from pyfcm import FCMNotification File "/usr/local/lib/python2.7/dist-packages/pyfcm/init.py", line 14, in from .fcm import FCMNotification File "/usr/local/lib/python2.7/dist-packages/pyfcm/fcm.py", line 564 def async_notify_multiple_devices(self,params_list:list=[],timeout=5): ^ SyntaxError: invalid syntax

Any idea on what's going on ?

i run it in a docker php:7.2-fpm image with python 2.7

neeksor commented 3 years ago

use a newer version of python.