pluralith-cli icon indicating copy to clipboard operation
pluralith-cli copied to clipboard

Cannot generate graph on M1 Mac

Open Rintarooo opened this issue 1 year ago • 8 comments

I followed docs and successfully installed pluralith CLI on M1 Max Mac . Then, I tried to generate graph but it failed and output the following error.

$ pluralith graph        
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✘ Couldn't Generate Local Execution Plan

Error: No configuration files

Plan requires configuration to be present. Planning without a configuration
would mark everything for destruction, which is normally not what is desired.
If you would like to destroy everything, run plan with the -destroy option.
Otherwise, create a Terraform configuration file (.tf file) and try again.

running terraform plan failed -> GenerateGraph: RunPlan: exit status 1

I think Graph Module Version: Not Installed below is likely to be a problem. How do I install Graph Module on M1 Max Mac? Is this a problem related to supporting M1 Mac?

$ pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_ 
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: Not Installed

My Environment

  • MacBook Pro 2021
  • Apple M1 Max
  • Ventura 13.5.2

Rintarooo avatar Nov 16 '23 08:11 Rintarooo

In my case I get:

➜  pluralith graph
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✔ Local Execution Plan Generated
  ✔ Local Plan Cache Created
  ✔ Secrets Stripped
  - Cost Calculation Skipped

→ Graph
  ✘ Local Diagram Generation Failed

generating diagram failed -> GenerateGraph: running CLI command failed -> GenerateDiagram: fork/exec /Users/HIDDEN/Pluralith/bin/pluralith-cli-graphing: no such file or directory

Environment:

  • Macbook Pro 2020
  • Apple M1
  • Sonoma 14.0 (23A344)

doniz avatar Nov 22 '23 07:11 doniz

In my case I get:

➜  pluralith graph
parsing response failed -> GetGitHubRelease: %!w(<nil>)
⠿ Initiating Graph ⇢ Posting Diagram To Pluralith Dashboard

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Plan
  ✔ Local Execution Plan Generated
  ✔ Local Plan Cache Created
  ✔ Secrets Stripped
  - Cost Calculation Skipped

→ Graph
  ✘ Local Diagram Generation Failed

generating diagram failed -> GenerateGraph: running CLI command failed -> GenerateDiagram: fork/exec /Users/HIDDEN/Pluralith/bin/pluralith-cli-graphing: no such file or directory

Environment:

  • Macbook Pro 2020
  • Apple M1
  • Sonoma 14.0 (23A344)

Ok, I found accidentally there is another CLI tool for graph which needs to be installed: https://github.com/Pluralith/pluralith-cli-graphing-release (in documentation barely saying about to install this graph module), however I still get errors:

➜ pluralith install graph-module

parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

Installing Latest Graph Module

✘ Parsing request result failed
parsing response failed -> GetGitHubRelease: %!w(<nil>)

➜  pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: Not Installed

doniz avatar Nov 23 '23 07:11 doniz

Getting these same errors. Also found the pluralith install graph-module thing via some manual investigation, and indeed seeing the same GetGitHubRelease parsing errors which prevent any of this from working... hmm. It's alpha software, perhaps download and earlier release?

michaelbutler avatar Nov 25 '23 17:11 michaelbutler

same problem, you will find it always tried to download graph-module from a server, but always failed because of 503service not avaible. stop wasting your time on this product.

sean-akatsuki avatar Nov 27 '23 23:11 sean-akatsuki

I have successfully run the pluralith graph command by manually downloading.

  1. Download from https://github.com/Pluralith/pluralith-cli-graphing-release/releases
  2. Rename the binary to pluralith-cli-graphing
  3. Move the downloaded binary to ~/Pluralith/bin/
  4. Run chmod +x ~/Pluralith/bin/pluralith-cli-graphing
  5. Run pluralith version

Then you can see Graph Module Version: 0.2.1


%pluralith version
parsing response failed -> GetGitHubRelease: %!w(<nil>)
 _
|_)|    _ _ |._|_|_
|  ||_|| (_||| | | |

→ CLI Version: 0.2.2
→ Graph Module Version: 0.2.1

ysirman avatar Dec 12 '23 12:12 ysirman

I tried you do the same but for me not working parsing response failed -> GetGitHubRelease: %!w() _ |)| _ _ |.|| | |||| (||| | | |

→ CLI Version: 0.2.2 → Graph Module Version: Not Installed

gouravjoshicldcvr avatar Dec 20 '23 12:12 gouravjoshicldcvr

Just rename ~/Pluralith/bin/pluralith_cli_graphing to pluralith-cli-graphing

lukaszrosiak avatar Dec 20 '23 22:12 lukaszrosiak

Tried this on windows, can run --local-only but fails to upload to pluralith dashboard without.

jordandakota avatar May 07 '24 20:05 jordandakota