robust-rosin / robust

A dataset of 200+ bugs in the Robot Operating System for BugZoo
30 stars 10 forks source link

Bugzoo v2.1.2 bug #24

Closed Chamango90 closed 6 years ago

Chamango90 commented 6 years ago

Bugzoo returns an error

$ bugzoo source add robust https://github.com/robust-rosin/robust
Traceback (most recent call last):
  File "/home/jfh/bugzoo_venv/bin/bugzoo", line 7, in <module>
    from bugzoo.cli import main
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/__init__.py", line 2, in <module>
    from bugzoo.client import Client
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/client/__init__.py", line 1, in <module>
    from .api import APIClient
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/client/api.py", line 1, in <module>
    from typing import Optional, Any, NoReturn
ImportError: cannot import name 'NoReturn'

even without an argument

$ bugzoo
Traceback (most recent call last):
  File "/home/jfh/bugzoo_venv/bin/bugzoo", line 7, in <module>
    from bugzoo.cli import main
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/__init__.py", line 2, in <module>
    from bugzoo.client import Client
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/client/__init__.py", line 1, in <module>
    from .api import APIClient
  File "/home/jfh/bugzoo_venv/lib/python3.5/site-packages/bugzoo/client/api.py", line 1, in <module>
    from typing import Optional, Any, NoReturn
ImportError: cannot import name 'NoReturn'

Installed version

$ pip show bugzoo
Name: bugzoo
Version: 2.1.2

Temporary solved by

pip3 install bugzoo==2.0.15
ChrisTimperley commented 6 years ago

Hi Jonathan,

Can you try to install mypy and mypy-extensions? I realise that NoReturn is defined in mypy-extensions but that it's not included in the requirements listed in setup.py. Once we're happy that's the bug, I'll fix setup.py and release 2.1.3.

Chamango90 commented 6 years ago

Hi Chris, I tested to install this two libs, but I still get the same error.

ChrisTimperley commented 6 years ago

Do you mind trying this inside the virtual environment and dumping the output here?

(bugzoo) $ pip install --upgrade mypy-extensions>=0.3.0
(bugzoo) $ pip list
Chamango90 commented 6 years ago

No output for the upgrade.

-- text deleted --
ChrisTimperley commented 6 years ago

Thanks, @ipa-jfh. It looks like the issue is that NoReturn was added in Python 3.5.4. I'll figure out a way to recover compatibility with early versions of Python 3.5 without causing mypy to scream.

ChrisTimperley commented 6 years ago

A fix to this bug was added in BugZoo 2.1.6.