pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Unable to install pulsar-client to alpine

Open nlandeker opened this issue 5 years ago • 14 comments

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:

  1. Use python:3.8-alpine3.14
  2. Try to install pulsar-client (pip install -v pulsar-client)
  3. Try specific version 2.8.0, 2.8.1
  4. 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)

nlandeker avatar Nov 04 '21 09:11 nlandeker

@timmyyuan Could you please help take a look at this issue?

codelipenghui avatar Nov 06 '21 14:11 codelipenghui

Hi, any news on this? Do you need any additional info?

nlandeker avatar Nov 10 '21 14:11 nlandeker

@nlandeker according to Issue #12293 the package is currently not available/published for Python versions 3.8, 3.9 and 3.10

thacoon avatar Nov 10 '21 17:11 thacoon

Hi, thanks for issue link. When can we expect this to be resolved? Thanks a lot.

nlandeker avatar Nov 11 '21 23:11 nlandeker

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.

timmyyuan avatar Nov 15 '21 04:11 timmyyuan

Hi @timmyyuan thanks, I have already done a build, but I hope it gets released also on PyPi soon. Thanks.

nlandeker avatar Nov 15 '21 09:11 nlandeker

@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 avatar Nov 18 '21 02:11 timmyyuan

@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 avatar Dec 15 '21 13:12 nlandeker

@nlandeker Sorry for the late reply, I'll take a look this weekend

timmyyuan avatar Dec 20 '21 04:12 timmyyuan

Hi, any updates on this? :)

Thanks a lot.

nlandeker avatar Jan 24 '22 07:01 nlandeker

The issue had no activity for 30 days, mark with Stale label.

github-actions[bot] avatar Feb 27 '22 01:02 github-actions[bot]

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 avatar Mar 24 '22 16:03 b0mbays

@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']
>>> 

JanVosNL avatar Apr 09 '22 04:04 JanVosNL

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.

tisonkun avatar Nov 10 '22 07:11 tisonkun