api-client (1.2.0) LOST module [dataclasses] Not backward compatible
Closed this issue · 1 comments
Describe the bug
from apiclient import APIClient, endpoint, paginated, retry_request, NoAuthentication, JsonResponseHandler, JsonRequestFormatter
File "/usr/local/lib/python3.6/site-packages/api_client-1.2.0-py3.6.egg/apiclient/init.py", line 10, in
from apiclient.json import marshal_request, unmarshal_response
File "/usr/local/lib/python3.6/site-packages/api_client-1.2.0-py3.6.egg/apiclient/json.py", line 3, in
from jsonmarshal import marshal, unmarshal
File "/usr/local/lib/python3.6/site-packages/jsonmarshal-0.0.1-py3.6.egg/jsonmarshal/init.py", line 1, in
from jsonmarshal.fields import json_field
File "/usr/local/lib/python3.6/site-packages/jsonmarshal-0.0.1-py3.6.egg/jsonmarshal/fields.py", line 1, in
import dataclasses
ModuleNotFoundError: No module named 'dataclasses'
To Reproduce
I manually python setup.py install from api-client-1.2.1.tar.gz and update to api-client (1.2.0) but occur the error above. The version api-client (1.1.8) is ok.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
- Python version: [3.6.8]
- API Client version: [1.2.0]
As of version 1.2.0, the API Client is only available for python version 3.7 and above (i.e. those that support dataclasses).
https://github.com/MikeWooster/api-client/blob/master/setup.py#L32