Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
✪ vi4m Marcin Kliks
@vi4m
because simply running 'python' make the same error
Mateusz Kurek
@mkurek
what python version is there? 3.6?
Jim Ntosas
@purplexss
i installed it without probs in ubuntu 16.04, i just needed to install python v3.4 instead of ubuntu-repos-python which is v3.5+
✪ vi4m Marcin Kliks
@vi4m
I guess we should not ship python in the package, because setting path for Ralph package executes "embedded" python
Zrzut ekranu 2017-05-30 o 14.08.56.png
Jim Ntosas
@purplexss
yy ^^
✪ vi4m Marcin Kliks
@vi4m
@purplexss did you use Debian package or source repository?
Jim Ntosas
@purplexss
i used debian package
✪ vi4m Marcin Kliks
@vi4m
how do you run Ralph ? simply ralph ?
Jim Ntosas
@purplexss
y thats right ^
✪ vi4m Marcin Kliks
@vi4m
and what's your PATH then ?
Jim Ntosas
@purplexss
let me check
export PATH=/opt/ralph/ralph-core/bin/:$PATH ---> @ ~/.profile
i used debian package but for python v3.4
i override the ubuntu-repos for python
✪ vi4m Marcin Kliks
@vi4m
what Ralph-core version do you have ?
Jim Ntosas
@purplexss
1.8.18
and i can also confirm that my setup on debian 8 stable also runs smoothly based on your installation instructions
i suggest whoever wants to run ralph, just install debian 8 jessie and just follow instructions, all goes well from my experience
just upgraded to the latest build, still all works fine
✪ vi4m Marcin Kliks
@vi4m
what's the contents of your /etc/apt/sources.list.d/vi4m_ralph.list ?
Jim Ntosas
@purplexss
root@ralph:~# cat /etc/apt/sources.list.d/vi4m_ralph.list
deb https://dl.bintray.com/vi4m/ralph jessie main
Michael Cone
@mrmikee

@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.

Michael Cone
@mrmikee
@vi4m The "encodings" import error you captured was the same issue I was having.
✪ vi4m Marcin Kliks
@vi4m
@mrmikee worry no :) we will prepare separate package for ubuntu 16
We're gonna upgrade soon too, so it's kind of must have
✪ vi4m Marcin Kliks
@vi4m
I think dh_virtualenv creates links to python interpreter inside of deb package(which python shows the linked script). I think we should build from within ubuntu:16 itself and add as separate package. Does Travis support this ? @mkurek
Mateusz Kurek
@mkurek
@vi4m not out-of-the-box, but we could build deb inside docker (we're doing it in one of our internal projects)
Michael Cone
@mrmikee
@vi4m Thank you guys for the updates and community version. I really enjoy what I see of Ralph3 so far. @mkurek
Alexis Talbot
@linuxmkd_twitter
Is there a way to do cable tracking in Ralph, with rack location etc ... or waht is the best way to acheive cable tracking
✪ vi4m Marcin Kliks
@vi4m
@linuxmkd_twitter this is something we want to work on in next release, high priority
Alexis Talbot
@linuxmkd_twitter
Ok thanx
pyja
@vipsql
is there hava chinese ?
i want to get a chinese tutorial
✪ vi4m Marcin Kliks
@vi4m
@vipsql not at the moment
pyja
@vipsql
thanks
Mr Black
@lip177891840
I am writing a python script taking data from ralph for Ansible invertory,it UNAUTHORIZED in ralph runserver, but works well in debug mode
    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
Mateusz Kurek
@mkurek
@lip177891840 are you using ralph rest api?
Mr Black
@lip177891840
yes,
do you have any idea? i dont know the specific defferences between ralph runserver and make run
Mateusz Kurek
@mkurek
first of all, if you are using rest api, try token authentication: http://ralph-ng.readthedocs.io/en/latest/user/api/#authentication
make run run runserver with debug enabled - that what probably makes a difference here
Mr Black
@lip177891840
ok,i will hava a try , THANKS
Mr Black
@lip177891840
@mkurek ,it works ,i think i need to be familiar with ralph
bencheikh
@bencheikh
G.M every one How to import Excel File in Ralph ( is there any specific format to respect and wich field should i fill first ) I only care about servers (Hostname , Type , Model , IP , Env)
one last thing how to change all setting language in Ralph
bencheikh
@bencheikh
i checked import data workflow but i can't fixe it

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:

Pete
@kasim1r
Hey guys, how would I delete an object via API? Let's say I did a search for memory like this: