CyberSource / CyberSource/cybersource-rest-samples-python
Remove Typing dependencie
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 29
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
I am implementing the service and when I try to execute the following message appears.
[ERROR] AttributeError: type object 'Callable' has no attribute '_abc_registry'
Traceback (most recent call last):
File "/var/lang/lib/python3.7/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/var/lang/lib/python3.7/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/app.py", line 5, in <module>
from linksys.core.apigateway.response import response
File "/opt/python/lib/python3.7/site-packages/linsys/core/apigateway/response.py", line 3, in <module>
from typing import Any
File "/var/task/typing.py", line 1359, in <module>
class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
File "/var/task/typing.py", line 1007, in __new__
self._abc_registry = extra._abc_registry
Manually delete the typing.py file, installed from the library dependencies, and do not generate the error.
Details
Python 3.7
cybersource-rest-client-python===0.0.20
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app.py and the import from linksys/core/apigateway/response.py, then inspect the typing.py file shown in the traceback and the cybersource-rest-client-python===0.0.20 dependency. Reproduce the Python 3.7 error and verify that the sample runs without the conflicting typing.py file being installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100