-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError when importing CreativeWritable #198
Comments
I am also seeing a similar error starting from importing the Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/sean/.local/share/virtualenvs/web-k-_uvhwi/lib/python3.8/site-packages/lob_python/api/campaigns_api.py", line 25, in <module>
from lob_python.model.campaign import Campaign
File "/Users/sean/.local/share/virtualenvs/web-k-_uvhwi/lib/python3.8/site-packages/lob_python/model/campaign.py", line 32, in <module>
from lob_python.model.campaign_creative import CampaignCreative
File "/Users/sean/.local/share/virtualenvs/web-k-_uvhwi/lib/python3.8/site-packages/lob_python/model/campaign_creative.py", line 110
'details': (, PostcardDetailsWritable, type(None)), # noqa: E501
^
SyntaxError: invalid syntax |
@seanmaxwell Thanks for catching this, I don't have an immediate solution so will probably have to dig into a bit. I will update back here when I have a solution and a new version out. |
Is there a fix in sight for this issue? As far as I can tell any version >= 5.0.1 is not usable for this package for different issues. Should we continue to use v4.x.x of the lob API in python? |
When I import the
CreativeWritable
class to use it in a api call, I get back the following error:contents of
main.py
:I have tried importing this class in a python 3.8 project and got the same result. The provided reproduction was done with python 3.10.
Full command line reproduction:
Please let me know if you need more information. Thank you.
The text was updated successfully, but these errors were encountered: