Skip to content

New release #8393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 17, 2025
Merged

New release #8393

merged 3 commits into from
Apr 17, 2025

Conversation

waghanza
Copy link
Collaborator

@waghanza waghanza commented Apr 15, 2025

Failing frameworks
R version 4.5.0 (2025-04-11) -- "How About a Twenty-Six"
Copyright (C) 2025 The R Foundation for Statistical Computing
Platform: aarch64-unknown-linux-gnu

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> source("app.R")
Error in library(ambiorix) : there is no package calledambiorixCalls: source -> withVisible -> eval -> eval -> library
Execution halted
  • emmett

@gi0baro With the following dockerfile

FROM python:3.13-slim

WORKDIR /usr/src/app

  ARG DEBIAN_FRONTEND=noninteractive
  RUN apt-get -y update

    RUN apt-get -y install libffi-dev
    RUN apt-get -y install curl
    RUN apt-get -y install libssl-dev


  COPY server.py server.py
  COPY pyproject.toml pyproject.toml

  RUN curl https://sh.rustup.rs > init.sh
  RUN sh init.sh -y
  RUN find $HOME/.cargo/bin -not -type d -exec install {} /usr/local/bin \;
  RUN rustup default nightly

I have

Building wheels for collected packages: server, pendulum
  Building wheel for server (pyproject.toml) ... done
  Created wheel for server: filename=server-1.0.0-py2.py3-none-any.whl size=1083 sha256=53f3c43614a7a99d3c09eb1c6b7412b15d93524da4ebc9a5ac3f1076079f6a10
  Stored in directory: /tmp/pip-ephem-wheel-cache-srgjoynt/wheels/df/b9/ac/02b3f76c88b81db6418842a5e0b339c84a93c532457093013c
  Building wheel for pendulum (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pendulum (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      Running `maturin pep517 build-wheel -i /usr/local/bin/python3.13 --compatibility off`
      🍹 Building a mixed python/rust project
      🔗 Found pyo3 bindings
      🐍 Found CPython 3.13 at /usr/local/bin/python3.13
         Compiling target-lexicon v0.12.6
         Compiling python3-dll-a v0.2.9
         Compiling libc v0.2.139
         Compiling autocfg v1.1.0
         Compiling once_cell v1.17.1
         Compiling proc-macro2 v1.0.51
         Compiling unicode-ident v1.0.6
         Compiling quote v1.0.23
         Compiling syn v1.0.109
         Compiling cc v1.0.79
      error: linker `cc` not found
        |
        = note: No such file or directory (os error 2)

      error: could not compile `libc` (build script) due to 1 previous error
      warning: build failed, waiting for other jobs to finish...
      error: could not compile `quote` (build script) due to 1 previous error
      error: could not compile `proc-macro2` (build script) due to 1 previous error
      error: could not compile `syn` (build script) due to 1 previous error
      error: could not compile `target-lexicon` (build script) due to 1 previous error
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/usr/local/bin/python3.13" PYTHON_SYS_EXECUTABLE="/usr/local/bin/python3.13" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-ka11u37i/pendulum_c91b6f2043984ad28b7bca860b90b6de/rust/Cargo.toml" "--release" "--lib" "--crate-type" "cdylib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/usr/local/bin/python3.13', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pendulum
Successfully built server
Failed to build pendulum
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pendulum)
  • sunrise-router-road-runner
    @fenric With the following docker
RUN apt-get -qq update
RUN apt-get -qy install --no-install-recommends libzip-dev

WORKDIR /usr/src/app

RUN docker-php-ext-install zip opcache



RUN apt-get clean && rm -rf /var/lib/apt/lists/*

  RUN docker-php-ext-install sockets

  RUN mkdir -p /usr/src/php/ext/protobuf
  RUN curl -fsSL https://pecl.php.net/get/protobuf | tar xvz -C "/usr/src/php/ext/protobuf" --strip 1
  RUN docker-php-ext-install protobuf

ENV EVENT_EXT_FILE /usr/local/etc/php/conf.d/docker-php-ext-event.ini
RUN if [ -f "${EVENT_EXT_FILE}" ] ; then \
  rm -fr /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini ; \
  sed -i -e '1i extension=sockets.so' /usr/local/etc/php/conf.d/docker-php-ext-event.ini ; fi


  COPY 'config/bootstrap.php' 'config/bootstrap.php'
  COPY 'config/container.php' 'config/container.php'
  COPY 'config/definitions/app.php' 'config/definitions/app.php'
  COPY 'config/definitions/cache.php' 'config/definitions/cache.php'
  COPY 'config/definitions/prod/cache.php' 'config/definitions/prod/cache.php'
  COPY 'config/definitions/router.php' 'config/definitions/router.php'
  COPY 'src/Command/RoadRunnerWorker.php' 'src/Command/RoadRunnerWorker.php'
  COPY 'src/Controller/BenchmarkController.php' 'src/Controller/BenchmarkController.php'
  COPY 'var/cache/container/CompiledContainer.php' 'var/cache/container/CompiledContainer.php'
  COPY 'composer.json' 'composer.json'
  COPY '.rr.yaml' '.rr.yaml'

  RUN apt-get -qq update
  RUN apt-get -qy install curl


    RUN curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
    RUN composer install --no-dev --prefer-dist --classmap-authoritative
    RUN composer dumpautoload -o
    RUN vendor/bin/rr get-binary

I have

root@e4d229468214:/usr/src/app# ./rr serve
{"level":"debug","ts":1744740946851355306,"logger":"rpc","msg":"plugin was started","address":"tcp://127.0.0.1:6001","list of the plugins with RPC methods:":["app","resetter","lock","informer"]}
{"level":"info","ts":1744740946859113698,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946859113740,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946859113740,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946859136782,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946866148623,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946866148498,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946866162165,"logger":"server","msg":"Could not open input file: app\n"}
{"level":"info","ts":1744740946866166582,"logger":"server","msg":"Could not open input file: app\n"}
handle_serve_command: Function call error:
        serve error from the plugin *http.Plugin stopping execution, error: static_pool_allocate_workers: WorkerAllocate: EOF

@waghanza
Copy link
Collaborator Author

@Xudong-Huang With

cargo build --release  \
  --config  'profile.release.lto=true' \
  --config  'profile.release.panic="abort"' \
  --config  'profile.release.codegen-units=1'

I can compile may_minihttp, but the server part hangs, not sure what is going on

$ curl http://172.17.0.5:3000 -v

  • Trying 172.17.0.5:3000...
  • Connected to 172.17.0.5 (172.17.0.5) port 3000

GET / HTTP/1.1
Host: 172.17.0.5:3000
User-Agent: curl/8.6.0
Accept: /

@gi0baro
Copy link
Contributor

gi0baro commented Apr 15, 2025

@waghanza the issue with Emmett and 3.13 still depends on a 3rd party library (pendulum), so I can't really do anything.
You can either switch to Python 3.12 (there's should be a wheel for pendulum) or switch to emmett55 (micro version, doesn't depend on pendulum).

Copy link
Collaborator Author

@waghanza waghanza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raceychan lihil will appear when this PR is merged

@waghanza waghanza merged commit 45bfe92 into master Apr 17, 2025
241 of 257 checks passed
@waghanza waghanza deleted the update branch April 17, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants