MLSysOps / MLE-agent

MLE-Agent is designed to be a pair coding agent for machine learning engineers and researchers. Support OpenAI and Ollama.
MIT License
16 stars 1 forks source link

[Bug] fail to run on non-kaggle environment #89

Closed leeeizhang closed 1 week ago

leeeizhang commented 1 week ago
Traceback (most recent call last):
  File "/home/ryan/miniconda3/envs/mle/bin/mle", line 33, in <module>
    sys.exit(load_entry_point('mle-agent', 'console_scripts', 'mle')())
  File "/home/ryan/miniconda3/envs/mle/bin/mle", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/home/ryan/miniconda3/envs/mle/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/home/ryan/miniconda3/envs/mle/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/ryan/Workspace/MLE-agent/agent/cli.py", line 7, in <module>
    from agent.integration.kaggle_workflow import KaggleAgent
  File "/home/ryan/Workspace/MLE-agent/agent/integration/kaggle_workflow.py", line 7, in <module>
    import kaggle
  File "/home/ryan/miniconda3/envs/mle/lib/python3.10/site-packages/kaggle/__init__.py", line 7, in <module>
    api.authenticate()
  File "/home/ryan/miniconda3/envs/mle/lib/python3.10/site-packages/kaggle/api/kaggle_api_extended.py", line 398, in authenticate
    raise IOError('Could not find {}. Make sure it\'s located in'
OSError: Could not find kaggle.json. Make sure it's located in /home/ryan/.kaggle. Or use the environment method.

Software execution information

MLE-agent version: System OS version:

Problem description

Steps to reproduce the problem

Expected behavior

Other information

Things you tried, stack traces, related issues, suggestions on how to fix it...