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

divio doctor command breaks on python 3.7 #230

Open
monikasulik opened this issue May 14, 2019 · 0 comments
Open

divio doctor command breaks on python 3.7 #230

monikasulik opened this issue May 14, 2019 · 0 comments

Comments

@monikasulik
Copy link

monikasulik commented May 14, 2019

Using windows 10 and python 3.7.3, this is the stacktrace I get:

PS J:\> divio doctor
Verifying your system setup
 OK  Login
Traceback (most recent call last):
  File "c:\users\xxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\check_system.py", line 25, in run_check
    utils.check_call(self.command, catch=False, silent=True)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\utils.py", line 162, in check_call
    return execute(subprocess.check_call, *popenargs, **kwargs)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\utils.py", line 145, in execute
    return func(*popenargs, **kwargs)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\subprocess.py", line 342, in check_call
    retcode = call(*popenargs, **kwargs)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\subprocess.py", line 323, in call
    with Popen(*popenargs, **kwargs) as p:
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\subprocess.py", line 1178, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\xxxx\AppData\Local\Programs\Python\Python37\Scripts\divio-script.py", line 11, in <module>
    load_entry_point('divio-cli==3.5.0', 'console_scripts', 'divio')()
  File "c:\users\xxxx\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "c:\users\xxxxxx\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "c:\users\xxxxxxxx\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\users\xxxx\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\click\decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\cli.py", line 751, in doctor
    0 if check_requirements_human(obj.client.config, checks) else 1
  File "c:\users\xxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\check_system.py", line 243, in check_requirements_human
    for check, check_name, error in check_requirements(config, checks):
  File "c:\users\xxxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\check_system.py", line 222, in check_requirements
    errors = check().run_check()
  File "c:\users\xxxxxx\appdata\local\programs\python\python37\lib\site-packages\divio_cli\check_system.py", line 27, in run_check
    if exc.errno == os.errno.ENOENT:
AttributeError: module 'os' has no attribute 'errno'

A little bit of googling says that os.errno no longer exists in python3.7, so I'm assuming that's the culprit.

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

1 participant