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

[HTCondor-users] Installing HTCondor python bindings on a Mac

Iâm trying to install the Python bindings on Mac OS 10.15.7 (Catalina) running anaconda Python 3.8.13. I was able to install the package with conda, but I canât import it. Hereâs what I get:


In [1]: import htcondor


ImportError                               Traceback (most recent call last)

Input In [1], in <cell line: 1>()

----> 1 import htcondor


File ~/condor/lib/python3/htcondor/__init__.py:54, in <module>

     49             _os.environ["CONDOR_CONFIG"] = "/dev/null"

     52 _check_for_config()

---> 54 from . import htcondor, _lock

     56 # get the version using regexp ideally, and fall back to basic string parsing

     57 try:


ImportError: dlopen(/Users/mburger/condor/lib/python3/htcondor/htcondor.cpython-38-darwin.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.8/Python

  Referenced from: /Users/mburger/condor/lib/python3/htcondor/htcondor.cpython-38-darwin.so

  Reason: image not found


The Python.framework looks like itâs related to the system installed Python which in my case is 2.7, but the Frameworks folder is in /System and I donât have the 3.8 version anyway. Any ideas how to get this to work? It seems to me it should be looking for something in my current Python environment.


Thanks for any help.





Dr. Matthew Burger

Senior Staff Astronomical Data Scientist

Data Processing & Archive Services (DPAS), Deputy Branch Manager

Space Telescope Science Institute