Skip to content

BUG: Pyzmq , _zmq.cpython-313.so does not contain a CELQSTRT CSECT. #2071

Open
@AnkitAhlawat7742

Description

@AnkitAhlawat7742

This is a pyzmq bug

  • This is a pyzmq-specific bug, not an issue of zmq socket behavior. Don't worry if you're not sure! We'll figure it out together.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions