Open seanmaxwell opened 1 year ago
I am also seeing a similar error starting from importing the CampaignsApi
:
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.