jrxFive / python-nomad

Client library Hashicorp Nomad
https://python-nomad.readthedocs.io/en/latest/
MIT License
139 stars 73 forks source link

module "nomad" has no atttribute "Nomad" error #95

Closed ping2balaji closed 5 years ago

ping2balaji commented 5 years ago

HI,

I am trying to use nomad python client and getting following error: Traceback (most recent call last): File "nomad_test.py", line 4, in n = nomad.Nomad(host="10.62.27.136", timeout=5) AttributeError: module 'nomad' has no attribute 'Nomad'

The code goes like this:

!/usr/bin/python

import nomad n = nomad.Nomad(host="10.62.27.136", timeout=5) print(n)

Any help highly appreciated.

Thanks

ping2balaji commented 5 years ago

Update: "pip install nomad" was the issue. Doing "pip install python-nomad" fixed the issue.