How Do You Troubleshoot the Message “ImportError: cannot import name ‘pubsub_v1′”?

Problem scenario
From the Python command prompt or when running a Python program, you receive this message “ImportError: cannot import name ‘pubsub_v1′”. What should you do?

Solution
Possible Solution #1
Try to run the program as sudo: sudo python nameOfProg.py

Possible Solution #2
Prerequisite
This assumes that pip has been installed.

 » Read more..

How Do You Troubleshoot the Message “ImportError: No module named ‘google'”?

Problem scenario
From the Python command prompt or when running a Python program, you receive this message “ImportError: No module named ‘google'”. What should you do?

Solution
Possible Solution #1
Try to run the program as sudo: sudo python nameOfProg.py

Possible Solution #2
Prerequisite
This assumes that pip has been installed.

 » Read more..

A List of Books on Message Queuing Solutions: ActiveMQ, AMQP, WebSphere and ZeroMQ

This is a list of books focusing on message queuing solutions other than RabbitMQ.  For RabbitMQ, see this link.

AMQP PREDICTIVE ANALYTICS REPORT by Gerard Blokdijk
ActiveMQ in Action by Bruce Snyder, Dejan Bosanac and Rob Davies
Code Connected Volume 1: Learning ZeroMQ by Pieter Hintjens
Programming WebSphere MQ with JAVA by Kunal Jaggi
ZeroMQ: Messaging for Many Applications  by Faruk Akgul
ZeroMQ: Messaging for Many Applications by Pieter Hintjens

How do you use Google’s Cloud Pub/Sub with Python?

Problem scenario
You want to use a Data Analytics or a Big Data tool that publishes messages and subscribes to listening to messages being published. You know GCP has a Pub/Sub tool. You know it supports synchronous and asynchronous messaging. How do you use it with Python?

Solution

  1. Log into GCP via the web UI.
  2. Go here: https://console.cloud.google.com/cloudpubsub/
  3. Click “Create Topic”.

 » Read more..

How Do You Install RabbitMQ Server on Any Distribution of Linux?

Problem scenario
You want to install RabbitMQ on any distribution of Linux using the same script. How do you write such a script?

Solution

  1. If you are using SUSE or a Red Hat deriviative of Linux (e.g., CentOS/RHEL/Fedora), go to step #2. If you run this on Debian or Ubuntu Linux, read the following. There may be manual steps (often three steps with Ubuntu 18.04 in AWS).

 » Read more..

How Do You Install Apache ActiveMQ on Any Distribution of Linux?

Problem scenario
You want a Bash script that will install ActiveMQ on CentOS/RedHat/Fedora, Debian/Ubuntu, and SUSE Linux distributions.  How do you write a script that will work on different distributions of Linux to install Apache ActiveMQ?

Solution
With a “sudo bash” command, run a script with the following content (e.g., call the script below “installactivemq.sh” and run “sudo bash installactivemq.sh“):

#!/bin/bash
# Written by www.continualintegration.com

activemqversion=5.15.8  # Change this version as necessary

distro=$(cat /etc/*-release | grep NAME)

debflag=$(echo $distro | grep -i “ubuntu”)
if [ -z “$debflag” ]
then  

 » Read more..

A List of RabbitMQ Books

Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions by Gregor Hohpe and Bobby Woolf
Instant RabbitMQ Messaging Application Development How-to by Andrew Keig
Learning RabbitMQ by Martin Toshev
Mastering RabbitMQ by Emrah Ayanoglu, Yusuf Aytas and Dotan Nahum
Production-Ready Microservices: Building Standardized Systems Across an Engineering Organization by Susan J. Fowler
RabbitMQ Cookbook by Sigismondo Boschi and Gabriele Santomaggio
RabbitMQ Essentials by David Dossot
RabbitMQ in Action: Distributed Messaging for Everyone by Alvaro Videla 

 » Read more..