In Python 3.7,
from facebookads.adobjects.adlabel import AdLabel
results in
Traceback (most recent call last):
File "/Users/mohan/growth-tools/facebook-experiment/main.py", line 4, in <module>
from facebookads.adobjects.adlabel import AdLabel
File "/Users/mohan/growth-tools/facebook-experiment/venv/lib/python3.7/site-packages/facebookads/adobjects/adlabel.py", line 22, in <module>
from facebookads.adobjects.abstractcrudobject import AbstractCrudObject
File "/Users/mohan/growth-tools/facebook-experiment/venv/lib/python3.7/site-packages/facebookads/adobjects/abstractcrudobject.py", line 564
params=None, async=False, include_summary=True,
^
SyntaxError: invalid syntax
The issue is, I think, that async has become a reserved keyword as of Python 3.7. Is there any workaround that would let me keep using this SDK?
If you think there is a genuine problem with the SDK, can't you just
sudo cdthere and then edit it?If you can then the easiest option is to just go through every instance of
asyncand check if it is the variable async, then replace it if it is.