wl-online-payments-direct / sdk-python3

Other
0 stars 0 forks source link

Multiple bad import (not absolute nor relative) #1

Closed m-lamour closed 3 years ago

m-lamour commented 3 years ago

An import is wrong in the files :

The import must be absolute or fully relative not a mix of both.

Traceback (most recent call last):
[...]
  File "[...].py", line 3, in <module>
    from ingenico.direct.sdk.factory import Factory
  File "[...]/.venv/lib/python3.7/site-packages/ingenico/direct/sdk/factory.py", line 4, in <module>
    from ingenico.direct.sdk.defaultimpl.default_connection import DefaultConnection
  File "[...]/.venv/lib/python3.7/site-packages/ingenico/direct/sdk/defaultimpl/default_connection.py", line 10, in <module>
    from direct.sdk.proxy_configuration import ProxyConfiguration
ModuleNotFoundError: No module named 'direct'
worldline-direct-support-team commented 3 years ago

Hi @m-lamour,

Thanks for the information! Relative imports have been replaced with absolute imports in release 1.3.1 and 1.4.0. Could you verify that the change works for you?

Kind regards, Ingenico Direct support team

m-lamour commented 3 years ago

Hi, Yes the issue is resolved since the 1.3.1.

Thanks