1
0

More than 1 year has passed since last update.

Error previewing graph. Please run `pip3 install cfn-lint pydot --upgrade` の対処法

Posted at

エラー内容

VScodeの拡張機能 CloudFormation Linter でプレビューを表示しようとするとエラーになる。

image.png

image.png

原因

  1. 必要なパッケージがインストールされていない
  2. VScodeの CFn Lint: Path が違う

対処法

1. 必要なパッケージがインストールされていないの対処法

エラーで提示された以下のコマンドを実行する。

pip3 install cfn-lint pydot --upgrade

2. VScodeの CFn Lint: Path が違う

  • 以下のコマンドから cfn-lint のパスを取得する。
Windowsの場合
where.exe cfn-lint
Mac または Linuxの場合
which cfn-lint

image.png

  • VScodeの設定から CFn Lint: Path を変更する。
    • VScodeの設定はWindowsは ctrl + ,、 Macは command + ,
    • 検索に @ext:kddejong.vscode-cfn-lint と入力すると設定が出てくる
      image.png
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