ModuleNotFoundError: No module named 'CyberSource.logging'
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 28/100
Research direction
Start with samples/PayerAuthentication/authentication-with-new-account.py and data/Configuration.py, then trace how the Python client exposes the CyberSource.logging module used by the configuration. Reproduce the sample’s import failure and verify that the sample can load its configuration without the reported ModuleNotFoundError.
Written by the indexing model from the issue text.
Description
Configuration has been setup. Trying to run a sample PayerAuthentication script.
Traceback (most recent call last):
File "samples/PayerAuthentication/authentication-with-new-account.py", line 7, in <module>
configuration = SourceFileLoader("module.name", config_file).load_module()
File "<frozen importlib._bootstrap_external>", line 462, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 962, in load_module
File "<frozen importlib._bootstrap_external>", line 787, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/user/foomanchu/projects/cybersource-rest-samples-python/data/Configuration.py", line 2, in <module>
from CyberSource.logging.log_configuration import LogConfiguration
ModuleNotFoundError: No module named 'CyberSource.logging'
- Dominant language
- Python
- Stars
- 30
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from CyberSource/cybersource-rest-samples-python
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 58/100
CyberSource/cybersource-rest-samples-python#65 · 1 reaction ·
-
AMEX Account UpdaterOpen
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
CyberSource/cybersource-rest-samples-python#45 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
CyberSource/cybersource-rest-samples-python#43 · 2 comments ·
All issues in CyberSource/cybersource-rest-samples-python
Similar issues
-
[Bug]: Non-vision image fallback calls vision_analyze with an empty source for oversized inline images and tells the model the image is corruptPossibly taken @liuhao1024 claimed this today. Opencomp/agent P2 tool/vision type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#132605 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pymc-labs/pymc-marketing#3102 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/compressed-tensors#920 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
accepted bug wg/router-models-inference-runtime
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vllm-project/semantic-router#4524 · 1 comment ·
Maintainers usually reply within 1 day