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

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



I had this problem a while ago. Since Condor Week is going on it may take a while to get a definitive answer from people who really understand it.

If you dig into the htcondor python packages you'll see that they require a python dyld which is not in the anaconda install. If you install a package from python.org (https://www.python.org/downloads/) https://www.python.org/downloads/

I've been using conda packages that solve the problem with black magic as far as I can tell. I'm not sure if you could use thee packages without other packages but maybe:

htcondorÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ 9.6.0ÂÂÂÂÂÂÂÂÂÂÂ py39h6e9494a_0ÂÂÂ conda-forge
htcondor-classadsÂÂÂÂÂÂÂÂ 9.6.0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ hb05cfb2_0ÂÂÂ conda-forge
htcondor-utilsÂÂÂÂÂÂÂÂÂÂÂ 9.6.0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ h2c495eb_0ÂÂÂ conda-forge
python-htcondorÂÂÂÂÂÂÂÂÂÂ 9.6.0ÂÂÂÂÂÂÂÂÂÂÂ py39h8bdd5e7_0ÂÂÂ conda-forge
Best,

Joe


On 5/25/22 1:45 PM, Matthew Burger wrote:

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.

Â

Matt

Â

*************************************************************

Dr. Matthew Burger

Senior Staff Astronomical Data Scientist

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

Space Telescope Science Institute

mburger@xxxxxxxxx

410/338-6810

*************************************************************

Â

Â


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/