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

Build Error #12

Open
stonier opened this issue Nov 17, 2020 · 9 comments
Open

Build Error #12

stonier opened this issue Nov 17, 2020 · 9 comments

Comments

@stonier
Copy link
Collaborator

stonier commented Nov 17, 2020

In a workspace with other packages, a regular colcon build will result in an error:

Running Sphinx v1.6.7                                                                                          

Configuration error:
There is a programable error in your configuration file:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/config.py", line 157, in __init__
    execfile_(filename, config)
  File "/usr/lib/python2.7/dist-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/usr/lib/python2.7/dist-packages/six.py", line 709, in exec_
    exec("""exec _code_ in _globs_, _locs_""")
  File "<string>", line 1, in <module>
  File "conf.py", line 10, in <module>
    import catkin_pkg.package
ImportError: No module named catkin_pkg.package
@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

Hmm, it's looking for python2.7. Probably an issue there.

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

--> Error caused if a user has python-sphinx installed alongside python3-sphinx

@francocipollone
Copy link
Collaborator

I think that adding

#!/usr/bin/env python3

in the conf.py file should solve the issue. I will submit a PR

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

NB: catkin_pkg is a ROS1 tool. Is there an equivalent for package.xml parsing in ROS2 or is this just a curious anomoly?

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

I think that adding

#!/usr/bin/env python3

in the conf.py file should solve the > issue. I will submit a PR

Good idea.

Just tried it, but doesn't do the trick :(

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

/usr/bin/sphinx-build seems to be a generated file on installation. When python-sphinx is installed it has the #!/usr/bin/python bang, when that package is removed (and subsequently only python3-sphinx is installed), then it replaces the bang with #!/usr/bin/python3.

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

Might want to execute python3 -msphinx which I believe is fundamentally equivalent to sphinx-build with python3.

@agalbachicar
Copy link
Collaborator

NB: catkin_pkg is a ROS1 tool. Is there an equivalent for package.xml parsing in ROS2 or is this just a curious anomoly?

You can see here that we discussed that. We could not find the colcon equivalency to do so.

@stonier
Copy link
Collaborator Author

stonier commented Nov 17, 2020

You can see here that we discussed that. We could not find the colcon equivalency to do so.

👍

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

No branches or pull requests

3 participants