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

[HTCondor-users] htcondor v8.9.5 python question, Debian-install



I recently upgraded the Debian-package for htcondor to v8.9.5.
When I tried to interactively load the htcondor python module, and use
Colelctor(), I get an error, example:

$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import htcondor
>>> htcondor.Collector()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'htcondor' has no attribute 'Collector'

When I run the same commands on a Centos 7 system, also v8.9.5, the
htcondor.Collector() call returns a python object as expected.

My question: What is the cause of this problem in htcondor v8.9.5 on
Debian? The above behavior does not occur in htcondor v8.9.4 (also Debian).

When I inspect the files inside the htcondor .deb file, I see that paths
apt installs the python htcondor bindings/class into (this is for python3)

/usr/lib/python3/dist-packages/usr/bin/htcondor/

I compared the Debian htcondor package between v8.9.4 and v8.9.5. In
v8.9.4 the files are installed in /usr/lib/python3/dist-packages/htcondor/.

While in v8.9.5, there is some content in
/usr/lib/python3/dist-packages/htcondor/, there is additional files
installed in /usr/lib/python3/dist-packages/usr/bin/htcondor/.

Please see the attached text file for a more detail file list from the
two .deb packages. Is the above path difference a clue (or a red-herring)?

Thank in advance.

Sincerely,
Shawn
-- 
Associate Scientist
Center for Gravitation, Cosmology, and Astrophysics
University of Wisconsin-Milwaukee
office: +1 414 229 4960
kwangs@xxxxxxx
Downloaded htcondor_8.9.4-1_amd64.deb
$ dpkg-deb -c htcondor_8.9.4-1_amd64.deb
(...snip...)
./usr/lib/python3/
./usr/lib/python3/dist-packages/
./usr/lib/python3/dist-packages/classad/
./usr/lib/python3/dist-packages/classad/__init__.py
./usr/lib/python3/dist-packages/classad/__pycache__/
./usr/lib/python3/dist-packages/classad/__pycache__/__init__.cpython-35.pyc
./usr/lib/python3/dist-packages/classad/classad.cpython-35m-x86_64-linux-gnu.so
./usr/lib/python3/dist-packages/htcondor/
./usr/lib/python3/dist-packages/htcondor/__init__.py
./usr/lib/python3/dist-packages/htcondor/__pycache__/
./usr/lib/python3/dist-packages/htcondor/__pycache__/__init__.cpython-35.pyc
./usr/lib/python3/dist-packages/htcondor/htcondor.cpython-35m-x86_64-linux-gnu.so
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/PKG-INFO
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/SOURCES.txt
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/dependency_links.txt
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/not-zip-safe
./usr/lib/python3/dist-packages/htcondor-8.9.4.egg-info/top_level.txt


------------------------------------------------------------
Downloaded htcondor_8.9.5-1_amd64.deb
$ htcondor_8.9.5-1_amd64.deb
(...snip...)
./usr/lib/python3/dist-packages/
./usr/lib/python3/dist-packages/classad/
./usr/lib/python3/dist-packages/classad/classad.cpython-35m-x86_64-linux-gnu.so
./usr/lib/python3/dist-packages/htcondor/
./usr/lib/python3/dist-packages/htcondor/htcondor.cpython-35m-x86_64-linux-gnu.so
./usr/lib/python3/dist-packages/usr/
./usr/lib/python3/dist-packages/usr/bin/
./usr/lib/python3/dist-packages/usr/bin/classad/
./usr/lib/python3/dist-packages/usr/bin/classad/__init__.py
./usr/lib/python3/dist-packages/usr/bin/classad/__pycache__/
./usr/lib/python3/dist-packages/usr/bin/classad/__pycache__/__init__.cpython-35.pyc
./usr/lib/python3/dist-packages/usr/bin/htcondor/
./usr/lib/python3/dist-packages/usr/bin/htcondor/__init__.py
./usr/lib/python3/dist-packages/usr/bin/htcondor/__pycache__/
./usr/lib/python3/dist-packages/usr/bin/htcondor/__pycache__/__init__.cpython-35.pyc
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/PKG-INFO
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/SOURCES.txt
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/dependency_links.txt
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/not-zip-safe
./usr/lib/python3/dist-packages/usr/bin/htcondor-8.9.5.egg-info/top_level.txt