Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2518

Installing Python bindings via pip in a venv causes an ImportError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • proton-c-0.36.0
    • None
    • python-binding
    • None
    • CentOS 7
      Python 3.8.12 (Anaconda 4.11.0)
      Using a standard venv within that. That is I created a python virtual environment inside an anaconda environment. (Not my choice but if it makes a difference I've run into the same issue without it)

    Description

      When attempting to use the Qpid Proton libraries by installing the `python-qpid-proton` package in pip an ImportError appears related to the _cproton shared object.

      I was able to recreate it with a python 3.6.8 virtual environment. The error is the same in my python 3.8.12 environment. I am attempting to run one of the provided examples.

      Traceback (most recent call last):
        File "/export/home/pbanks/Downloads/qpid-proton-0.36.0/python/examples/simple_recv.py", line 22, in <module>
          from proton.handlers import MessagingHandler
        File "/export/home/pbanks/anaconda3/envs/testEnviron/lib/python3.6/site-packages/proton/__init__.py", line 35, in <module>
          from cproton import PN_VERSION_MAJOR, PN_VERSION_MINOR, PN_VERSION_POINT
        File "/export/home/pbanks/anaconda3/envs/testEnviron/lib/python3.6/site-packages/cproton.py", line 15, in <module>
          import _cproton
      ImportError: /export/home/pbanks/anaconda3/envs/testEnviron/lib/python3.6/site-packages/_cproton.cpython-36m-x86_64-linux-gnu.so: undefined symbol: CRYPTO_set_locking_callback

      Normally in CentOS7 I would use the Fedora provided yum package `python36-qpid-proton` as that works without issue.

      My current workaround is to replace the shared object provided by the pip package with the yum package.

      Attachments

        1. image-2022-03-17-11-01-58-867.png
          65 kB
          Paul Banks
        2. image-2022-03-17-11-14-04-350.png
          29 kB
          Paul Banks

        Activity

          People

            Unassigned Unassigned
            crouton Paul Banks
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: