pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

ERROR: Could not find a version that satisfies the requirement pulsar-client==2.8.1

Open grantmagdanz opened this issue 5 years ago • 4 comments

Describe the bug I cannot install pulsar-client 2.8.1 on macOS 11.6 with Python 3.8.8.

To Reproduce Steps to reproduce the behavior:

  1. Run pip install pulsar-client==2.8.1 on macOS 11.6 with python 3.8.8.

Expected behavior pulsar-client is installed successfully

Desktop (please complete the following information):

  • OS: macOS 11.6
  • Python: 3.8.8

Additional context Looking at PyPI it looks like there are wheels missing that were previously published. For example in pulsar-client version 2.7.3 the wheel pulsar_client-2.7.3-cp38-cp38-macosx_10_15_x86_64.whl exists but does not for version 2.8.1. The wheels built for macOS in 2.8.1 are targeting python 3.7.

Is it possible to get the wheel published for Python 3.8 for macOS? Is there any way to ensure those wheels get published for future versions? Without them we can't upgrade consistently. Thank you in advance!

grantmagdanz avatar Oct 07 '21 15:10 grantmagdanz

This is also affecting my users.

When possible, please either:

  • Publish binary releases for the Python client on all currently supported versions of Python (several are missing at the moment, including 3.8, 3.9, and 3.10) multiplied by all currently supported OSes (Mac OS 10.9, 10.10, 10.11, 10.12, 10.13, 10.14, 10.15, 11, and 12).
  • Publish source releases of the pulsar client package so that missing binaries can be built by users.

zbentley avatar Oct 29 '21 15:10 zbentley

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

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

@grantmagdanz @zbentley

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 23:04 JanVosNL

Closed as stale.

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.

2.10.1 should work well.

tisonkun avatar Nov 10 '22 14:11 tisonkun