@mkurek Thank you, yes I did try installing on ubuntu 16.04 server using the ppa method. Kept getting python site-packages that were missing. Tried changing PYTHONHOME and PYTHONPATH in my ENV but didn't fix it. Couldn't find anyone else that posted about it other than generic Python import issues. Seems like Ralph has far too many "custom" settings tied to 14.04 to make it's upgrade path simple enough for Production environments. It stinks that Docker is NOT an option for my employer.
Note: I was able to install on 14.04 using my Ansible Play that fails on 16.04.
def getJsonObject(urlstr):
url=baseURL +urlstr
base64string = base64.encodestring('%s:%s' % (username, password)).replace('\n', '')
request = urllib2.Request(url)
request.add_header("Authorization", "Basic %s" % base64string)
result = urllib2.urlopen(request)
data = result.read()
# print data
jsonObject= json.loads(data)
# results=jsonObject['results']
return jsonObject
ralph runserver
and make run
make run
run runserver with debug enabled - that what probably makes a difference here
Line number: 1 - "Column 'id' not found in dataset. Available columns are: ['hostname;barcode']"
OrderedDict([('hostname;barcode', 'xxx;xxx')])
Traceback (most recent call last):
File "/opt/ralph/ralph-core/lib/python3.4/site-packages/import_export/fields.py", line 57, in clean
value = data[self.column_name]
KeyError: 'id'
During handling of the above exception, another exception occurred: