[ 
https://issues.apache.org/jira/browse/PROTON-2518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17507200#comment-17507200
 ] 

Paul Banks commented on PROTON-2518:
------------------------------------

I haven't tested that build yet but there's an interesting wrinkle. I ran the 
code in a brand new CentOS7 build that never had the yum repo installed and it 
seems to work just fine. Not sure what that means, other than it could be 
myself causing the issues unknowingly. I'll still run the 2492 changes but may 
need to investigate this a little more.

> Installing Python bindings via pip in a venv causes an ImportError
> ------------------------------------------------------------------
>
>                 Key: PROTON-2518
>                 URL: https://issues.apache.org/jira/browse/PROTON-2518
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>    Affects Versions: proton-c-0.36.0
>         Environment: 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)
>            Reporter: Paul Banks
>            Priority: Major
>
> 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.
> {code:java}
> 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{code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to