Error failed building wheel for gevent

gevent version: 21.1.2 installed through pip 21.0 Python version: Python 3.9.1 built from source from python.org through Macports 2.6.4 Operating System: MacOS 10.11.6 Description: Error Message (C...

Thank you. That confirms my suspicions. The configuration log reports:

Undefined symbols for architecture x86_64:
  "_clock_gettime", referenced from:
      _main in conftest-34497d.o
ld: symbol(s) not found for architecture x86_64

And thus the libev define HAVE_CLOCK_GETTIME is not set. libev now (4.33, March 2020) implicitly depends on this definition, or things break (obviously). I would say this is a bug in libev, but the further commits to the libev source are actually making this dependency stronger, so at the very least systems that don’t define clock_gettime are no longer tested by libev.

According to /usr/bin/man clock_gettime,

These functions first appeared in Mac OSX 10.12

So it would appear that 10.12 (2016) is the earliest version still likely to be supported by libev. (Note that I am unable to test macOS systems earlier than 10.15.)

Possible options:

If you can build a patched version of libev 4.33 as a shared library, you can arrange for gevent to link to that instead of using its embedded version by setting some environment variables.

You could alter gevent’s _setuplibev.py to attempt a workaround for the have_monotonic issue (look for EV_PERIODIC_ENABLE and set it to 1).

If you can build libev 4.32 as a shared library, you can arrange for gevent to link to that. This is not a tested configuration and might break.

You could alter gevent’s setup.py to not even try building the libev extensions, and just use the libuv loop. gevent’s libev loop is (slowly) being phased out in favor of libuv anyway.

Bibelo

Error when building gevent for db containers

Hello

When building the image for the last version of the DB container with the Dockerfile,

I have this error :

  ERROR: Failed building wheel for gevent
  Building wheel for PyYAML (PEP 517): started
  Building wheel for PyYAML (PEP 517): finished with status 'done'
  Created wheel for PyYAML: filename=PyYAML-5.4.1-cp39-cp39-linux_x86_64.whl size=45655 sha256=9ebe5e765ae4eb9c86db5856905e1f64cda4dbc07faa4619725aa71bcccad4ee
  Stored in directory: /tmp/pip-ephem-wheel-cache-aek50y4x/wheels/b7/a5/c4/504d913c2a55bb09c607541578ec5f844d1ff33467abe93ba5
Successfully built PyYAML
Failed to build gevent
ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
ERROR: Service 'db' failed to build

Please is this related to the disclaimer found on the front page of this GIT :

The current state of this repository doesn’t work out-of-the box since Mattermost server v5.31+ requires PostgreSQL versions of 10 or higher.

In this case, when would that be solved?

Thank you!

rubberneck

Not sure how helpful this is but I was able to get this to build by adding py3-gevent to the apk add in the db/Dockerfile. I only started it for a few minuets and didn’t really use it for production. I moved my setup the the omnibus package and just needed to get the docker version upgraded to the latest version. This did let it build and it came up and i could login but i didn’t use it anymore than that before moving to the omnibus version.

diff --git a/db/Dockerfile b/db/Dockerfile
index d9aed44..51c64a1 100644
--- a/db/Dockerfile
+++ b/db/Dockerfile
@@ -1,4 +1,4 @@
-FROM postgres:10-alpine
+FROM postgres:13.3-alpine
 
 ENV DEFAULT_TIMEZONE UTC
 # Mandatory nowdays with PG 10
@@ -16,6 +16,7 @@ RUN apk add --no-cache 
       py3-pip 
       py-cryptography 
       pv 
+      py3-gevent 
     && pip install --upgrade pip 
     && pip --no-cache-dir install -c pip-constraints.txt 'wal-e<1.0.0' envdir 
     && rm -rf /var/cache/apk/* /tmp/* /var/tmp/*

hmkim

@rubberneck

In my case, I solved this issue by
RUN apk add py3-gevent

hmkim

After compose up, I can’t boot up the DB container normally.

스크린샷 2021-07-23 오후 3 19 04

Я использую питон 3.9. Я попытался установить пакет Python:

pip.exe install gdbgui==0.13.2.0

Но это дает мне ошибку

ERROR: Failed building wheel for gevent
Failed to build gevent
ERROR: Could not build wheels for gevent, which is required to install pyproject.toml-based projects

Попробовал скачать gevent по этой ссылке https://www.lfd.uci.edu/~gohlke/pythonlibs/# подарок

Затем я запускаю команду

pip.exe install gevent‑21.12.0‑cp39‑cp39‑win_amd64.whl

Он успешно установился, но ошибка все еще появляется.

Пожалуйста, вы знаете, как решить эту проблему? Эта ошибка: ОШИБКА: не удалось построить колеса для gevent, который необходим для установки проектов на основе pyproject.toml.

Заранее спасибо.

1 ответ

Наконец, я решил проблему, понизив версию своего python до 3.8. Тогда это сработало.

Я надеюсь, что это поможет другим людям в такой же ситуации.


2

Raj
21 Дек 2021 в 20:11

Понравилась статья? Поделить с друзьями:
  • Error failed building wheel for fastecdsa
  • Error failed building wheel for cx oracle
  • Error failed building wheel for ciso8601
  • Error failed building wheel for cffi
  • Error failed building wheel for backports zoneinfo