Question: I tried to install Logentries (Mac Agent) as instructed by [the website](https://logentries.com/doc/mac-agent/) itself. I followed the steps as instructed.

```
 curl -O https://raw.githubusercontent.com/logentries/le/master/install/mac/install.sh

```

I downloaded the install.sh script and ran `sudo ./install.sh`. But that didn't work so I tried `sudo sh install.sh`.

[![logentries installing mac agent problem](https://i.stack.imgur.com/tZDKa.png)](https://i.stack.imgur.com/tZDKa.png)

When I do `sudo le` then I get same error message as marked in pic above.
I googled but didn't find the solution.

Thank you in advance.

Here is composer.json content

[![enter image description here](https://i.stack.imgur.com/3deRT.png)](https://i.stack.imgur.com/3deRT.png)
[![enter image description here](https://i.stack.imgur.com/tqcIC.png)](https://i.stack.imgur.com/tqcIC.png)

Answer: 
it's missing the formats directory. 

sudo pip install formats

should resolve your issue here, then sudo sh install.sh
@user5384112 is correct, the error is being caused by a missing dependancy.

I have a PR to fix this for the Mac installer which should go live shortly.