-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Pyzmq , _zmq.cpython-313.so does not contain a CELQSTRT CSECT. #2071
Comments
we can see when i am importing i am getting below error |
@minrk |
I have no idea what
and see if you can build other python extensions ( |
Yes i am using zOS End of search list. any idea why we are able to build _zmq.cpython-313.so ? if we have any issue in building or linking |
@minrk Something is wrong which i am not getting |
that last error suggests the extension is not built or not installed, and the original source file is imported. That would happen e.g. if you did a standard install and then ran tests from within the source directory. You can avoid this by not running tests from within the source directory. |
@minrk lib/python3.13/site-packages/zmq/tests/test_asyncio.py sssssss.........F............sssssss [ 10%] what could be the cause of this hang ? |
and To test , why we can not do simple pytest . for this package pyzmq ? |
Please help me here @minrk and team |
I'm afraid there's not too much I can help with. You can skip the test, if it lets you move on. But since z/os is proprietary, I have no real way of investigating the problem. I wouldn't generally expect outdated pyzmq to work on the very latest Python 3.13, but it appears there is a problem with the new build system introduced in pyzmq 26. Does pyzmq 25.1.2 work? pyzmq 25 is the first version to support Python 3.12. That would help narrow down the relevant change. |
@minrk I am currently using Python 3.13.0. I'll check with version 25.1.2 and |
Yeah..!! after commenting out the specific test case (only one) i am able to run my test case's |
This is a pyzmq bug
What pyzmq version?
26.2.1
What libzmq version?
4.3.5
Python version (and how it was installed)
Python 3.13.0
OS
zOS
What happened?
Hi Everyone,
What pyzmq version?
26.2.1
What libzmq version?
4.3.5
Python version (and how it was installed)
3.13.0
OS
zOS
I am in the process of building the PyZMQ package on the z/OS platform. The libzmq with version 4.3.5 library has been built ,it is a static lib and added to the correct path. The PyZMQ version being used is 26.2.1.
So far, I have been able to successfully build and install the package:
(jenkins-build-env-313) AQ /u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq> pwd
/u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq
(jenkins-build-env-313) AQ /u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq> pip install -e .
Obtaining file:///u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: pyzmq
Building editable for pyzmq (pyproject.toml) ... done
Created wheel for pyzmq: filename=pyzmq-26.2.1-cp313-cp313-os390_29_00_3931.whl size=8702932 sha256=9e92877a79401ea381fe5fa0f6c96ea2c8a0d317e18c1c86e1bc2718be5fb383
Stored in directory: /AQFT/tmp/pip-ephem-wheel-cache-ig5ho4sr/wheels/93/c7/4d/45e4bb5077d26369c0d66fe6154fda537f714c6516ad203e71
Successfully built pyzmq
Installing collected packages: pyzmq
Attempting uninstall: pyzmq
Found existing installation: pyzmq 26.2.1
Uninstalling pyzmq-26.2.1:
Successfully uninstalled pyzmq-26.2.1
Successfully installed pyzmq-26.2.1
However, when I run the following command:
pytest tests/
I encounter the following error:
(jenkins-build-env-313) AQ /u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq> pytest tests/
ImportError while loading conftest '/u/pyzoda/share/jenkins/jenkins-build-env-313/pyzmq/tests/conftest.py'.
tests/conftest.py:23: in
import zmq
zmq/init.py:109: in
from zmq import backend
zmq/backend/init.py:30: in
raise original_error from None
zmq/backend/init.py:25: in
_ns = select_backend(first)
zmq/backend/select.py:31: in select_backend
mod = import_module(name)
zmq/backend/cython/init.py:6: in
from . import _zmq
E ImportError: CEE3595S DLL /u/pyzoda/share/jenkins/jenkins-build-env-313/lib/python3.13/site-packages/zmq/backend/cython/_zmq.cpython-313.so does not contain a CELQSTRT CSECT.
I see we have already install cython in my venv
I'm not sure why the _zmq.cpython-313.so file is causing this error. Does anyone have insights on why this might be happening?
Code to reproduce bug
Traceback, if applicable
More info
No response
The text was updated successfully, but these errors were encountered: