Skip to content
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

ModuleNotFoundError: No module named 'CyberSource.logging' #53

Open
maddenf opened this issue Sep 5, 2022 · 1 comment
Open

ModuleNotFoundError: No module named 'CyberSource.logging' #53

maddenf opened this issue Sep 5, 2022 · 1 comment

Comments

@maddenf
Copy link

maddenf commented Sep 5, 2022

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'
@francrubio
Copy link

Have you imported the Cybersource library?

from CyberSource import *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants