NSXRAMLCLIENT on Ubuntu Issues

Following on from my last post about the NSXRAMLCLIENT, I decided to setup an Ubuntu machine dedicated to being able to run the NSXRAMLCLIENT in my home lab.

Using my own instructions that I had written previously to get it up and running on my OSX 10.10.5 machine, I came across a peculiar issue when trying to initiate a connection to the nsx manager.

Here is the code I was running which works on my OSX machine without issues:

But when running on my Ubuntu 14.04.3 LTS box, this was the result:

As it turns out, the problem is that somewhere along the line, APT has been used to install the python-requests module. Even though PIP was used later to install the NSXRAMLCLIENT module, which downloads and installs the latest version of the python requests module as a Python distribution module, the version installed by APT will take precedence over the version installed by PIP.

To verify that APT has installed the python-requests module, issue the following command. If it comes back with output similar to below, you know APT has installed the module:

You can see above that APT has installed version 2.2.1 of the Python Requests module.

So we can simply remove the module:

If you take a look in /usr/local/lib/python2.7/dist-packages/ you can see that requests 2.7.0 has been previously downloaded by PIP when the NSXRAMLCLIENT was installed.

And just confirm that the requests module is no longer installed via APT

Now when I run my test script again, it completes as intended:


Leave a Reply