insitro/redun

Local docker problem when running conda example

Closed this issue · 2 comments

I ran the example for conda deployment and got this error.

https://github.com/insitro/redun/tree/main/examples%2Fconda

Traceback (most recent call last):
  File "/home/hoangnguyen/.local/bin/redun", line 10, in <module>
    client.execute()
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/cli.py", line 914, in execute
    return args.func(args, extra_args, argv)
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/cli.py", line 1540, in run_command
    result = scheduler.run(
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/scheduler.py", line 1009, in run
    result: Promise[Result] = self._run(
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/scheduler.py", line 929, in _run
    self._process_events(result)
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/scheduler.py", line 1107, in _process_events
    event_func()
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/scheduler.py", line 1385, in <lambda>
    self.events_queue.put(lambda: self._exec_job_main_thread(job, eval_args))
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/scheduler.py", line 1504, in _exec_job_main_thread
    executor.submit(job)
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/executors/docker.py", line 470, in submit
    return self._submit(job)
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/executors/docker.py", line 429, in _submit
    docker_resp = submit_task(
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/executors/docker.py", line 195, in submit_task
    container_id = run_docker(
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/executors/docker.py", line 92, in run_docker
    env.update(aws_utils.get_aws_env_vars())
  File "/home/hoangnguyen/.local/lib/python3.10/site-packages/redun/executors/aws_utils.py", line 64, in get_aws_env_vars
    creds = session.get_credentials().get_frozen_credentials()
AttributeError: 'NoneType' object has no attribute 'get_frozen_credentials'

Tried on another PC and it was perfectly fine. Probably something wrong with docker on the current PC.

Glad to hear you got it working! Please feel free to post any other issues or ideas you have.