Skip to content
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

Optional argument is detected in linux/windows but not in macos #4161

Closed
baseplate-admin opened this issue May 6, 2024 · 3 comments
Closed
Labels

Comments

@baseplate-admin
Copy link

baseplate-admin commented May 6, 2024

Bug Description

I have a rust function that has all positional arguments. It works fine in windows/linux but it is not detected in macos m1 platform.

Relevant codes : https://github.com/baseplate-admin/resvg-py/blob/e3aff47a1f351915a844ccab0bc09829f2993cd3/src/rust/lib.rs#L137-L139

Steps to Reproduce

  1. git clone this branch : https://github.com/baseplate-admin/resvg-py/tree/add-somethings
  2. poetry install
  3. poetry shell
  4. maturin develop
  5. pytest .

Backtrace

Run set -e
Looking in links: dist
Collecting resvg_py
  Downloading resvg_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (1.6 kB)
Downloading resvg_py-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 25.6 MB/s eta 0:00:00
Installing collected packages: resvg_py
Successfully installed resvg_py-0.1.2

Notice:  A new release of pip is available: 23.0.1 -> 24.0
Notice:  To update, run: python -m pip install --upgrade pip
Collecting pytest
  Downloading pytest-8.2.0-py3-none-any.whl.metadata (7.5 kB)
Collecting iniconfig (from pytest)
  Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
Collecting packaging (from pytest)
  Downloading packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pluggy<2.0,>=1.5 (from pytest)
  Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting exceptiongroup>=1.0.0rc8 (from pytest)
  Downloading exceptiongroup-1.2.1-py3-none-any.whl.metadata (6.6 kB)
