1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【ROS2 colcon buildトラブルシューティング】AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'の対処方法

Posted at

はじめに

 CIで実施していたROS2のcolcon buildにエラーが出るようになったため対策を紹介する。

動作確認環境

  • Ubuntu 20.04 x64
  • ROS2 Foxy

エラー原因

 importlib_metadataにEntryPointsが含まれていないのが原因。

AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'

setuptoolsのバージョンが上がったため、構成が変更されたため。詳細は下記参照。

対策

 エラーが発生しないsetuptoolsにダウングレードする。CIを利用している場合は、最初にダウングレードしておく。ver 68.2.2では問題なく動作したので以下のコマンドを実行してダウングレードする。

pip install 'setuptools<=68.2.2'

まとめ

 ROS2のcolcon buildで、AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'が発生した場合の対策を紹介した。CIなどで最新版をsetuptoolsを利用している場合に有用となる。

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?