Closed belforte closed 3 years ago
or maybe this line really has a syntax error, at least in python2 ? https://github.com/dmwm/DBSClient/blob/05ec989f1ab2143160653cffce0ae02b9444e588/src/python/dbs/apis/dbsClient.py#L413
maybe as simple as " this only works in python3" ??
@belforte , two things:
So, you should try the following:
git clone https://github.com/dmwm/DBSClient
or download tar ball from pypi (https://files.pythonhosted.org/packages/2a/cd/afbd8393b7c932be89ec7c687aa69614055d0e7b6e0267669c77d8ac41a6/dbs3-client-4.0.0.tar.gz)export DBS3_CLIENT_ROOT=/data/users/vk/dbs/DBS/DBSClient
export PYTHONPATH=$DBS3_CLIENT_ROOT/src/python:$DBS3_CLIENT_ROOT/dbs3-pycurl-3.17.4/src/python
then you can proceed
OK. got it to run with a bunch of yum install and pip3 install. I was not sure that python3 was needed. Please close.
Hi @vkuznet (I can't assing issue to you). Maybe I am doing something wrong, but it seems that simply importing DbsApi makes it to be also executed, and hence fail[1] since no url is defined yet. Is thi because I do not have DBS/PycurlClient/.../RestClient in the PYTHONPATH ? Where should I take it from ? By the way, in a less clean/clear environment, i.e. adding tne DBS to PYTHONPATH before the "usual" stuff, the old RestCLient is found, but import of dbsClient fails same way [2]
I am not sure how to use this at this point, sorry.
[2]