Created
April 12, 2018 04:31
-
-
Save Suleman-Elahi/5211e2646653fb0ab400185b0bb76452 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App directory structure: | |
~/airnotifier/api/tokens.py --> contains a function called delete I want to call --> This function specifically --> https://github.com/airnotifier/airnotifier/blob/master/api/tokens.py#L38 | |
~/airnotifier/pushservices/apns.py --> my modified apns file that wants to call the function above | |
What I did: | |
in ~/airnotifier/pushservices/apns.py, I added | |
from api.tokens import delete as my_delete | |
The error it gives me is to do with another module and the error goes away when I remove that line | |
pp@ubuntu:~/airnotifier$ python ./airnotifier.py | |
Traceback (most recent call last): | |
File "./airnotifier.py", line 37, in <module> | |
from pushservices.apns import * | |
File "/home/pp/airnotifier/pushservices/apns.py", line 40, in <module> | |
from api.tokens import delete as my_delete | |
File "/home/pp/airnotifier/api/__init__.py", line 47, in <module> | |
from pushservices.apns import PayLoad | |
ImportError: cannot import name PayLoad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment