sebo-b / warp

Workspace Autonomous Reservation Program - a system to help you efficiently manage hybrid (assigned, hot-desks, etc) office space.
MIT License
139 stars 60 forks source link

ERROR [warp-demo-wsgi compile-image 7/19] RUN pip install --upgrade setuptools && pip install wheel uwsgi #34

Open rohit-arm opened 11 months ago

rohit-arm commented 11 months ago

On doing a fresh sync and build. I'm getting the following error

docker compose -f demo_compose.yaml up
[+] Building 65.2s (10/27)                                                                                                                                                                                                                                                                               docker:default
[+] Building 68.0s (11/27)                                                                                                                                                                                                                                                                               docker:default
 => [warp-demo-wsgi internal] load build definition from Dockerfile                                                                                                                                                                                                                                                0.1s
 => => transferring dockerfile: 1.77kB                                                                                                                                                                                                                                                                             0.0s
 => [warp-demo-wsgi internal] load .dockerignore                                                                                                                                                                                                                                                                   0.2s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                    0.0s
 => [warp-demo-wsgi internal] load metadata for docker.io/library/python:3-slim                                                                                                                                                                                                                                    0.7s
 => [warp-demo-wsgi internal] load build context                                                                                                                                                                                                                                                                   0.2s
 => => transferring context: 4.21MB                                                                                                                                                                                                                                                                                0.1s
 => [warp-demo-wsgi compile-image  1/19] FROM docker.io/library/python:3-slim@sha256:43a49c9cc2e614468e3d1a903aabe17a97a4c788c76cf5337b5cdc3535b07d4f                                                                                                                                                              0.0s
 => CACHED [warp-demo-wsgi compile-image  2/19] WORKDIR /opt/warp                                                                                                                                                                                                                                                  0.0s
 => CACHED [warp-demo-wsgi compile-image  3/19] RUN apt-get update                                                                                                                                                                                                                                                 0.0s
 => [warp-demo-wsgi compile-image  4/19] RUN mkdir debs &&     apt-get install -y -d --no-install-recommends libpq5 mime-support &&     cp /var/cache/apt/archives/*deb debs                                                                                                                                       2.8s
 => [warp-demo-wsgi compile-image  5/19] RUN     apt-get install -y wget &&     NODE_ARCH=$(uname -m | sed 's/^x86_64\|amd64$/x64/;s/^i.*86$/x86/;s/^aarch64$/arm64/') &&     NODE_URL="https://nodejs.org/dist/v16.3.0/node-v16.3.0-linux-${NODE_ARCH}.tar.gz" &&     wget -O - "$NODE_URL" | tar -xz --strip-co  7.1s
 => [warp-demo-wsgi compile-image  6/19] RUN apt-get install -y build-essential libpq-dev libpcre3 libpcre3-dev                                                                                                                                                                                                   47.7s
 => ERROR [warp-demo-wsgi compile-image  7/19] RUN pip install --upgrade setuptools && pip install wheel uwsgi                                                                                                                                                                                                     9.0s
------
 > [warp-demo-wsgi compile-image  7/19] RUN pip install --upgrade setuptools && pip install wheel uwsgi:
2.389 Requirement already satisfied: setuptools in /usr/local/lib/python3.12/site-packages (68.2.2)
3.128 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
3.951 Requirement already satisfied: wheel in /usr/local/lib/python3.12/site-packages (0.41.2)
4.069 Collecting uwsgi
4.256   Downloading uwsgi-2.0.22.tar.gz (809 kB)
4.386      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 809.7/809.7 kB 6.7 MB/s eta 0:00:00
4.553   Preparing metadata (setup.py): started
5.081   Preparing metadata (setup.py): finished with status 'done'
5.101 Building wheels for collected packages: uwsgi
5.102   Building wheel for uwsgi (setup.py): started
7.877   Building wheel for uwsgi (setup.py): finished with status 'error'
7.976   error: subprocess-exited-with-error
7.976
7.976   × python setup.py bdist_wheel did not run successfully.
7.976   │ exit code: 1
7.976   ╰─> [317 lines of output]
7.976       /usr/local/lib/python3.12/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'descriptions'
7.976         warnings.warn(msg)
7.976       running bdist_wheel
7.976       running build
7.976       running build_py
7.976       creating build
7.976       creating build/lib
7.976       copying uwsgidecorators.py -> build/lib
7.976       /usr/local/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
7.976       !!
7.976
7.976               ********************************************************************************
7.976               Please avoid running ``setup.py`` directly.
7.976               Instead, use pypa/build, pypa/installer or other
7.976               standards-based tools.
7.976
7.976               See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
7.976               ********************************************************************************
7.976
7.976       !!
7.976         self.initialize_options()
7.976       installing to build/bdist.linux-x86_64/wheel
7.976       running install
7.976       using profile: buildconf/default.ini
7.976       detected include path: ['/usr/lib/gcc/x86_64-linux-gnu/12/include', '/usr/local/include', '/usr/include/x86_64-linux-gnu', '/usr/include']
7.976       Patching "bin_name" to properly install_scripts dir
7.976       detected CPU cores: 32
7.976       configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY  -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_VERSION="\"2.0.22\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="22" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
7.976       *** uWSGI compiling server core ***
7.976       [thread 0][gcc] core/utils.o
7.976       [thread 1][gcc] core/protocol.o
7.976       [thread 4][gcc] core/socket.o
7.976       [thread 2][gcc] core/logging.o
7.976       [thread 8][gcc] core/master.o
7.976       [thread 6][gcc] core/master_utils.o
7.976       [thread 9][gcc] core/emperor.o
7.976       [thread 5][gcc] core/notify.o
7.976       [thread 3][gcc] core/mule.o
7.976       [thread 11][gcc] core/subscription.o
7.976       [thread 10][gcc] core/stats.o
7.976       [thread 13][gcc] core/sendfile.o
7.976       [thread 12][gcc] core/async.o
7.976       [thread 16][gcc] core/master_checks.o
7.976       [thread 14][gcc] core/fifo.o
7.976       [thread 15][gcc] core/offload.o
7.976       [thread 17][gcc] core/io.o
7.976       [thread 18][gcc] core/static.o
7.976       [thread 20][gcc] core/websockets.o
7.976       [thread 19][gcc] core/spooler.o
7.976       [thread 21][gcc] core/snmp.o
7.976       [thread 22][gcc] core/exceptions.o
7.976       [thread 23][gcc] core/config.o
7.976       [thread 26][gcc] core/setup_utils.o
7.976       [thread 25][gcc] core/clock.o
7.976       [thread 27][gcc] core/init.o
7.976       [thread 28][gcc] core/buffer.o
7.976       [thread 29][gcc] core/reader.o
7.976       [thread 24][gcc] core/writer.o
7.976       [thread 30][gcc] core/alarm.o
7.976       [thread 7][gcc] core/cron.o
7.976       [thread 31][gcc] core/hooks.o
7.976       [thread 13][gcc] core/plugins.o
7.976       [thread 5][gcc] core/lock.o
7.976       [thread 25][gcc] core/cache.o
7.976       [thread 26][gcc] core/daemons.o
7.976       [thread 12][gcc] core/errors.o
7.976       [thread 21][gcc] core/hash.o
7.976       [thread 22][gcc] core/master_events.o
7.976       [thread 16][gcc] core/chunked.o
7.976       [thread 27][gcc] core/queue.o
7.976       [thread 18][gcc] core/event.o
7.976       [thread 3][gcc] core/signal.o
7.976       [thread 14][gcc] core/strings.o
7.976       [thread 10][gcc] core/progress.o
7.976       [thread 20][gcc] core/timebomb.o
7.976       [thread 1][gcc] core/ini.o
7.976       [thread 15][gcc] core/fsmon.o
7.976       core/lock.c: In function ‘uwsgi_lock_fast_init’:
7.976       core/lock.c:114:17: warning: ‘pthread_mutexattr_setrobust_np’ is deprecated: pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust [-Wdeprecated-declarations]
7.976         114 |                 if (pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) {
7.976             |                 ^~
7.976       In file included from /usr/include/features.h:489,
7.976                        from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
7.976                        from /usr/include/stdio.h:27,
7.976                        from ./uwsgi.h:165,
7.976                        from core/lock.c:1:
7.976       /usr/include/pthread.h:951:12: note: declared here
7.976         951 | extern int __REDIRECT_NTH (pthread_mutexattr_setrobust_np,
7.976             |            ^~~~~~~~~~~~~~
7.976       core/lock.c: In function ‘uwsgi_lock_fast’:
7.976       core/lock.c:176:17: warning: ‘pthread_mutex_consistent_np’ is deprecated: pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent [-Wdeprecated-declarations]
7.976         176 |                 pthread_mutex_consistent((pthread_mutex_t *) uli->lock_ptr);
7.976             |                 ^~~~~~~~~~~~~~~~~~~~~~~~
7.976       /usr/include/pthread.h:859:12: note: declared here
7.976         859 | extern int __REDIRECT_NTH (pthread_mutex_consistent_np, (pthread_mutex_t *),
7.976             |            ^~~~~~~~~~~~~~
7.976       [thread 30][gcc] core/mount.o
7.976       [thread 29][gcc] core/metrics.o
7.976       [thread 11][gcc] core/plugins_builder.o
7.976       [thread 7][gcc] core/sharedarea.o
7.976       [thread 31][gcc] core/rpc.o
7.976       [thread 8][gcc] core/gateway.o
7.976       [thread 23][gcc] core/loop.o
7.976       [thread 24][gcc] core/cookie.o
7.976       [thread 28][gcc] core/querystring.o
7.976       [thread 13][gcc] core/rb_timers.o
7.976       [thread 12][gcc] core/transformations.o
7.976       [thread 5][gcc] core/uwsgi.o
7.976       [thread 21][gcc] proto/base.o
7.976       [thread 17][gcc] proto/uwsgi.o
7.976       [thread 27][gcc] proto/http.o
7.976       [thread 19][gcc] proto/fastcgi.o
7.976       [thread 22][gcc] proto/scgi.o
7.976       [thread 16][gcc] proto/puwsgi.o
7.976       [thread 10][gcc] lib/linux_ns.o
7.976       [thread 20][gcc] core/regexp.o
7.976       [thread 26][gcc] core/routing.o
7.976       [thread 11][gcc] core/yaml.o
7.976       [thread 30][gcc] core/ssl.o
7.976       [thread 18][gcc] core/legion.o
7.976       [thread 14][gcc] core/dot_h.o
7.976       [thread 4][gcc] core/config_py.o
7.976       *** uWSGI compiling embedded plugins ***
7.976       [thread 24][gcc] plugins/python/python_plugin.o
7.976       [thread 1][gcc] plugins/python/pyutils.o
7.976       [thread 8][gcc] plugins/python/pyloader.o
7.976       [thread 28][gcc] plugins/python/wsgi_handlers.o
7.976       [thread 14][gcc] plugins/python/wsgi_headers.o
7.976       [thread 2][gcc] plugins/python/wsgi_subhandler.o
7.976       [thread 31][gcc] plugins/python/web3_subhandler.o
7.976       [thread 23][gcc] plugins/python/pump_subhandler.o
7.976       [thread 12][gcc] plugins/python/gil.o
7.976       [thread 6][gcc] plugins/python/uwsgi_pymodule.o
7.976       [thread 4][gcc] plugins/python/profiler.o
7.976       [thread 15][gcc] plugins/python/symimporter.o
7.976       [thread 17][gcc] plugins/python/tracebacker.o
7.976       [thread 13][gcc] plugins/python/raw.o
7.976       [thread 16][gcc] plugins/gevent/gevent.o
7.976       core/ssl.c: In function ‘uwsgi_ssl_new_server_context’:
7.976       [thread 22][gcc] plugins/gevent/hooks.o
7.976       core/ssl.c:268:17: warning: ‘PEM_read_bio_DHparams’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         268 |                 DH *dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
7.976             |                 ^~
7.976       In file included from /usr/include/openssl/ssl.h:36,
7.976                        from ./uwsgi.h:357,
7.976                        from core/ssl.c:1:
7.976       /usr/include/openssl/pem.h:469:1: note: declared here
7.976         469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
7.976             | ^~~~~~~~~~~~~~~~~~~
7.976       core/ssl.c:273:25: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         273 |                         DH_free(dh);
7.976             |                         ^~~~~~~
7.976       In file included from /usr/include/openssl/dsa.h:51,
7.976                        from /usr/include/openssl/x509.h:37,
7.976                        from /usr/include/openssl/ssl.h:31:
7.976       /usr/include/openssl/dh.h:200:28: note: declared here
7.976         200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
7.976             |                            ^~~~~~~
7.976       core/ssl.c:279:9: warning: ‘EC_KEY_new_by_curve_name’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         279 |         EC_KEY *ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
7.976             |         ^~~~~~
7.976       In file included from /usr/include/openssl/x509.h:33:
7.976       /usr/include/openssl/ec.h:998:31: note: declared here
7.976         998 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid);
7.976             |                               ^~~~~~~~~~~~~~~~~~~~~~~~
7.976       core/ssl.c:283:17: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         283 |                 EC_KEY_free(ecdh);
7.976             |                 ^~~~~~~~~~~
7.976       /usr/include/openssl/ec.h:1003:28: note: declared here
7.976        1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
7.976             |                            ^~~~~~~~~~~
7.976       core/ssl.c: In function ‘uwsgi_sha1’:
7.976       core/ssl.c:563:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         563 |         SHA1_Init(&sha);
7.976             |         ^~~~~~~~~
7.976       In file included from /usr/include/openssl/x509.h:41:
7.976       /usr/include/openssl/sha.h:49:27: note: declared here
7.976          49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
7.976             |                           ^~~~~~~~~
7.976       core/ssl.c:564:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         564 |         SHA1_Update(&sha, src, len);
7.976             |         ^~~~~~~~~~~
7.976       /usr/include/openssl/sha.h:50:27: note: declared here
7.976          50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
7.976             |                           ^~~~~~~~~~~
7.976       core/ssl.c:565:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         565 |         SHA1_Final((unsigned char *)dst, &sha);
7.976             |         ^~~~~~~~~~
7.976       /usr/include/openssl/sha.h:51:27: note: declared here
7.976          51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
7.976             |                           ^~~~~~~~~~
7.976       core/ssl.c: In function ‘uwsgi_md5’:
7.976       core/ssl.c:571:9: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         571 |         MD5_Init(&md5);
7.976             |         ^~~~~~~~
7.976       In file included from core/ssl.c:4:
7.976       /usr/include/openssl/md5.h:49:27: note: declared here
7.976          49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
7.976             |                           ^~~~~~~~
7.976       core/ssl.c:572:9: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         572 |         MD5_Update(&md5, src, len);
7.976             |         ^~~~~~~~~~
7.976       /usr/include/openssl/md5.h:50:27: note: declared here
7.976          50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
7.976             |                           ^~~~~~~~~~
7.976       core/ssl.c:573:9: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         573 |         MD5_Final((unsigned char *)dst, &md5);
7.976             |         ^~~~~~~~~
7.976       /usr/include/openssl/md5.h:51:27: note: declared here
7.976          51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
7.976             |                           ^~~~~~~~~
7.976       core/ssl.c: In function ‘uwsgi_sha1_2n’:
7.976       core/ssl.c:579:9: warning: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         579 |         SHA1_Init(&sha);
7.976             |         ^~~~~~~~~
7.976       /usr/include/openssl/sha.h:49:27: note: declared here
7.976          49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
7.976             |                           ^~~~~~~~~
7.976       core/ssl.c:580:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         580 |         SHA1_Update(&sha, s1, len1);
7.976             |         ^~~~~~~~~~~
7.976       /usr/include/openssl/sha.h:50:27: note: declared here
7.976          50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
7.976             |                           ^~~~~~~~~~~
7.976       core/ssl.c:581:9: warning: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         581 |         SHA1_Update(&sha, s2, len2);
7.976             |         ^~~~~~~~~~~
7.976       /usr/include/openssl/sha.h:50:27: note: declared here
7.976          50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
7.976             |                           ^~~~~~~~~~~
7.976       core/ssl.c:582:9: warning: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
7.976         582 |         SHA1_Final((unsigned char *)dst, &sha);
7.976             |         ^~~~~~~~~~
7.976       /usr/include/openssl/sha.h:51:27: note: declared here
7.976          51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
7.976             |                           ^~~~~~~~~~
7.976       [thread 19][gcc] plugins/ping/ping_plugin.o
7.976       [thread 10][gcc] plugins/cache/cache.o
7.976       [thread 7][gcc] plugins/nagios/nagios.o
7.976       [thread 20][gcc] plugins/rrdtool/rrdtool.o
7.976       [thread 9][gcc] plugins/carbon/carbon.o
7.976       [thread 3][gcc] plugins/rpc/rpc_plugin.o
7.976       [thread 21][gcc] plugins/corerouter/cr_common.o
7.976       plugins/python/python_plugin.c:138:9: warning: ‘Py_NoSiteFlag’ is deprecated [-Wdeprecated-declarations]
7.976         138 |         {"no-site", no_argument, 0, "do not import site module", uwsgi_opt_true, &Py_NoSiteFlag, 0},
7.976             |         ^
7.976       In file included from /usr/local/include/python3.12/Python.h:48,
7.976                        from plugins/python/uwsgi_python.h:4,
7.976                        from plugins/python/python_plugin.c:1:
7.976       /usr/local/include/python3.12/cpython/pydebug.h:14:37: note: declared here
7.976          14 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_NoSiteFlag;
7.976             |                                     ^~~~~~~~~~~~~
7.976       plugins/python/python_plugin.c: In function ‘uwsgi_python_init’:
7.976       plugins/python/python_plugin.c:239:17: warning: ‘Py_SetPythonHome’ is deprecated [-Wdeprecated-declarations]
7.976         239 |                 Py_SetPythonHome(wpyhome);
7.976             |                 ^~~~~~~~~~~~~~~~
7.976       In file included from /usr/local/include/python3.12/Python.h:94:
7.976       /usr/local/include/python3.12/pylifecycle.h:40:38: note: declared here
7.976          40 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetPythonHome(const wchar_t *);
7.976             |                                      ^~~~~~~~~~~~~~~~
7.976       plugins/python/python_plugin.c:263:9: warning: ‘Py_SetProgramName’ is deprecated [-Wdeprecated-declarations]
7.976         263 |         Py_SetProgramName(pname);
7.976             |         ^~~~~~~~~~~~~~~~~
7.976       /usr/local/include/python3.12/pylifecycle.h:37:38: note: declared here
7.976          37 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) Py_SetProgramName(const wchar_t *);
7.976             |                                      ^~~~~~~~~~~~~~~~~
7.976       plugins/python/python_plugin.c:269:9: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
7.976         269 |         Py_OptimizeFlag = up.optimize;
7.976             |         ^~~~~~~~~~~~~~~
7.976       /usr/local/include/python3.12/cpython/pydebug.h:13:37: note: declared here
7.976          13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
7.976             |                                     ^~~~~~~~~~~~~~~
7.976       plugins/python/pyutils.c: In function ‘init_pyargv’:
7.976       plugins/python/pyutils.c:391:9: warning: ‘PySys_SetArgv’ is deprecated [-Wdeprecated-declarations]
7.976         391 |         PySys_SetArgv(up.argc, up.py_argv);
7.976             |         ^~~~~~~~~~~~~
7.976       In file included from /usr/local/include/python3.12/Python.h:96,
7.976                        from plugins/python/uwsgi_python.h:4,
7.976                        from plugins/python/pyutils.c:1:
7.976       /usr/local/include/python3.12/sysmodule.h:13:38: note: declared here
7.976          13 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
7.976             |                                      ^~~~~~~~~~~~~
7.976       [thread 11][gcc] plugins/corerouter/cr_map.o
7.976       plugins/python/python_plugin.c: In function ‘uwsgi_python_pre_uwsgi_fork’:
7.976       plugins/python/python_plugin.c:1327:17: error: too few arguments to function ‘_PyImport_AcquireLock’
7.976        1327 |                 _PyImport_AcquireLock();
7.976             |                 ^~~~~~~~~~~~~~~~~~~~~
7.976       In file included from /usr/local/include/python3.12/import.h:91,
7.976                        from /usr/local/include/python3.12/Python.h:99:
7.976       /usr/local/include/python3.12/cpython/import.h:13:18: note: declared here
7.976          13 | PyAPI_FUNC(void) _PyImport_AcquireLock(PyInterpreterState *interp);
7.976             |                  ^~~~~~~~~~~~~~~~~~~~~
7.976       plugins/python/python_plugin.c: In function ‘uwsgi_python_post_uwsgi_fork’:
7.976       plugins/python/python_plugin.c:1339:25: error: too few arguments to function ‘_PyImport_ReleaseLock’
7.976        1339 |                         _PyImport_ReleaseLock();
7.976             |                         ^~~~~~~~~~~~~~~~~~~~~
7.976       /usr/local/include/python3.12/cpython/import.h:14:17: note: declared here
7.976          14 | PyAPI_FUNC(int) _PyImport_ReleaseLock(PyInterpreterState *interp);
7.976             |                 ^~~~~~~~~~~~~~~~~~~~~
7.976       plugins/python/python_plugin.c: In function ‘uwsgi_python_suspend’:
7.976       plugins/python/python_plugin.c:1596:78: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
7.976        1596 |                 up.current_recursion_remaining[wsgi_req->async_id] = tstate->recursion_remaining;
7.976             |                                                                              ^~~~~~~~~~~~~~~~~~~
7.976             |                                                                              c_recursion_remaining
7.976       plugins/python/python_plugin.c:1605:63: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
7.976        1605 |                 up.current_main_recursion_remaining = tstate->recursion_remaining;
7.976             |                                                               ^~~~~~~~~~~~~~~~~~~
7.976             |                                                               c_recursion_remaining
7.976       plugins/python/python_plugin.c: In function ‘uwsgi_python_resume’:
7.976       plugins/python/python_plugin.c:1839:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
7.976        1839 |                 tstate->recursion_remaining = up.current_recursion_remaining[wsgi_req->async_id];
7.976             |                         ^~~~~~~~~~~~~~~~~~~
7.976             |                         c_recursion_remaining
7.976       plugins/python/python_plugin.c:1848:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘recursion_remaining’; did you mean ‘c_recursion_remaining’?
7.976        1848 |                 tstate->recursion_remaining = up.current_main_recursion_remaining;
7.976             |                         ^~~~~~~~~~~~~~~~~~~
7.976             |                         c_recursion_remaining
7.976       [end of output]
7.976
7.976   note: This error originates from a subprocess, and is likely not a problem with pip.
7.976   ERROR: Failed building wheel for uwsgi
7.976   Running setup.py clean for uwsgi
8.240 Failed to build uwsgi
8.241 ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based projects
------
failed to solve: process "/bin/sh -c pip install --upgrade setuptools && pip install wheel uwsgi" did not complete successfully: exit code: 1

Any clue on what could be going wrong?

rohit-arm commented 11 months ago

Okay, I could fix this by changing

diff --git a/Dockerfile b/Dockerfile
index eb787a4..7451230 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3-slim AS compile-image
+FROM python:3.11-slim AS compile-image

 ENV NODE_VER=16.3.0

@@ -34,7 +34,7 @@ COPY warp ./warp
 COPY setup.py MANIFEST.in ./
 RUN python setup.py bdist_wheel -d wheel

-FROM python:3-slim
+FROM python:3.11-slim
 WORKDIR /opt/warp

Keen on hearing your thoughts @sebo-b?

sebo-b commented 7 months ago

hi - sorry for the late reply. I cannot reproduce it, can you please check if this still reproduces?

Hiten1928 commented 6 months ago

Hi @sebo-b It is happening on my MacOSX. And above solution didn't work for me, any pointers?