Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[HTCondor-users] HTCondor 23.0.10 Python Binding on EL9
Hello All,
I've got a problem with the python binding on EL9 (AlmaLinux).
I have the following package installed on the system :
python3-condor-23.0.10-1.el9.x86_64
I wrote this script to demonstrate the problem :
#!/usr/bin/env python3
import socket
import htcondor
import classad
host=socket.gethostname()
coll = htcondor.Collector()
scheddAd = coll.locate(htcondor.DaemonTypes.Schedd, host)
schedd = htcondor.Schedd(scheddAd)
When I execute it with the system package, I've got the following error :
Traceback (most recent call last):
File "/root/./test2.py", line 11, in <module>
scheddAd = coll.locate(htcondor.DaemonTypes.Schedd, host)
File "/usr/lib64/python3.9/site-packages/htcondor/_lock.py", line 70, in wrapper
rv = func(*args, **kwargs)
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<ClassAdWrapper>
When I execute it from a virtualenv with the same version, I don't have any error.
I've created the virtualenv with the following commands :
python -m venv venv
source venv/bin/activate
pip install htcondor==23.0.10
Any idea why it's not working with the system package ?
Best Regards,
Mathieu GAUTHIER-LAFAYE