valkey-glide: (python): (package fails with pypy installation)

Describe the bug

hi, so i installed glide with pypy since it’s said to be supported https://github.com/valkey-io/valkey-glide/blob/main/python/pyproject.toml#L24 but i get the following error

╰─➤  pypy  
Python 3.11.11 (0253c85bf5f8, Feb 26 2025, 10:42:42)
[PyPy 7.3.19 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>> import glide
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import glide
  File "/home/amirreza/projects/1/pypytest/.venv/lib/pypy3.11/site-packages/glide/__init__.py", line 3, in <module>
    from glide.async_commands.bitmap import (
  File "/home/amirreza/projects/1/pypytest/.venv/lib/pypy3.11/site-packages/glide/async_commands/__init__.py", line 3, in <module>
    from .core import CoreCommands
  File "/home/amirreza/projects/1/pypytest/.venv/lib/pypy3.11/site-packages/glide/async_commands/core.py", line 28, in <module>
    from glide.async_commands.sorted_set import (
  File "/home/amirreza/projects/1/pypytest/.venv/lib/pypy3.11/site-packages/glide/async_commands/sorted_set.py", line 7, in <module>
    from glide.constants import TEncodable
  File "/home/amirreza/projects/1/pypytest/.venv/lib/pypy3.11/site-packages/glide/constants.py", line 5, in <module>
    from glide.protobuf.command_request_pb2 import CommandRequest
ModuleNotFoundError: No module named 'glide.protobuf'

Expected Behavior

to work with pypy or if it doesn’t, it should be documented

Current Behavior

.

Reproduction Steps

pyenv install pypy3.11-7.3.19
pyenv local pypy3.11-7.3.19
pip install valkey-glide

Possible Solution

No response

Additional Information/Context

No response

Client version used

latest

Engine type and version

8.0.2

OS

linux

Language

Python

Language Version

3.11

Cluster information

No response

Logs

No response

Other information

when installing with pypy, dist info is named ike this: valkey_glide-0.0.0rc0.dist-info you can find this in site_packages directory inside venv

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

hi thanks for your efforts seems to work on my setup

@amirreza8002 We have just published a 1.3.5 version with includes wheels build for pypy https://pypi.org/project/valkey-glide/#files I believe this will solve the issue for you. Previous release did not contain the pypy wheels, but did contain the source code. Thus the pip tried to compile the lib on your machine, and obviously doing so on Arch Linux requires installing the build tools.

  1. We are sorry for inconvenience.
  2. Could you kindly try it out

@amirreza8002 Many thanks for bringing it up and sorry for inconvenience. I will be the owner of this issue. Please allow me some time for reproducing it

Hi @amirreza8002

We’ve resolved the PyPy installation issue. The fix will be released in early May.

Thank you for bringing this up! 😄