Guild check error

Hi @garrett,

I am using guild after some time…

I have installed the guild using pip install guild and execute guild check. I got the following error:

(base) PS C:\Users\Mislav\Documents\GitHub\alphar> guild check
guild_version:             0.7.1.dev3
guild_install_location:    c:\programdata\anaconda3\lib\site-packages\guild
guild_home:                C:\ProgramData\Anaconda3\.guild
guild_resource_cache:      C:\ProgramData\Anaconda3\.guild\cache\resources
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\Scripts\guild.exe\__main__.py", line 7, in <module>
  File "c:\programdata\anaconda3\lib\site-packages\guild\main_bootstrap.py", line 40, in main
    guild.main.main()
  File "c:\programdata\anaconda3\lib\site-packages\guild\main.py", line 33, in main
    _main()
  File "c:\programdata\anaconda3\lib\site-packages\guild\main.py", line 40, in _main
    main_cmd.main(standalone_mode=False)
  File "c:\programdata\anaconda3\lib\site-packages\guild\external\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\programdata\anaconda3\lib\site-packages\guild\external\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\programdata\anaconda3\lib\site-packages\guild\external\click\core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\programdata\anaconda3\lib\site-packages\guild\external\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\programdata\anaconda3\lib\site-packages\guild\external\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\programdata\anaconda3\lib\site-packages\guild\click_util.py", line 201, in fn
    return fn0(*(args + (Args(**kw),)))
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check.py", line 104, in check
    check_impl.main(args)
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 87, in main
    _check(args)
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 92, in _check
    _check_impl(args)
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 107, in _check_impl
    _print_info(check)
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 156, in _print_info
    _print_guild_info()
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 179, in _print_guild_info
    cli.out("installed_plugins:         %s" % _format_plugins())
  File "c:\programdata\anaconda3\lib\site-packages\guild\commands\check_impl.py", line 191, in _format_plugins
    return ", ".join([name for name, _ in sorted(plugin.iter_plugins())])
TypeError: '<' not supported between instances of 'CPUPlugin' and 'CPUPlugin'

I get the same error with pip install --pre --user guildai.

I believe this has been fixed but the release may not be GA. What version of guild are you running?

guild --version

The output is:

guild 0.7.1.dev3

Hah right it was in your original output!

Okay I thought that had been fixed but it hadn’t landed in any release. The latest pre-release should work for you. Please upgrade guild by running pip install guildai --pre --upgrade. You should get 0.7.1.rc1 now on Windows.

Now, I get this output:

(base) PS C:\Users\Mislav\Documents\GitHub\alphar> guild check
guild_version:             0.7.1.rc1
guild_install_location:    c:\programdata\anaconda3\lib\site-packages\guild
guild_home:                C:\ProgramData\Anaconda3\.guild
guild_resource_cache:      C:\ProgramData\Anaconda3\.guild\cache\resources
installed_plugins:         ERROR: '<' not supported between instances of 'CPUPlugin' and 'CPUPlugin'
python_version:            3.8.3 (default, Jul  2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
python_exe:                c:\programdata\anaconda3\python.exe
platform:                  Windows 10 AMD64
psutil_version:            5.6.3
tensorboard_version:       2.2.2
cuda_version:              10.1.243
nvidia_smi_version:        451.48
latest_guild_version:      0.7.0.post1
guild: there are problems with your setup
Refer to the issues above for more information or rerun check with the --verbose option.

I am not sure if the error message is even important, everything works as expected.

Haha - no, that’s definitely not what we want there. It’s better than crashing but there’s still work to be done. I’ll do some more research. Thanks for the report.

It looks like you’re running from master? Would you be able to try out recent commits to test this plugins list behavior? There’s something going on in your env that I’m unable to reproduce.