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

Misleading error message: ProviderNotAvailableError - This provider (plesk) has required dependencies that are missing. Please install lexicon[plesk] first. #465

Closed
antetna opened this issue Nov 16, 2019 · 1 comment · Fixed by #1568

Comments

@antetna
Copy link

antetna commented Nov 16, 2019

(venv) mypc:~/myprojects/dns-lexicon$ pip freeze
certifi==2019.9.11
cffi==1.13.2
chardet==3.0.4
cryptography==2.8
dns-lexicon==3.3.10
future==0.18.2
idna==2.8
pycparser==2.19
pyOpenSSL==19.0.0
PyYAML==5.1.2
requests==2.22.0
requests-file==1.4.3
six==1.13.0
tldextract==2.2.2
urllib3==1.25.7
(venv) mypc:~/myprojects/dns-lexicon$ python main.py 
Traceback (most recent call last):
  File "main.py", line 111, in <module>
    update_server_record(data[0], data[1])
  File "main.py", line 62, in update_server_record
    plesk_record = list_action(filter_name=server_name, filter_type='A')
  File "main.py", line 58, in list_action
    return lexicon.client.Client(config).execute()
  File "/home/joe/myprojects/dns-lexicon/venv/lib/python3.6/site-packages/lexicon/client.py", line 36, in __init__
    self._validate_config()
  File "/home/joe/myprojects/dns-lexicon/venv/lib/python3.6/site-packages/lexicon/client.py", line 105, in _validate_config
    'Please install lexicon[{0}] first.'.format(provider_name))
lexicon.client.ProviderNotAvailableError: This provider (plesk) has required dependencies that are missing. Please install lexicon[plesk] first.

Error is misleading because of this part:

Please install lexicon[plesk] first.

it should be

Please install dns-lexicon[plesk] first.

@b2ag
Copy link

b2ag commented Sep 30, 2022

I have a similar problem. The error doesn't specify what the real problem is here. I installed lexicon with the system's packet manager (apt on Ubuntu) which contains the logic for the provider I need. Something is missing, I get it, but what exactly? I'm unwilling to just do a dns-lexicon[something] if I can install system packages. It should list what dependencies are actually missing (e.g. describe the actual problem) and not present half-baked solutions.

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

Successfully merging a pull request may close this issue.

2 participants