Collecting tomli>=1 (from pytest)
  Downloading tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Downloading pytest-8.2.0-py3-none-any.whl (339 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.2/339.2 kB 11.9 MB/s eta 0:00:00
Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Downloading packaging-24.0-py3-none-any.whl (53 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 kB 12.7 MB/s eta 0:00:00
Installing collected packages: tomli, pluggy, packaging, iniconfig, exceptiongroup, pytest
Successfully installed exceptiongroup-1.2.1 iniconfig-2.0.0 packaging-24.0 pluggy-1.5.0 pytest-8.2.0 tomli-2.0.1

Notice:  A new release of pip is available: 23.0.1 -> 24.0
Notice:  To update, run: python -m pip install --upgrade pip
============================= test session starts ==============================
platform darwin -- Python 3.10.11, pytest-8.2.0, pluggy-1.5.0
rootdir: /Users/runner/work/resvg-py/resvg-py
configfile: pyproject.toml
collected 5 items

tests/test_complex_camera.py .                                           [ 20%]
tests/test_multiple_layer_svg.py .                                       [ 40%]
tests/test_normal_shape.py .                                             [ 60%]
tests/test_path.py FF                                                    [100%]

=================================== FAILURES ===================================
__________________________________ test_path ___________________________________

    def test_path():
        path = os.path.join(BASE_DIR, "acid.svg")
        print(path)
    
>       base = resvg_py.svg_to_base64(svg_path=path)
E       TypeError: svg_to_base64() got an unexpected keyword argument 'svg_path'

tests/test_path.py:14: TypeError
----------------------------- Captured stdout call -----------------------------
/Users/runner/work/resvg-py/resvg-py/tests/acid.svg
________________________________ test_gzip_path ________________________________

    def test_gzip_path():
        path = os.path.join(BASE_DIR, "acid.svg.gz")
        print(path)
    
>       base = resvg_py.svg_to_base64(svg_path=path)
E       TypeError: svg_to_base64() got an unexpected keyword argument 'svg_path'

tests/test_path.py:22: TypeError
----------------------------- Captured stdout call -----------------------------
/Users/runner/work/resvg-py/resvg-py/tests/acid.svg.gz
==================================== PASSES ====================================
========================= 2 failed, 3 passed in 0.11s ==========================


Windows :
```python
Looking in links: dist
Processing d:\a\resvg-py\resvg-py\dist\resvg_py-0.1.3-cp310-none-win_amd64.whl
Installing collected packages: resvg_py
Successfully installed resvg_py-0.1.3
Collecting pytest
  Downloading pytest-8.2.0-py3-none-any.whl.metadata (7.5 kB)
Collecting iniconfig (from pytest)
  Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
Collecting packaging (from pytest)
  Downloading packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pluggy<2.0,>=1.5 (from pytest)
  Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
Collecting exceptiongroup>=1.0.0rc8 (from pytest)
  Downloading exceptiongroup-1.2.1-py3-none-any.whl.metadata (6.6 kB)
Collecting tomli>=1 (from pytest)
  Downloading tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Collecting colorama (from pytest)
  Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Downloading pytest-8.2.0-py3-none-any.whl (339 kB)
   ---------------------------------------- 339.2/339.2 kB 7.0 MB/s eta 0:00:00
Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Downloading packaging-24.0-py3-none-any.whl (53 kB)
   ---------------------------------------- 53.5/53.5 kB 2.7 MB/s eta 0:00:00
Installing collected packages: tomli, pluggy, packaging, iniconfig, exceptiongroup, colorama, pytest
Successfully installed colorama-0.4.6 exceptiongroup-1.2.1 iniconfig-2.0.0 packaging-24.0 pluggy-1.5.0 pytest-8.2.0 tomli-2.0.1
============================= test session starts =============================
platform win32 -- Python 3.10.11, pytest-8.2.0, pluggy-1.5.0
rootdir: D:\a\resvg-py\resvg-py
configfile: pyproject.toml
collected 5 items

tests\test_complex_camera.py .                                           [ 20%]
tests\test_multiple_layer_svg.py .                                       [ 40%]
tests\test_normal_shape.py .                                             [ 60%]
tests\test_path.py ..                                                    [100%]

=================================== PASSES ====================================
__________________________________ test_path __________________________________
---------------------------- Captured stdout call -----------------------------
D:\a\resvg-py\resvg-py\tests\acid.svg
_______________________________ test_gzip_path ________________________________
---------------------------- Captured stdout call -----------------------------
D:\a\resvg-py\resvg-py\tests\acid.svg.gz
============================== 5 passed in 0.22s ==============================

Linux:

Run uraimo/run-on-arch-action@v2.7.2
Configuring Docker for multi-architecture support
/home/runner/work/_actions/uraimo/run-on-arch-action/v2.7.2/src/run-on-arch.sh /home/runner/work/_actions/uraimo/run-on-arch-action/v2.7.2/Dockerfiles/Dockerfile.armv7.ubuntu22.04 run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04
Build container
  GitHub token provided, caching to ghcr.io/baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04
  WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
  Configure a credential helper to remove this warning. See
  https://docs.docker.com/engine/reference/commandline/login/#credentials-store
  
  Login Succeeded
  Error response from daemon: manifest unknown
  #0 building with "default" instance using docker driver
  
  #1 [internal] load .dockerignore
  #1 transferring context: 2B done
  #1 DONE 0.0s
  
  #2 [internal] load build definition from Dockerfile.armv7.ubuntu22.04
  #2 transferring dockerfile: 217B done
  #2 DONE 0.0s
  
  #3 [auth] arm32v7/ubuntu:pull token for registry-1.docker.io
  #3 DONE 0.0s
  
  #4 [internal] load metadata for docker.io/arm32v7/ubuntu:22.04
  #4 DONE 0.3s
  
  #5 [internal] load build context
  #5 DONE 0.0s
  
  #6 [1/3] FROM docker.io/arm32v7/ubuntu:22.04@sha256:2f63021dc56651000aa1e250d42c3aa898a5cd61120aeb8daf9e7e0fd20b84e5
  #6 DONE 0.0s
  
  #7 [auth] baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04:pull token for ghcr.io
  #7 DONE 0.0s
  
  #8 importing cache manifest from ghcr.io/baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04
  #8 ERROR: failed to configure registry cache importer: ghcr.io/baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04:latest: not found
  
  #5 [internal] load build context
  #5 transferring context: 215B done
  #5 DONE 0.0s
  
  #6 [1/3] FROM docker.io/arm32v7/ubuntu:22.04@sha256:2f63021dc56651000aa1e250d42c3aa898a5cd61120aeb8daf9e7e0fd20b84e5
  #6 resolve docker.io/arm32v7/ubuntu:22.04@sha256:2f63021dc56651000aa1e250d42c3aa898a5cd61120aeb8daf9e7e0fd20b84e5 done
  #6 sha256:a0514f6822f381d7a240dfe8c419582164af5ad9465c1a95b69d1b44daedabdb 2.31kB / 2.31kB done
  #6 sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4 5.24MB / 26.64MB 0.1s
  #6 sha256:2f63021dc56651000aa1e250d42c3aa898a5cd61120aeb8daf9e7e0fd20b84e5 424B / 424B done
  #6 sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4 16.78MB / 26.64MB 0.2s
  #6 sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4 26.64MB / 26.64MB 0.3s
  #6 extracting sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4
  #6 sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4 26.64MB / 26.64MB 0.3s done
  #6 extracting sha256:f5b4213824fc3515b68e6844d3fc289ae00ef8cd07ddcd43856c3ad7faea16d4 0.8s done
  #6 DONE 1.2s
  
  #9 [2/3] COPY ./run-on-arch-install.sh /root/run-on-arch-install.sh
  #9 DONE 0.1s
  
  #10 [3/3] RUN chmod +x /root/run-on-arch-install.sh && /root/run-on-arch-install.sh
  #10 0.731 Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
  #10 1.168 Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [119 kB]
  #10 1.276 Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [109 kB]
  #10 1.380 Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]
  #10 2.687 Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/restricted armhf Packages [13.3 kB]
  #10 2.842 Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main armhf Packages [1701 kB]
  #10 3.086 Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/universe armhf Packages [16.8 MB]
  #10 3.586 Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse armhf Packages [199 kB]
  #10 4.286 Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf Packages [1057 kB]
  #10 4.407 Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted armhf Packages [17.1 kB]
  #10 4.410 Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse armhf Packages [4189 B]
  #10 4.667 Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe armhf Packages [1036 kB]
  #10 5.741 Get:13 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main armhf Packages [80.5 kB]
  #10 5.832 Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe armhf Packages [29.9 kB]
  #10 7.099 Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-security/main armhf Packages [792 kB]
  #10 7.230 Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse armhf Packages [1201 B]
  #10 7.232 Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted armhf Packages [15.8 kB]
  #10 7.233 Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe armhf Packages [750 kB]
  #10 7.452 Fetched 23.1 MB in 7s (3324 kB/s)
  #10 7.452 Reading package lists...
  #10 12.86 Reading package lists...
  #10 17.87 Building dependency tree...
  #10 18.33 Reading state information...
  #10 18.72 The following additional packages will be installed:
  #10 18.72   ca-certificates libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal
  #10 18.72   libpython3.10-stdlib libreadline8 libsqlite3-0 media-types openssl
  #10 18.72   python3-distutils python3-lib2to3 python3-minimal python3-pkg-resources
  #10 18.72   python3-setuptools python3-wheel python3.10 python3.10-minimal
  #10 18.72   readline-common
  #10 18.72 Suggested packages:
  #10 18.72   python3-doc python3-tk python3-venv python-setuptools-doc python3.10-venv
  #10 18.72   python3.10-doc binutils binfmt-support readline-doc
  #10 18.72 Recommended packages:
  #10 18.72   build-essential python3-dev
  #10 19.04 The following NEW packages will be installed:
  #10 19.04   ca-certificates libexpat1 libmpdec3 libpython3-stdlib libpython3.10-minimal
  #10 19.04   libpython3.10-stdlib libreadline8 libsqlite3-0 media-types openssl python3
  #10 19.04   python3-distutils python3-lib2to3 python3-minimal python3-pip
  #10 19.04   python3-pkg-resources python3-setuptools python3-wheel python3.10
  #10 19.04   python3.10-minimal readline-common
  #10 19.33 0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
  #10 19.33 Need to get 9294 kB of archives.
  #10 19.33 After this operation, 32.5 MB of additional disk space will be used.
  #10 19.33 Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf libpython3.10-minimal armhf 3.10.12-1~22.04.3 [796 kB]
  #10 19.93 Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf libexpat1 armhf 2.4.7-1ubuntu0.3 [67.1 kB]
  #10 19.94 Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3.10-minimal armhf 3.10.12-1~22.04.3 [1935 kB]
  #10 20.10 Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3-minimal armhf 3.10.6-1~22.04 [24.3 kB]
  #10 20.11 Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/main armhf media-types all 7.0.0 [25.5 kB]
  #10 20.11 Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/main armhf libmpdec3 armhf 2.5.1-2build2 [76.5 kB]
  #10 20.11 Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/main armhf readline-common all 8.1.2-1 [53.5 kB]
  #10 20.12 Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/main armhf libreadline8 armhf 8.1.2-1 [128 kB]
  #10 20.12 Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf libsqlite3-0 armhf 3.37.2-2ubuntu0.3 [549 kB]
  #10 20.15 Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf libpython3.10-stdlib armhf 3.10.12-1~22.04.3 [1766 kB]
  #10 20.24 Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3.10 armhf 3.10.12-1~22.04.3 [508 kB]
  #10 20.52 Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf libpython3-stdlib armhf 3.10.6-1~22.04 [6910 B]
  #10 20.60 Get:13 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3 armhf 3.10.6-1~22.04 [22.8 kB]
  #10 20.68 Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf openssl armhf 3.0.2-0ubuntu1.15 [1154 kB]
  #10 21.09 Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf ca-certificates all 20230311ubuntu0.22.04.1 [155 kB]
  #10 21.11 Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3-pkg-resources all 59.6.0-1.2ubuntu0.22.04.1 [132 kB]
  #10 21.12 Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3-lib2to3 all 3.10.8-1~22.04 [77.6 kB]
  #10 21.12 Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3-distutils all 3.10.8-1~22.04 [139 kB]
  #10 21.13 Get:19 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main armhf python3-setuptools all 59.6.0-1.2ubuntu0.22.04.1 [339 kB]
  #10 21.15 Get:20 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe armhf python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32.0 kB]
  #10 21.16 Get:21 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe armhf python3-pip all 22.0.2+dfsg-1ubuntu0.4 [1305 kB]
  #10 21.89 debconf: delaying package configuration, since apt-utils is not installed
  #10 21.99 Fetched 9294 kB in 2s (4292 kB/s)
  #10 22.13 Selecting previously unselected package libpython3.10-minimal:armhf.
  #10 22.13 (Reading database ... 
  (Reading database ... 5%
  (Reading database ... 10%
  (Reading database ... 15%
  (Reading database ... 20%
  (Reading database ... 25%
  (Reading database ... 30%
  (Reading database ... 35%
  (Reading database ... 40%
  (Reading database ... 45%
  (Reading database ... 50%
  (Reading database ... 55%
  (Reading database ... 60%
  (Reading database ... 65%
  (Reading database ... 70%
  (Reading database ... 75%
  (Reading database ... 80%
  (Reading database ... 85%
  (Reading database ... 90%
  (Reading database ... 95%
  (Reading database ... 100%
  (Reading database ... 4388 files and directories currently installed.)
  #10 22.14 Preparing to unpack .../libpython3.10-minimal_3.10.12-1~22.04.3_armhf.deb ...
  #10 22.14 Unpacking libpython3.10-minimal:armhf (3.10.12-1~22.04.3) ...
  #10 22.40 Selecting previously unselected package libexpat1:armhf.
  #10 22.40 Preparing to unpack .../libexpat1_2.4.7-1ubuntu0.3_armhf.deb ...
  #10 22.40 Unpacking libexpat1:armhf (2.4.7-1ubuntu0.3) ...
  #10 22.55 Selecting previously unselected package python3.10-minimal.
  #10 22.56 Preparing to unpack .../python3.10-minimal_3.10.12-1~22.04.3_armhf.deb ...
  #10 22.62 Unpacking python3.10-minimal (3.10.12-1~22.04.3) ...
  #10 22.80 Setting up libpython3.10-minimal:armhf (3.10.12-1~22.04.3) ...
  #10 22.84 Setting up libexpat1:armhf (2.4.7-1ubuntu0.3) ...
  #10 22.84 Setting up python3.10-minimal (3.10.12-1~22.04.3) ...
  #10 27.41 Selecting previously unselected package python3-minimal.
  #10 27.41 (Reading database ... 
  (Reading database ... 5%
  (Reading database ... 10%
  (Reading database ... 15%
  (Reading database ... 20%
  (Reading database ... 25%
  (Reading database ... 30%
  (Reading database ... 35%
  (Reading database ... 40%
  (Reading database ... 45%
  (Reading database ... 50%
  (Reading database ... 55%
  (Reading database ... 60%
  (Reading database ... 65%
  (Reading database ... 70%
  (Reading database ... 75%
  (Reading database ... 80%
  (Reading database ... 85%
  (Reading database ... 90%
  (Reading database ... 95%
  (Reading database ... 100%
  (Reading database ... 4692 files and directories currently installed.)
  #10 27.42 Preparing to unpack .../0-python3-minimal_3.10.6-1~22.04_armhf.deb ...
  #10 27.42 Unpacking python3-minimal (3.10.6-1~22.04) ...
  #10 27.59 Selecting previously unselected package media-types.
  #10 27.59 Preparing to unpack .../1-media-types_7.0.0_all.deb ...
  #10 27.59 Unpacking media-types (7.0.0) ...
  #10 27.74 Selecting previously unselected package libmpdec3:armhf.
  #10 27.74 Preparing to unpack .../2-libmpdec3_2.5.1-2build2_armhf.deb ...
  #10 27.74 Unpacking libmpdec3:armhf (2.5.1-2build2) ...
  #10 27.89 Selecting previously unselected package readline-common.
  #10 27.89 Preparing to unpack .../3-readline-common_8.1.2-1_all.deb ...
  #10 27.89 Unpacking readline-common (8.1.2-1) ...
  #10 28.04 Selecting previously unselected package libreadline8:armhf.
  #10 28.04 Preparing to unpack .../4-libreadline8_8.1.2-1_armhf.deb ...
  #10 28.04 Unpacking libreadline8:armhf (8.1.2-1) ...
  #10 28.19 Selecting previously unselected package libsqlite3-0:armhf.
  #10 28.19 Preparing to unpack .../5-libsqlite3-0_3.37.2-2ubuntu0.3_armhf.deb ...
  #10 28.19 Unpacking libsqlite3-0:armhf (3.37.2-2ubuntu0.3) ...
  #10 28.35 Selecting previously unselected package libpython3.10-stdlib:armhf.
  #10 28.36 Preparing to unpack .../6-libpython3.10-stdlib_3.10.12-1~22.04.3_armhf.deb ...
  #10 28.36 Unpacking libpython3.10-stdlib:armhf (3.10.12-1~22.04.3) ...
  #10 28.63 Selecting previously unselected package python3.10.
  #10 28.63 Preparing to unpack .../7-python3.10_3.10.12-1~22.04.3_armhf.deb ...
  #10 28.63 Unpacking python3.10 (3.10.12-1~22.04.3) ...
  #10 28.78 Selecting previously unselected package libpython3-stdlib:armhf.
  #10 28.78 Preparing to unpack .../8-libpython3-stdlib_3.10.6-1~22.04_armhf.deb ...
  #10 28.78 Unpacking libpython3-stdlib:armhf (3.10.6-1~22.04) ...
  #10 28.90 Setting up python3-minimal (3.10.6-1~22.04) ...
  #10 30.50 Selecting previously unselected package python3.
  #10 30.50 (Reading database ... 
  (Reading database ... 5%
  (Reading database ... 10%
  (Reading database ... 15%
  (Reading database ... 20%
  (Reading database ... 25%
  (Reading database ... 30%
  (Reading database ... 35%
  (Reading database ... 40%
  (Reading database ... 45%
  (Reading database ... 50%
  (Reading database ... 55%
  (Reading database ... 60%
  (Reading database ... 65%
  (Reading database ... 70%
  (Reading database ... 75%
  (Reading database ... 80%
  (Reading database ... 85%
  (Reading database ... 90%
  (Reading database ... 95%
  (Reading database ... 100%
  (Reading database ... 5122 files and directories currently installed.)
  #10 30.51 Preparing to unpack .../0-python3_3.10.6-1~22.04_armhf.deb ...
  #10 30.58 Unpacking python3 (3.10.6-1~22.04) ...
  #10 30.74 Selecting previously unselected package openssl.
  #10 30.74 Preparing to unpack .../1-openssl_3.0.2-0ubuntu1.15_armhf.deb ...
  #10 30.74 Unpacking openssl (3.0.2-0ubuntu1.15) ...
  #10 30.94 Selecting previously unselected package ca-certificates.
  #10 30.94 Preparing to unpack .../2-ca-certificates_20230311ubuntu0.22.04.1_all.deb ...
  #10 30.94 Unpacking ca-certificates (20230311ubuntu0.22.04.1) ...
  #10 31.13 Selecting previously unselected package python3-pkg-resources.
  #10 31.13 Preparing to unpack .../3-python3-pkg-resources_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
  #10 31.13 Unpacking python3-pkg-resources (59.6.0-1.2ubuntu0.22.04.1) ...
  #10 31.29 Selecting previously unselected package python3-lib2to3.
  #10 31.29 Preparing to unpack .../4-python3-lib2to3_3.10.8-1~22.04_all.deb ...
  #10 31.29 Unpacking python3-lib2to3 (3.10.8-1~22.04) ...
  #10 31.47 Selecting previously unselected package python3-distutils.
  #10 31.47 Preparing to unpack .../5-python3-distutils_3.10.8-1~22.04_all.deb ...
  #10 31.47 Unpacking python3-distutils (3.10.8-1~22.04) ...
  #10 31.64 Selecting previously unselected package python3-setuptools.
  #10 31.64 Preparing to unpack .../6-python3-setuptools_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
  #10 31.64 Unpacking python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
  #10 31.83 Selecting previously unselected package python3-wheel.
  #10 31.83 Preparing to unpack .../7-python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
  #10 31.83 Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
  #10 31.98 Selecting previously unselected package python3-pip.
  #10 31.98 Preparing to unpack .../8-python3-pip_22.0.2+dfsg-1ubuntu0.4_all.deb ...
  #10 31.98 Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
  #10 32.29 Setting up media-types (7.0.0) ...
  #10 32.30 Setting up libsqlite3-0:armhf (3.37.2-2ubuntu0.3) ...
  #10 32.30 Setting up libmpdec3:armhf (2.5.1-2build2) ...
  #10 32.31 Setting up openssl (3.0.2-0ubuntu1.15) ...
  #10 32.34 Setting up readline-common (8.1.2-1) ...
  #10 32.40 Setting up libreadline8:armhf (8.1.2-1) ...
  #10 32.40 Setting up libpython3.10-stdlib:armhf (3.10.12-1~22.04.3) ...
  #10 32.41 Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
  #10 41.28 Updating certificates in /etc/ssl/certs...
  #10 55.12 137 added, 0 removed; done.
  #10 55.24 Setting up libpython3-stdlib:armhf (3.10.6-1~22.04) ...
  #10 55.25 Setting up python3.10 (3.10.12-1~22.04.3) ...
  #10 59.84 Setting up python3 (3.10.6-1~22.04) ...
  #10 60.91 Setting up python3-lib2to3 (3.10.8-1~22.04) ...
  #10 61.76 Setting up python3-pkg-resources (59.6.0-1.2ubuntu0.22.04.1) ...
  #10 63.50 Setting up python3-distutils (3.10.8-1~22.04) ...
  #10 64.50 Setting up python3-setuptools (59.6.0-1.2ubuntu0.22.04.1) ...
  #10 67.25 Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
  #10 68.69 Setting up python3-pip (22.0.2+dfsg-1ubuntu0.4) ...
  #10 75.86 Processing triggers for libc-bin (2.35-0ubuntu3.7) ...
  #10 75.95 Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
  #10 76.05 Updating certificates in /etc/ssl/certs...
  #10 86.99 0 added, 0 removed; done.
  #10 86.99 Running hooks in /etc/ca-certificates/update.d...
  #10 87.01 done.
  #10 89.67 Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
  #10 90.78 Collecting pip
  #10 91.15   Downloading pip-24.0-py3-none-any.whl (2.1 MB)
  #10 91.41      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 9.4 MB/s eta 0:00:00
  #10 92.23 Collecting pytest
  #10 92.25   Downloading pytest-8.2.0-py3-none-any.whl (339 kB)
  #10 92.29      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.2/339.2 KB 13.0 MB/s eta 0:00:00
  #10 92.54 Collecting exceptiongroup>=1.0.0rc8
  #10 92.56   Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
  #10 92.71 Collecting tomli>=1
  #10 92.73   Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
  #10 92.90 Collecting pluggy<2.0,>=1.5
  #10 92.92   Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
  #10 93.17 Collecting packaging
  #10 93.19   Downloading packaging-24.0-py3-none-any.whl (53 kB)
  #10 93.21      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 KB 5.9 MB/s eta 0:00:00
  #10 93.28 Collecting iniconfig
  #10 93.30   Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
  #10 93.54 Installing collected packages: tomli, pluggy, pip, packaging, iniconfig, exceptiongroup, pytest
  #10 93.71   Attempting uninstall: pip
  #10 93.71     Found existing installation: pip 22.0.2
  #10 93.72     Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
  #10 93.72     Can't uninstall 'pip'. No files were found to uninstall.
  #10 101.4 Successfully installed exceptiongroup-1.2.1 iniconfig-2.0.0 packaging-24.0 pip-24.0 pluggy-1.5.0 pytest-8.2.0 tomli-2.0.1
  #10 101.4 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
  #10 DONE 101.6s
  
  #11 preparing layers for inline cache
  #11 DONE 0.9s
  
  #12 exporting to image
  #12 exporting layers done
  #12 writing image sha256:2e81c45e37a10681aec541ed263e20aa35f5aeb8c2e663be1ac139d118cbd5bf done
  #12 naming to docker.io/library/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04:latest done
  #12 DONE 0.0s
  ------
   > importing cache manifest from ghcr.io/baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04:
  ------
  Using default tag: latest
  The push refers to repository [ghcr.io/baseplate-admin/resvg-py/run-on-arch-baseplate-admin-resvg-py-ci-armv7-ubuntu22-04]
  6b88ffa658c6: Preparing
  54d67af433aa: Preparing
  d360e786b6d6: Preparing
  denied: installation not allowed to Create organization package
Run container
  WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
  Looking in links: dist
  Processing ./dist/resvg_py-0.1.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
  Installing collected packages: resvg_py
  Successfully installed resvg_py-0.1.3
  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
  ============================= test session starts ==============================
  platform linux -- Python 3.10.12, pytest-8.2.0, pluggy-1.5.0
  rootdir: /home/runner/work/resvg-py/resvg-py
  configfile: pyproject.toml
  collecting ... 
  collected 5 items                                                              
  
  tests/test_complex_camera.py .                                           [ 20%]
  tests/test_multiple_layer_svg.py .                                       [ 40%]
  tests/test_normal_shape.py .                                             [ 60%]
  tests/test_path.py ..                                                    [100%]
  
  ==================================== PASSES ====================================
  __________________________________ test_path ___________________________________
  ----------------------------- Captured stdout call -----------------------------
  /home/runner/work/resvg-py/resvg-py/tests/acid.svg
  ________________________________ test_gzip_path ________________________________
  ----------------------------- Captured stdout call -----------------------------
  /home/runner/work/resvg-py/resvg-py/tests/acid.svg.gz
  ============================== 5 passed in 6.05s ===============================

Your operating system and version

Windows 11

Your Python version (python --version)

Python 3.12.3

Your Rust version (rustc --version)

rustc 1.80.0-nightly (a8a1d3a77 2024-04-29)

Your PyO3 version

0.21.2

How did you install python? Did you use a virtualenv?

poetry

Additional Info

Github actions log : https://github.com/baseplate-admin/resvg-py/actions/runs/8964212068

@baseplate-admin baseplate-admin changed the title Optional argument is not detected in macos but is detected in linux/windows Optional argument is detected in linux/windows but not in macos May 6, 2024
@baseplate-admin baseplate-admin changed the title Optional argument is detected in linux/windows but not in macos Optional argument is detected in linux/windows but not in macos May 6, 2024
@birkenfeld
Copy link
Member

It's highly likely that you have a problem in the setup of your CI or other environment that these logs are from, you're not testing the code that you want to test.

Look at the logs, it installs a 0.1.2 wheel for MacOS (which looks like it's being downloaded from PyPI) but 0.1.3 for Windows.

@baseplate-admin
Copy link
Author

baseplate-admin commented May 6, 2024

Hmm i am using the CI that maturin provides

https://github.com/baseplate-admin/resvg-py/blob/b2211bead768b5655e9266d659ebfc4bca6234bb/.github/workflows/CI.yaml#L1-L4


Perhaps i should report it to maturin?

@baseplate-admin
Copy link
Author

Most likely an issue with maturin. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants