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

Re: [HTCondor-users] How to install python bindings into a Conda environment



Hello Joe,

I am sorry that you are running into this problem. I have an idea for a work-around. You should be using the new htcondor2 bindings. They do not depend on boost at all. In fact, those are slated to be the only bindings available in HTCondor 25.

So, wherever you import htcondor, import htcondor2 as htcondor. And, wherever you import classad, import classad2 as classad.

Please let us know how that goes.

...Tim

On 8/20/25 12:42, Joseph Areeda wrote:
We run most of or code in custom condo environments.
For our utilities that use the latest [and greatest] condor bindings the only item I have in my environment.yaml files is "python-htcondorâ

This brings in the following:
$ conda list |\grep -i condor
htcondor-classads         24.9.2               h0bff942_1    conda-forge
libcondor_utils           24.9.2               h809137d_1    conda-forge
pycondor                  0.6.0              pyhd8ed1ab_1    conda-forge
python-htcondor           24.9.2          py311h477abd4_1    conda-forge

But we seem to be missing a boost package:
$ python --version
Python 3.11.13
$ python -c 'import htcondor'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/joseph.areeda/.conda/envs/ligo-omicron-3.11-test2/lib/python3.11/site-packages/htcondor/__init__.py", line 74, in <module>
    import classad
  File "/home/joseph.areeda/.conda/envs/ligo-omicron-3.11-test2/lib/python3.11/site-packages/classad/__init__.py", line 47, in <module>
    from .classad import *
ImportError: libboost_graph.so.1.88.0: cannot open shared object file: No such file or directory

Boost does get installed 

$ conda list boost
# packages in environment at /home/joseph.areeda/.conda/envs/ligo-omicron-3.11-test2:
#
# Name                    Version                   Build  Channel
libboost                  1.86.0               h6c02f8c_3    conda-forge
libboost-python           1.88.0          py311h5b7b71f_0    conda-forge

I donât see a package for libboost_graph 
What am I missing?

Best,
Joe

_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe

The archives can be found at: https://www-auth.cs.wisc.edu/lists/htcondor-users/ 
-- 
Tim Theisen (he, him, his)
Release Manager
Center for High Throughput Computing
Department of Computer Sciences
University of Wisconsin - Madison
4261 Computer Sciences and Statistics
1210 W Dayton St
Madison, WI 53706-1685
+1 608 265 5736