Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python3] SyntaxError: invalid syntax def async #95

Open
Rayman opened this issue May 28, 2020 · 8 comments
Open

[Python3] SyntaxError: invalid syntax def async #95

Rayman opened this issue May 28, 2020 · 8 comments
Labels

Comments

@Rayman
Copy link
Owner

Rayman commented May 28, 2020

In a fresh noetic container:

$ ros-get
Traceback (most recent call last):
  File "/usr/local/bin/ros-get", line 5, in <module>
    from ros_get.__main__ import main
  File "/usr/local/lib/python3.8/dist-packages/ros_get/__init__.py", line 1, in <module>
    from .commands import install, update, status, list_packages, remove
  File "/usr/local/lib/python3.8/dist-packages/ros_get/commands.py", line 13, in <module>
    from .workspace import ws_file
  File "/usr/local/lib/python3.8/dist-packages/ros_get/workspace.py", line 6, in <module>
    from catkin_tools.metadata import find_enclosing_workspace
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/metadata.py", line 22, in <module>
    from .common import mkdir_p
  File "/usr/local/lib/python3.8/dist-packages/catkin_tools/common.py", line 23, in <module>
    import trollius as asyncio
  File "/usr/local/lib/python3.8/dist-packages/trollius/__init__.py", line 21, in <module>
    from .base_events import *
  File "/usr/local/lib/python3.8/dist-packages/trollius/base_events.py", line 42, in <module>
    from . import tasks
  File "/usr/local/lib/python3.8/dist-packages/trollius/tasks.py", line 565
    def async(coro_or_future, loop=None):
        ^
SyntaxError: invalid syntax
@Rayman Rayman added the bug label May 28, 2020
@Timple
Copy link

Timple commented May 28, 2020

apt and pip3 versions of catkin_tools are broken for noetic. Workaround is to install like this:
sudo pip3 install git+https://github.com/catkin/catkin_tools.git

@Rayman
Copy link
Owner Author

Rayman commented May 28, 2020

Thanks you!

@Rayman
Copy link
Owner Author

Rayman commented May 29, 2020

The issue is tracked here: catkin/catkin_tools#594

@Timple
Copy link

Timple commented May 29, 2020

Not sure why this doesn't get more noise. Lots of noetic activity but very little complaints about catkin_tools...

@Rayman
Copy link
Owner Author

Rayman commented May 29, 2020

Haha, could people be still using catkin_make?

@ashwani-rathee
Copy link

Thank you for the instructions,it worked :) I first tried apt in ubuntu20.04,then went with pip 3,both unsuccessfull then came here and this one worked well...

@liamreneroy
Copy link

@Timple thank you thank you. I dont understand how this isn't documented anywhere else. Really appreciate the tip, cheers

@Timple
Copy link

Timple commented Apr 25, 2021

Actually there is a solution at the moment using apt:

sudo apt install python3-catkin-tools python3-osrf-pycommon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants