[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Python API

Hi Larry,

I don't think so. I think you don't need to have your client machine configured if you just use those python API that does not need to interact with the collector. But you will still get the warning message when you try to import the htcondor module.
I am also seeking a way to disable this message.

On Sun, Dec 17, 2017 at 1:15 PM, Larry Martell <larry.martell@xxxxxxxxx> wrote:
I am trying to use the python API from a machine that does not have
condor installed. I did 'pip install htcondor' and now I am trying

>>> import htcondor

Neither the environment variable CONDOR_CONFIG,
/etc/condor/, /usr/local/etc/, nor ~condor/ contain a condor_config source.
Either set CONDOR_CONFIG to point to a valid config source,
or put a "condor_config" file in /etc/condor/ /usr/local/etc/ or ~condor/
>>> import classad
>>> coll = htcondor.Collector("")
>>> ads = coll.query(htcondor.AdTypes.Startd)
12/17/17 13:12:36 ERROR "Unwilling or unable to try IPv4 or IPv6.
" at line 1212 in file

To use the API from a client machine like this do I have to have a
full blown installed and configured condor?
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@cs.wisc.edu with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at: