hologram CLI Install Errors

I’m trying to install the hologram API via:
https://hologram.io/docs/reference/cloud/hologram-cli/

I’m trying to install on a fresh new Amazon EC2 instance with Ubuntu 16.02 TLS Server and am getting this error…

ubuntu@ip-172-31-36-116:~$ curl -L hologram.io/python-install | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0   1615      0 --:--:-- --:--:-- --:--:--  1618
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  3450  100  3450    0     0   4510      0 --:--:-- --:--:-- --:--:--  4510
Linux system detected
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Reading package lists... Done
python is already installed.
ps is already installed.
kill is already installed.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython2.7-dev is already the newest version (2.7.12-1ubuntu0~16.04.4).
0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.
ip is already installed.
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main

What’s wrong here? I’m blocked from using the CLI

Also a few other annoying issues that a small update would help:

  1. The hologram CLI won’t install on Mac OSX. Docs should say it required a Debian linux, or at least with apt-get.
  2. The hologram CLI also won’t install on Amazon Linux w yum. Again, docs should say something about what flavor is supported
  3. That doc says that “PPP” is a dependency, but what is PPP? Is that an abbreviation for something?
  4. curl into bash is such a generally bad practice. Have you considered making it available via a pip package someone could “pip install hologram”?

Not an answer but I am super curious why you would be installing the Hologram CLI on an EC2 instance. Its really only useful for interfacing with hologram hardware (ie Nova) and there is no way you can plug a Nova into an EC2 instance.

The CLI is not meant for managing hologram cloud / simcards (they have a REST api for that) so I really cant understand why this would be useful.

Some potential answers:

Thank you for the reply and information, that was helpful.

I was trying to use the CLI sudo hologram receive and sudo hologram send -t <topics> <message> but now I’m using the REST API instead.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.