Error when running evalai

I get the following error when running “evalai push submission:latest --phase animalai-main-396” on my Mac:


Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/evalai", line 11, in <module>
    load_entry_point('evalai==1.3.0', 'console_scripts', 'evalai')()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/evalai/submissions.py", line 95, in push
    response = make_request(request_path, "GET")
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/evalai/utils/requests.py", line 32, in make_request
    except requests.exceptions.HTTPError as err:
AttributeError: 'module' object has no attribute 'exceptions'
------------------------------------------------------------------------------------------------------------------------------------------------

It looks like the imported ‘requests’ is not being imported from the one I downloaded from PIP, but rather importing from /evalai/utils/requests.py.
Please help me out.
Thanks.

Hi @Minyoung_Jeong,

From the error logs it seems like you’re using python2 with evalai-cli but evalai-cli only supports Python3. Please install it in a virtualenv which uses Python3.
Please feel free to ping us in case the error isn’t resolved.

Thanks, working now!