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

Error "KeyError: 'HOMEDRIVE'" when execute jenkins command #1

Open
wwyhy opened this issue Oct 16, 2020 · 2 comments
Open

Error "KeyError: 'HOMEDRIVE'" when execute jenkins command #1

wwyhy opened this issue Oct 16, 2020 · 2 comments

Comments

@wwyhy
Copy link

wwyhy commented Oct 16, 2020

Hi,

I followed the install instruction to installed the jenkinsclient, but always got error when i execute any jenkins commands.
Could you please help on this issue?

[root@Wayne jenkins]# jenkins config generate
Traceback (most recent call last):
  File "/usr/local/bin/jenkins", line 7, in <module>
    from jenkins_client import main
  File "/usr/local/lib/python3.6/site-packages/jenkins_client.py", line 14, in <module>
    from jenkinsclient.credentials import Credentials
  File "/usr/local/lib/python3.6/site-packages/jenkinsclient/__init__.py", line 10, in <module>
    from jenkinsclient import (
  File "/usr/local/lib/python3.6/site-packages/jenkinsclient/config.py", line 26, in <module>
    HOME_PATH = os.environ['HOMEDRIVE'] + os.environ['HOME']
  File "/usr/lib64/python3.6/os.py", line 669, in __getitem__
    raise KeyError(key) from None
KeyError: 'HOMEDRIVE'

Thanks!
Br, Wayne

@wwyhy
Copy link
Author

wwyhy commented Oct 16, 2020

It works on Windows, does it support Linux?

@hummerstudio
Copy link
Owner

@wwyhy Hello, I have released version 1.5.5 on October 31, 2020. This version fixes the problem that the home directory cannot be obtained correctly on the Mac. I guess this fix is also valid for Linux. Can you upgrade and see if the problem is resolved?

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

No branches or pull requests

2 participants