Unable to install pulsar-client to alpine
Describe the bug I am unable to install pulsar-client (https://pypi.org/project/pulsar-client/) to alpine Docker container.
To Reproduce Steps to reproduce the behavior:
- Use python:3.8-alpine3.14
- Try to install pulsar-client (
pip install -v pulsar-client) - Try specific version 2.8.0, 2.8.1
- Error: Could not find a version that satisfies the requirement
Expected behavior Package successfully installed
If I understand correctly this should work. (https://github.com/apache/pulsar/pull/7101)
@timmyyuan Could you please help take a look at this issue?
Hi, any news on this? Do you need any additional info?
@nlandeker according to Issue #12293 the package is currently not available/published for Python versions 3.8, 3.9 and 3.10
Hi, thanks for issue link. When can we expect this to be resolved? Thanks a lot.
Hi, @nlandeker this may have to wait for PMC members with sufficient authority to release it, I think if you need to use it urgently, maybe you can build it yourself.
Hi @timmyyuan thanks, I have already done a build, but I hope it gets released also on PyPi soon. Thanks.
@hangc0276 Could you take a look if you have time, it seems that the alpine python client (same as MacOS 11, see https://github.com/apache/pulsar/issues/12293 )has not been added to the apache/pulsar release process. Thanks.
@timmyyuan any idea when PMC members will get to this? I have build it myself but it is much more convenient to have it available via PyPi :)
@nlandeker Sorry for the late reply, I'll take a look this weekend
Hi, any updates on this? :)
Thanks a lot.
The issue had no activity for 30 days, mark with Stale label.
Hi, any updates on this? :)
Thanks a lot.
Hi nlandeker,
Could you please supply the built wheel or provide instructions on how to build this myself? I have the exact same problem! Thank you so much.
@b0mbays
pulsar-client-cpp and py3-pulsar-client-cpp packages are available on Alpine Linux (Edge repository)
# apk search pulsar-client
py3-pulsar-client-cpp-2.9.2-r0
pulsar-client-cpp-static-2.9.2-r0
pulsar-client-cpp-2.9.2-r0
pulsar-client-cpp-dev-2.9.2-r0
# apk info py3-pulsar-client-cpp
py3-pulsar-client-cpp-2.9.2-r0 description:
Python bindings for Apache Pulsar C++ client
# apk info pulsar-client-cpp
pulsar-client-cpp-2.9.2-r0 description:
Apache Pulsar C++ client
Dockerfile:
FROM alpine:latest
RUN apk add --no-cache \
-X https://dl-cdn.alpinelinux.org/alpine/edge/main \
-X https://dl-cdn.alpinelinux.org/alpine/edge/community \
-X https://dl-cdn.alpinelinux.org/alpine/edge/testing \
pulsar-client-cpp-dev py3-pulsar-client-cpp py3-six py3-certifi
# docker build -t <image> .
# docker run -it <image>
/ # ldd /usr/lib/libpulsar.so
/lib/ld-musl-x86_64.so.1 (0x7f6906c02000)
libprotobuf.so.29 => /usr/lib/libprotobuf.so.29 (0x7f690666f000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x7f69065f3000)
libssl.so.1.1 => /lib/libssl.so.1.1 (0x7f6906572000)
libcrypto.so.1.1 => /lib/libcrypto.so.1.1 (0x7f69062f1000)
libz.so.1 => /lib/libz.so.1 (0x7f69062d7000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x7f6906259000)
libsnappy.so.1 => /usr/lib/libsnappy.so.1 (0x7f690624e000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f6906076000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f690605d000)
libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f6906c02000)
libnghttp2.so.14 => /usr/lib/libnghttp2.so.14 (0x7f6906038000)
libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x7f690602c000)
libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x7f6906009000)
/ # python3
Python 3.10.3 (main, Apr 7 2022, 10:35:47) [GCC 11.2.1 20220219] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulsar
>>> dir(pulsar)
['AlreadyClosed', 'Authentication', 'AuthenticationAthenz', 'AuthenticationError', 'AuthenticationOauth2', 'AuthenticationTLS', 'AuthenticationToken', 'AuthorizationError', 'BatchingType', 'BrokerMetadataError', 'BrokerPersistenceError', 'ChecksumError', 'Client', 'CompressionType', 'ConnectError', 'Consumer', 'ConsumerAssignError', 'ConsumerBusy', 'ConsumerNotFound', 'ConsumerNotInitialized', 'ConsumerType', 'Context', 'CryptoError', 'CryptoKeyReader', 'CumulativeAcknowledgementNotAllowedError', 'ErrorGettingAuthenticationData', 'Function', 'IdentitySerDe', 'IncompatibleSchema', 'InitialPosition', 'InvalidConfiguration', 'InvalidMessage', 'InvalidTopicName', 'InvalidTxnStatusError', 'InvalidUrl', 'LookupError', 'MemoryBufferIsFull', 'Message', 'MessageBatch', 'MessageId', 'MessageTooBig', 'NotAllowedError', 'NotConnected', 'OperationNotSupported', 'PartitionsRoutingMode', 'PickleSerDe', 'Producer', 'ProducerBlockedQuotaExceededError', 'ProducerBlockedQuotaExceededException', 'ProducerBusy', 'ProducerFenced', 'ProducerNotInitialized', 'ProducerQueueIsFull', 'PulsarException', 'ReadError', 'Reader', 'Result', 'SerDe', 'ServiceUnitNotReady', 'SubscriptionNotFound', 'Timeout', 'TooManyLookupRequestException', 'TopicNotFound', 'TopicTerminated', 'TransactionConflict', 'TransactionCoordinatorNotFoundError', 'TransactionNotFound', 'UnknownError', 'UnsupportedVersionError', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_check_type', '_check_type_or_none', '_listener_wrapper', '_pulsar', '_retype', '_schema', 'certifi', 'exceptions', 'functions', 'logging', 're', 'schema', 'timedelta']
>>>
Closed as stale and it seems to work well in the latest version.
The development of the C++ client has been permanently moved to https://github.com/apache/pulsar-client-cpp. If it's still relevant, please open an issue there.
The development of the Python client has been permanently moved to https://github.com/apache/pulsar-client-python. If it's still relevant, please open an issue there.