ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

python errors on sourcing devel/setup.zsh

asked 2021-01-05 17:01:18 -0500

When I source devel/setup.zsh in a catkin_tools workspace while using zsh I get python errors on Bionic using Melodic:

% source devel/setup.zsh
  File "<string>", line 1
    from __future__ import print_function
    ^
SyntaxError: invalid syntax
  File "<string>", line 1
    from __future__ import print_function
^

Has anyone else seen this? Do you have any idea how to troubleshoot this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-05 17:47:07 -0500

This was cause by issues in my python enviroment. Closing as this is not an issue with zsh.

edit flag offensive delete link more

Comments

2

What was the issue?

jayess gravatar image jayess  ( 2021-01-05 18:28:42 -0500 )edit
1

It had to do with some bug in colorized cat that uses some python package I installed with pip. I debugged this by using set -x and found it complaining about that library.

tyler-picknik gravatar image tyler-picknik  ( 2021-01-06 08:03:07 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-01-05 17:01:18 -0500

Seen: 247 times

Last updated: Jan 05 '21