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

Python3Packages.debugpy build error under aarch64-darwin #185289

Closed
lockejan opened this issue Aug 5, 2022 · 10 comments
Closed

Python3Packages.debugpy build error under aarch64-darwin #185289

lockejan opened this issue Aug 5, 2022 · 10 comments
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin

Comments

@lockejan
Copy link
Contributor

lockejan commented Aug 5, 2022

Describe the bug

A clear and concise description of what the bug is.
debugpy won't build under darwin. unstable as well as the latest stablechannel are affected.

I tried installing python39 and python310 variants.
Both failed.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-env -iA nixpkgs.python39Packages.debugpy
  2. nix-env -iA nixpkgs.python310Packages.debugpy

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Part of the full build error log of the install attempt with python310 (full log is too long for GH)

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
Sourcing pytest-check-hook
Using pytestCheckPhase
Removing setuptoolsCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/m2fbqnv8xblg8r2qnchiam532fpikvvh-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/versioneer.py
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/n01ikiddam6fzlkj8l84kfw3zlygpdjl-hardcode-gdb.patch
patching file src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
applying patch /nix/store/viqbq2i78vspk98zblhbcw3776fygjax-hardcode-version.patch
patching file setup.py
patching file src/debugpy/__init__.py
applying patch /nix/store/02ky0mjbim8h47i0yqzvm87wyjm86i4a-fix-test-pythonpath.patch
patching file tests/debug/session.py
Hunk #1 succeeded at 631 (offset 1 line).
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building

...truncated...

=================================== FAILURES ===================================
�[31m�[1m_____________ test_django_breakpoint_no_multiproc[launch-template] _____________�[0m
[gw6] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_______________ test_django_breakpoint_no_multiproc[launch-code] _______________�[0m
[gw5] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_____________ test_django_template_exception_no_multiproc[launch] ______________�[0m
[gw7] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_____________ test_django_exception_no_multiproc[launch-unhandled] _____________�[0m
[gw1] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m___________________ test_django_breakpoint_multiproc[launch] ___________________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m______________ test_django_exception_no_multiproc[launch-handled] ______________�[0m
[gw0] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_______________ test_flask_breakpoint_no_multiproc[launch-code] ________________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_____________ test_flask_breakpoint_no_multiproc[launch-template] ______________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m______________ test_flask_template_exception_no_multiproc[launch] ______________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m______________ test_flask_exception_no_multiproc[launch-handled] _______________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
�[31m�[1m_____________ test_flask_exception_no_multiproc[launch-unhandled] ______________�[0m
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
=========================== short test summary info ============================
FAILED tests/debugpy/test_django.py::test_django_breakpoint_no_multiproc[launch-template]
FAILED tests/debugpy/test_django.py::test_django_breakpoint_no_multiproc[launch-code]
FAILED tests/debugpy/test_django.py::test_django_template_exception_no_multiproc[launch]
FAILED tests/debugpy/test_django.py::test_django_exception_no_multiproc[launch-unhandled]
FAILED tests/debugpy/test_django.py::test_django_breakpoint_multiproc[launch]
FAILED tests/debugpy/test_django.py::test_django_exception_no_multiproc[launch-handled]
FAILED tests/debugpy/test_flask.py::test_flask_breakpoint_no_multiproc[launch-code]
FAILED tests/debugpy/test_flask.py::test_flask_breakpoint_no_multiproc[launch-template]
FAILED tests/debugpy/test_flask.py::test_flask_template_exception_no_multiproc[launch]
FAILED tests/debugpy/test_flask.py::test_flask_exception_no_multiproc[launch-handled]
FAILED tests/debugpy/test_flask.py::test_flask_exception_no_multiproc[launch-unhandled]
�[31m=========== �[31m�[1m11 failed�[0m, �[32m758 passed�[0m, �[33m438 skipped�[0m�[31m in 128.02s (0:02:08)�[0m�[31m ============�[0m
I+00.958: debugpy and pydevd logs will be under /private/tmp/nix-build-python3.10-debugpy-1.6.0.drv-0/source/tests/_logs/3.10-64

I+01.174: Test environment for tests-44475
          
          System paths:
              sys.prefix: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              sys.base_prefix: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              sys.real_prefix: <missing>
              site.getsitepackages(): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              site.getusersitepackages(): /homeless-shelter/.local/lib/python3.10/site-packages
              sys.path (site-packages): /nix/store/02s8g68zslfda3p5k7ig7g39n9days6d-python3.10-itsdangerous-2.1.2/lib/python3.10/site-packages
                                        /nix/store/0fqrcfq293smqibgsvpc64bx3w06kajk-python3.10-certifi-2021.10.08/lib/python3.10/site-packages
                                        /nix/store/1a523hcpsn408c929wknhphvpiylar7m-python3.10-urllib3-1.26.9/lib/python3.10/site-packages
                                        /nix/store/1db8bxz4gqv0p734byx077wwb321jvzx-python3.10-execnet-1.9.0/lib/python3.10/site-packages
                                        /nix/store/290wcsa216xx7cbnj3dk4fpz6bwzsn3z-python3.10-zope.event-4.5.0/lib/python3.10/site-packages
                                        /nix/store/2adc7j0xbrgh1ns23jw9qkawn4h8rhyn-python3.10-gevent-21.12.0/lib/python3.10/site-packages
                                        /nix/store/2iyp4a7gyhhhqpgl8v9lza4xz1vfchlc-python3.10-pytest-7.1.1/lib/python3.10/site-packages
                                        /nix/store/6s7ccwfbpqr9zr47igdz405lcqbyqs68-python3.10-pytest-forked-1.4.0/lib/python3.10/site-packages
                                        /nix/store/8np7csyq6hc7w77fmp4k82fh5klpd9p5-python3.10-click-8.1.3/lib/python3.10/site-packages
                                        /nix/store/952hm9j6bw4knwyd2bgallbzv4fb9ibl-python3.10-psutil-5.9.0/lib/python3.10/site-packages
                                        /nix/store/9csj503xyi8dxpk10sggcszaiifz0mkr-python3.10-charset-normalizer-2.0.12/lib/python3.10/site-packages
                                        /nix/store/9i0k6fxy5f94x8bzapxhgklxrfkr2zsi-python3.10-apipkg-2.1.0/lib/python3.10/site-packages
                                        /nix/store/a9v6q1279prpkwf74wg5sqpfjmrlxvj1-python3.10-requests-2.27.1/lib/python3.10/site-packages
                                        /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
                                        /nix/store/dnf4m47zb1spp00l33d4qkmga5mzsd3d-python3.10-typing-extensions-4.1.1/lib/python3.10/site-packages
                                        /nix/store/dz0kq6gx8f0xvxakbrxsq8aj8fiy56dr-python3.10-pyparsing-3.0.9/lib/python3.10/site-packages
                                        /nix/store/f08yg4yvf8k0lkhv2lzm1zxz7wr917aq-python3.10-py-1.11.0/lib/python3.10/site-packages
                                        /nix/store/f69l64g1ygjdpaab36kbq047x2bgbynw-python3.10-tomli-2.0.1/lib/python3.10/site-packages
                                        /nix/store/fi56imky1jfrn13fjhqn02m4y28x28rq-python3.10-zope.interface-5.4.0/lib/python3.10/site-packages
                                        /nix/store/fj9a59x1649527109lfmxqfx3yap2g8v-python3.10-pytest-xdist-2.5.0/lib/python3.10/site-packages
                                        /nix/store/fsfg0dl228x9nyvxv6wqlp8b8q5r9zza-python3.10-iniconfig-1.1.1/lib/python3.10/site-packages
                                        /nix/store/gj7sj2j8lnyyc5s5qysf5cacq0zdls22-python3.10-asgiref-3.5.0/lib/python3.10/site-packages
                                        /nix/store/gqpgmszn07888dap3l04vp9f9ngf5fxf-python3.10-setuptools-61.2.0/lib/python3.10/site-packages
                                        /nix/store/hdzkvda4f5dy4i8avsn1s0vyn6yqy5ya-python3.10-pysocks-1.7.1/lib/python3.10/site-packages
                                        /nix/store/hwd3ifyc4jl4lz5n0la4pwhwgv6n71v8-python3.10-chardet-4.0.0/lib/python3.10/site-packages
                                        /nix/store/ibi20lcwfccirwqxrawxyfzyg9ci90gy-python3.10-sqlparse-0.4.2/lib/python3.10/site-packages
                                        /nix/store/iiwzpr9i1vnrplgbf3kgcqcd3imw4r40-python3.10-pluggy-1.0.0/lib/python3.10/site-packages
                                        /nix/store/j3swhxhn86hxz7bp508ck0qdx15j5p67-python3.10-pip-22.1.2/lib/python3.10/site-packages
                                        /nix/store/j45pwx6w87s654cc8dqyp0aqw2dy0wvn-python3.10-idna-3.3/lib/python3.10/site-packages
                                        /nix/store/jsjnkxcrifarbyn4d8s4xvs81jfha642-python3.10-babel-2.10.1/lib/python3.10/site-packages
                                        /nix/store/kr2d7pfq3nh0qxkfyhw31gkgbg0slc1p-python3.10-async-timeout-4.0.2/lib/python3.10/site-packages
                                        /nix/store/lgvd64fj2in2yfcs0znm4shgdyxjz264-python3.10-brotli-1.0.9/lib/python3.10/site-packages
                                        /nix/store/ljb0crbn8gh94w5y3fccbh396mi1h1kv-python3.10-python-dotenv-0.20.0/lib/python3.10/site-packages
                                        /nix/store/lsv820g09bpma3l5xir8c1vgk1phjchr-python3.10-debugpy-1.6.0/lib/python3.10/site-packages
                                        /nix/store/nydg06iywrxy31chb6a4y2pmlbncbcky-python3.10-werkzeug-2.1.2/lib/python3.10/site-packages
                                        /nix/store/p56n6rh60h7l8nld1kc7488bj0mlb5al-python3.10-greenlet-1.1.2/lib/python3.10/site-packages
                                        /nix/store/ph1bw0k725mw5jydr16rcdy75za0rc5x-python3.10-wheel-0.37.1/lib/python3.10/site-packages
                                        /nix/store/phmhqlm1wxnrxjciz6kc6jmvwlxccl0f-python3.10-pytest-timeout-2.1.0/lib/python3.10/site-packages
                                        /nix/store/raqh0pisrdhdym4011cwb4d2rxzsgdc3-python3.10-pytz-2022.1/lib/python3.10/site-packages
                                        /nix/store/rcfjy17gnlj1mpdd94c92j6fn85l3ls2-python3.10-cffi-1.15.0/lib/python3.10/site-packages
                                        /nix/store/sd4a28i8dhdrn6kn5z5kxj49xq6zl6az-python3.10-markupsafe-2.1.1/lib/python3.10/site-packages
                                        /nix/store/sfjc2y5q6x6wa042cpby7gq6m8i72iya-python3.10-packaging-21.3/lib/python3.10/site-packages
                                        /nix/store/vjf4r82wp98b10xh38pf5l4qd4kff59q-python3.10-Flask-2.1.2/lib/python3.10/site-packages
                                        /nix/store/vrynkbr5ygp2rn6cvk0wkiizvasj1nk9-python3.10-brotlicffi-1.0.9.2/lib/python3.10/site-packages
                                        /nix/store/z9gcv6v7iwck9kvpkqmr66s6mml0vjmj-python3.10-pycparser-2.21/lib/python3.10/site-packages
                                        /nix/store/zf6yzjwfk31g8mbpk4qhjg6czxfmkvzj-python3.10-django-3.2.14/lib/python3.10/site-packages
                                        /nix/store/zk6pkxffdh70qldlph1zmms46kdkqq3c-python3.10-attrs-21.4.0/lib/python3.10/site-packages
                                        /nix/store/zwxz54b9lh8hcsv0hza70a923f7n1dsp-python3.10-Jinja2-3.1.2/lib/python3.10/site-packages
              sysconfig.get_path('stdlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10
              sysconfig.get_path('platstdlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10
              sysconfig.get_path('purelib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              sysconfig.get_path('platlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              sysconfig.get_path('include'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/include/python3.10
              sysconfig.get_path('scripts'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin
              sysconfig.get_path('data'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              os.__file__: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/os.py
              threading.__file__: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/threading.py


Notify maintainers

@kira-bruneau

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.6.0, macOS 12.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.8.1`
 - channels(lockejan): `""`
 - channels(root): `"darwin, home-manager-22.05.tar.gz, nixpkgs-22.05-darwin, unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
@lockejan lockejan added 0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin labels Aug 5, 2022
@kira-bruneau
Copy link
Contributor

kira-bruneau commented Aug 11, 2022

It looks like the latest hydra builds are ok:

Is this still a problem for you?

@lockejan
Copy link
Contributor Author

It looks like the latest hydra builds are ok:

Is this still a problem for you?

Yes, still breaks.
Ah, you are linking x86_64 builds and those are indeed working, but I'm referring to aarch64_darwin.
Couldn't find any builds on hydra... but I'm not too familiar with the UI.

My impression is, that there is no successful build, because I'm not hitting the binary cache.
That's what I get, when I attempt to install it now:

=================================== FAILURES ===================================
_____________ test_django_breakpoint_no_multiproc[launch-template] _____________
[gw5] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_______________ test_django_breakpoint_no_multiproc[launch-code] _______________
[gw6] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_____________ test_django_template_exception_no_multiproc[launch] ______________
[gw7] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
___________________ test_django_breakpoint_multiproc[launch] ___________________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_____________ test_django_exception_no_multiproc[launch-unhandled] _____________
[gw1] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
______________ test_django_exception_no_multiproc[launch-handled] ______________
[gw0] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_______________ test_flask_breakpoint_no_multiproc[launch-code] ________________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_____________ test_flask_breakpoint_no_multiproc[launch-template] ______________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
______________ test_flask_template_exception_no_multiproc[launch] ______________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
______________ test_flask_exception_no_multiproc[launch-handled] _______________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
_____________ test_flask_exception_no_multiproc[launch-unhandled] ______________
[gw2] darwin -- Python 3.10.4 /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin/python3.10
:-1: running the test CRASHED with signal 6
=========================== short test summary info ============================
FAILED tests/debugpy/test_django.py::test_django_breakpoint_no_multiproc[launch-template]
FAILED tests/debugpy/test_django.py::test_django_breakpoint_no_multiproc[launch-code]
FAILED tests/debugpy/test_django.py::test_django_template_exception_no_multiproc[launch]
FAILED tests/debugpy/test_django.py::test_django_breakpoint_multiproc[launch]
FAILED tests/debugpy/test_django.py::test_django_exception_no_multiproc[launch-unhandled]
FAILED tests/debugpy/test_django.py::test_django_exception_no_multiproc[launch-handled]
FAILED tests/debugpy/test_flask.py::test_flask_breakpoint_no_multiproc[launch-code]
FAILED tests/debugpy/test_flask.py::test_flask_breakpoint_no_multiproc[launch-template]
FAILED tests/debugpy/test_flask.py::test_flask_template_exception_no_multiproc[launch]
FAILED tests/debugpy/test_flask.py::test_flask_exception_no_multiproc[launch-handled]
FAILED tests/debugpy/test_flask.py::test_flask_exception_no_multiproc[launch-unhandled]
=========== 11 failed, 758 passed, 438 skipped in 561.98s (0:09:21) ============
I+00.788: debugpy and pydevd logs will be under /private/tmp/nix-build-python3.10-debugpy-1.6.0.drv-0/source/tests/_logs/3.10-64

I+00.835: Test environment for tests-53655

          System paths:
              sys.prefix: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              sys.base_prefix: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              sys.real_prefix: <missing>
              site.getsitepackages(): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              site.getusersitepackages(): /homeless-shelter/.local/lib/python3.10/site-packages
              sys.path (site-packages): /nix/store/02s8g68zslfda3p5k7ig7g39n9days6d-python3.10-itsdangerous-2.1.2/lib/python3.10/site-packages
                                        /nix/store/0fqrcfq293smqibgsvpc64bx3w06kajk-python3.10-certifi-2021.10.08/lib/python3.10/site-packages
                                        /nix/store/1a523hcpsn408c929wknhphvpiylar7m-python3.10-urllib3-1.26.9/lib/python3.10/site-packages
                                        /nix/store/1db8bxz4gqv0p734byx077wwb321jvzx-python3.10-execnet-1.9.0/lib/python3.10/site-packages
                                        /nix/store/1imwnkppq3xk652hg935qcrvzyckpbd0-python3.10-debugpy-1.6.0/lib/python3.10/site-packages
                                        /nix/store/290wcsa216xx7cbnj3dk4fpz6bwzsn3z-python3.10-zope.event-4.5.0/lib/python3.10/site-packages
                                        /nix/store/2adc7j0xbrgh1ns23jw9qkawn4h8rhyn-python3.10-gevent-21.12.0/lib/python3.10/site-packages
                                        /nix/store/2iyp4a7gyhhhqpgl8v9lza4xz1vfchlc-python3.10-pytest-7.1.1/lib/python3.10/site-packages
                                        /nix/store/6s7ccwfbpqr9zr47igdz405lcqbyqs68-python3.10-pytest-forked-1.4.0/lib/python3.10/site-packages
                                        /nix/store/8np7csyq6hc7w77fmp4k82fh5klpd9p5-python3.10-click-8.1.3/lib/python3.10/site-packages
                                        /nix/store/952hm9j6bw4knwyd2bgallbzv4fb9ibl-python3.10-psutil-5.9.0/lib/python3.10/site-packages
                                        /nix/store/9csj503xyi8dxpk10sggcszaiifz0mkr-python3.10-charset-normalizer-2.0.12/lib/python3.10/site-packages
                                        /nix/store/9i0k6fxy5f94x8bzapxhgklxrfkr2zsi-python3.10-apipkg-2.1.0/lib/python3.10/site-packages
                                        /nix/store/a9v6q1279prpkwf74wg5sqpfjmrlxvj1-python3.10-requests-2.27.1/lib/python3.10/site-packages
                                        /nix/store/aqr23p2zmvzlv125jxm481jz56hh90ga-python3.10-Flask-2.1.2/lib/python3.10/site-packages
                                        /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
                                        /nix/store/dnf4m47zb1spp00l33d4qkmga5mzsd3d-python3.10-typing-extensions-4.1.1/lib/python3.10/site-packages
                                        /nix/store/dz0kq6gx8f0xvxakbrxsq8aj8fiy56dr-python3.10-pyparsing-3.0.9/lib/python3.10/site-packages
                                        /nix/store/1a523hcpsn408c929wknhphvpiylar7m-python3.10-urllib3-1.26.9/lib/python3.10/site-packages
                                        /nix/store/1db8bxz4gqv0p734byx077wwb321jvzx-python3.10-execnet-1.9.0/lib/python3.10/site-packages
                                        /nix/store/1imwnkppq3xk652hg935qcrvzyckpbd0-python3.10-debugpy-1.6.0/lib/python3.10/site-packages
                                        /nix/store/290wcsa216xx7cbnj3dk4fpz6bwzsn3z-python3.10-zope.event-4.5.0/lib/python3.10/site-packages
                                        /nix/store/2adc7j0xbrgh1ns23jw9qkawn4h8rhyn-python3.10-gevent-21.12.0/lib/python3.10/site-packages
                                        /nix/store/2iyp4a7gyhhhqpgl8v9lza4xz1vfchlc-python3.10-pytest-7.1.1/lib/python3.10/site-packages
                                        /nix/store/6s7ccwfbpqr9zr47igdz405lcqbyqs68-python3.10-pytest-forked-1.4.0/lib/python3.10/site-packages
                                        /nix/store/8np7csyq6hc7w77fmp4k82fh5klpd9p5-python3.10-click-8.1.3/lib/python3.10/site-packages
                                        /nix/store/952hm9j6bw4knwyd2bgallbzv4fb9ibl-python3.10-psutil-5.9.0/lib/python3.10/site-packages
                                        /nix/store/9csj503xyi8dxpk10sggcszaiifz0mkr-python3.10-charset-normalizer-2.0.12/lib/python3.10/site-packages
                                        /nix/store/9i0k6fxy5f94x8bzapxhgklxrfkr2zsi-python3.10-apipkg-2.1.0/lib/python3.10/site-packages
                                        /nix/store/a9v6q1279prpkwf74wg5sqpfjmrlxvj1-python3.10-requests-2.27.1/lib/python3.10/site-packages
                                        /nix/store/aqr23p2zmvzlv125jxm481jz56hh90ga-python3.10-Flask-2.1.2/lib/python3.10/site-packages
                                        /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
                                        /nix/store/dnf4m47zb1spp00l33d4qkmga5mzsd3d-python3.10-typing-extensions-4.1.1/lib/python3.10/site-packages
                                        /nix/store/dz0kq6gx8f0xvxakbrxsq8aj8fiy56dr-python3.10-pyparsing-3.0.9/lib/python3.10/site-packages
                                        /nix/store/f08yg4yvf8k0lkhv2lzm1zxz7wr917aq-python3.10-py-1.11.0/lib/python3.10/site-packages
                                        /nix/store/f69l64g1ygjdpaab36kbq047x2bgbynw-python3.10-tomli-2.0.1/lib/python3.10/site-packages
                                        /nix/store/fi56imky1jfrn13fjhqn02m4y28x28rq-python3.10-zope.interface-5.4.0/lib/python3.10/site-packages
                                        /nix/store/fj9a59x1649527109lfmxqfx3yap2g8v-python3.10-pytest-xdist-2.5.0/lib/python3.10/site-packages
                                        /nix/store/fsfg0dl228x9nyvxv6wqlp8b8q5r9zza-python3.10-iniconfig-1.1.1/lib/python3.10/site-packages
                                        /nix/store/gj7sj2j8lnyyc5s5qysf5cacq0zdls22-python3.10-asgiref-3.5.0/lib/python3.10/site-packages
                                        /nix/store/gqpgmszn07888dap3l04vp9f9ngf5fxf-python3.10-setuptools-61.2.0/lib/python3.10/site-packages
                                        /nix/store/hdzkvda4f5dy4i8avsn1s0vyn6yqy5ya-python3.10-pysocks-1.7.1/lib/python3.10/site-packages
                                        /nix/store/hwd3ifyc4jl4lz5n0la4pwhwgv6n71v8-python3.10-chardet-4.0.0/lib/python3.10/site-packages
                                        /nix/store/ibi20lcwfccirwqxrawxyfzyg9ci90gy-python3.10-sqlparse-0.4.2/lib/python3.10/site-packages
                                        /nix/store/iiwzpr9i1vnrplgbf3kgcqcd3imw4r40-python3.10-pluggy-1.0.0/lib/python3.10/site-packages
                                        /nix/store/j3swhxhn86hxz7bp508ck0qdx15j5p67-python3.10-pip-22.1.2/lib/python3.10/site-packages
                                        /nix/store/j45pwx6w87s654cc8dqyp0aqw2dy0wvn-python3.10-idna-3.3/lib/python3.10/site-packages
                                        /nix/store/jsjnkxcrifarbyn4d8s4xvs81jfha642-python3.10-babel-2.10.1/lib/python3.10/site-packages
                                        /nix/store/kr2d7pfq3nh0qxkfyhw31gkgbg0slc1p-python3.10-async-timeout-4.0.2/lib/python3.10/site-packages
                                        /nix/store/lgvd64fj2in2yfcs0znm4shgdyxjz264-python3.10-brotli-1.0.9/lib/python3.10/site-packages
                                        /nix/store/nydg06iywrxy31chb6a4y2pmlbncbcky-python3.10-werkzeug-2.1.2/lib/python3.10/site-packages
                                        /nix/store/p56n6rh60h7l8nld1kc7488bj0mlb5al-python3.10-greenlet-1.1.2/lib/python3.10/site-packages
                                        /nix/store/pbacklzrd27dxdc1bbd9dqhyhc451l8c-python3.10-python-dotenv-0.20.0/lib/python3.10/site-packages
                                        /nix/store/ph1bw0k725mw5jydr16rcdy75za0rc5x-python3.10-wheel-0.37.1/lib/python3.10/site-packages
                                        /nix/store/phmhqlm1wxnrxjciz6kc6jmvwlxccl0f-python3.10-pytest-timeout-2.1.0/lib/python3.10/site-packages
                                        /nix/store/raqh0pisrdhdym4011cwb4d2rxzsgdc3-python3.10-pytz-2022.1/lib/python3.10/site-packages
                                        /nix/store/rcfjy17gnlj1mpdd94c92j6fn85l3ls2-python3.10-cffi-1.15.0/lib/python3.10/site-packages
                                        /nix/store/sd4a28i8dhdrn6kn5z5kxj49xq6zl6az-python3.10-markupsafe-2.1.1/lib/python3.10/site-packages
                                        /nix/store/sfjc2y5q6x6wa042cpby7gq6m8i72iya-python3.10-packaging-21.3/lib/python3.10/site-packages
                                        /nix/store/vrynkbr5ygp2rn6cvk0wkiizvasj1nk9-python3.10-brotlicffi-1.0.9.2/lib/python3.10/site-packages
                                        /nix/store/z9gcv6v7iwck9kvpkqmr66s6mml0vjmj-python3.10-pycparser-2.21/lib/python3.10/site-packages
                                        /nix/store/zf6yzjwfk31g8mbpk4qhjg6czxfmkvzj-python3.10-django-3.2.14/lib/python3.10/site-packages
                                        /nix/store/zk6pkxffdh70qldlph1zmms46kdkqq3c-python3.10-attrs-21.4.0/lib/python3.10/site-packages
                                        /nix/store/zwxz54b9lh8hcsv0hza70a923f7n1dsp-python3.10-Jinja2-3.1.2/lib/python3.10/site-packages
              sysconfig.get_path('stdlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10
              sysconfig.get_path('platstdlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10
              sysconfig.get_path('purelib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              sysconfig.get_path('platlib'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/site-packages
              sysconfig.get_path('include'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/include/python3.10
              sysconfig.get_path('scripts'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/bin
              sysconfig.get_path('data'): /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4
              os.__file__: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/os.py
              threading.__file__: /nix/store/cpi7n4xazgsx7ksmmr0y757jz6bx73d7-python3-3.10.4/lib/python3.10/threading.py

@lockejan lockejan changed the title Python3Packages.debugpy build error under darwin Python3Packages.debugpy build error under aarch64-darwin Aug 13, 2022
@kira-bruneau
Copy link
Contributor

kira-bruneau commented Aug 13, 2022

Ah, you are linking x86_64 builds and those are indeed working, but I'm referring to aarch64_darwin.

Oh oops! Yeah I only have an x86_64 mac to test on and Hydra uses a separate branch and jobset for aarch64: https://hydra.nixos.org/jobset/nixpkgs/nixpkgs-unstable-aarch64-darwin.

It looks like the failure started happening in the upgrade from 1.5.1 -> 1.6.0. I'm assuming something broke upstream? They don't officially support aarch64 platforms, the only reason why it works is because we remove the precompiled binaries and build them from source. I'm not exactly sure why aarch64-linux would be ok though, and not darwin.

Does the package build if you try nixpkgs commit 5f6a4fb8a7974aacdacb0a11566b3a35376cca49 (the commit before v1.6.0)?

nix-build https://github.com/NixOS/nixpkgs/archive/5f6a4fb8a7974aacdacb0a11566b3a35376cca49.tar.gz -A python3Packages.debugpy --check

@lockejan
Copy link
Contributor Author

Ah, you are linking x86_64 builds and those are indeed working, but I'm referring to aarch64_darwin.

Oh oops! Yeah I only have an x86_64 mac to test on and Hydra uses a separate branch and jobset for aarch64: https://hydra.nixos.org/jobset/nixpkgs/nixpkgs-unstable-aarch64-darwin.

It looks like the failure started happening in the upgrade from 1.5.1 -> 1.6.0. I'm assuming something broke upstream? They don't officially support aarch64 platforms, the only reason why it works is because we remove the precompiled binaries and build them from source. I'm not exactly sure why aarch64-linux would be ok though, and not darwin.

Does the package build if you try nixpkgs commit 5f6a4fb8a7974aacdacb0a11566b3a35376cca49 (the commit before v1.6.0)?

nix-build https://github.com/NixOS/nixpkgs/archive/5f6a4fb8a7974aacdacb0a11566b3a35376cca49.tar.gz -A python3Packages.debugpy --check

Nope, it doesn't.

=================================== FAILURES ===================================
�[31m�[1m_________________________ tests/debugpy/test_django.py _________________________�[0m
[gw0] darwin -- Python 3.9.10 /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/bin/python3.9
worker 'gw0' crashed while running 'tests/debugpy/test_django.py::test_django_breakpoint_multiproc[launch]'
=========================== short test summary info ============================
FAILED tests/debugpy/test_django.py::test_django_breakpoint_multiproc[launch]
�[31m============ �[31m�[1m1 failed�[0m, �[32m767 passed�[0m, �[33m438 skipped�[0m�[31m in 99.02s (0:01:39)�[0m�[31m =============�[0m
I+00.783: debugpy and pydevd logs will be under /private/tmp/nix-build-python3.9-debugpy-1.5.1.drv-0/source/tests/_logs/3.9-64

I+00.922: Test environment for tests-55985
          
          System paths:
              sys.prefix: /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10
              sys.base_prefix: /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10
              sys.real_prefix: <missing>
              site.getsitepackages(): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/site-packages
              site.getusersitepackages(): /homeless-shelter/.local/lib/python3.9/site-packages
              sys.path (site-packages): /nix/store/02m9p4ijzy6v308qknz0wycf7wp9wq3j-python3.9-gevent-21.12.0/lib/python3.9/site-packages
                                        /nix/store/0kwi8y88aw9kgb9n9sshy1j5xa09dcm9-python3.9-Flask-2.0.2/lib/python3.9/site-packages
                                        /nix/store/0m2mfyx9w6gnpbivm91drix9jvc1sd02-python3.9-toml-0.10.2/lib/python3.9/site-packages
                                        /nix/store/0m4gy29p5wpwfzfka0k9cjjv6nq927zp-python3.9-wheel-0.37.1/lib/python3.9/site-packages
                                        /nix/store/12lgv6w7l9vhf1ni4kk6ndk571b7rvki-python3.9-pluggy-1.0.0/lib/python3.9/site-packages
                                        /nix/store/1wpa3xw1g6v5b4rmpl9mpxprwcy378fj-python3.9-pip-21.3.1/lib/python3.9/site-packages
                                        /nix/store/1zgp59c6l846iacif3fhqcahdfh4h384-python3.9-brotli-1.0.9/lib/python3.9/site-packages
                                        /nix/store/4dzwjhvmrksz16lk6r3sva2rdipjlsx4-python3.9-pytest-xdist-2.5.0/lib/python3.9/site-packages
                                        /nix/store/4w438n69fzf6rmc8rml3yfch4b0m6k6p-python3.9-brotlicffi-1.0.9.2/lib/python3.9/site-packages
                                        /nix/store/50hxhpbid5d4y6dnx3y3k4l03arkm7vr-python3.9-pytz-2021.3/lib/python3.9/site-packages
                                        /nix/store/6ph7j9msm2ld8kzgsq524x33nblajlxq-python3.9-markupsafe-2.0.1/lib/python3.9/site-packages
                                        /nix/store/7365rncchaqbfzbxqhmw8v9iz1f5kwri-python3.9-charset-normalizer-2.0.12/lib/python3.9/site-packages
                                        /nix/store/7da9cm5lphvh9lf9qfsra9wsd5jmf368-python3.9-apipkg-2.1.0/lib/python3.9/site-packages
                                        /nix/store/7m4gsib601ji6lq87565bfpxrwvvqaqm-python3.9-debugpy-1.5.1/lib/python3.9/site-packages
                                        /nix/store/7vb42kd6m7in6dqfqqmnqhhlllkkr63a-python3.9-certifi-2021.10.08/lib/python3.9/site-packages
                                        /nix/store/801bp1l7461lpcq0sw569savhz3zsb46-python3.9-greenlet-1.1.2/lib/python3.9/site-packages
                                        /nix/store/8maaksmmcyl2g7vza2vg7ca22vdzyb6j-python3.9-werkzeug-2.0.2/lib/python3.9/site-packages
                                        /nix/store/aw8y4amhlfa0qxk1r3340m1ag5ldaig3-python3.9-psutil-5.9.0/lib/python3.9/site-packages
                                        /nix/store/bvykvap3yv9m5la4yfin5f17gzpm7mv9-python3.9-pyparsing-3.0.6/lib/python3.9/site-packages
                                        /nix/store/c7i7ddy1xaw06pzqiwnp1b3pxrv77qp9-python3.9-pysocks-1.7.1/lib/python3.9/site-packages
                                        /nix/store/ch22klwjhm1yparjxh7ykpyz78pj6c60-python3.9-async-timeout-4.0.2/lib/python3.9/site-packages
                                        /nix/store/cq0iff42i4diglphsjrhpmh5kv0i6k3i-python3.9-asgiref-3.4.1/lib/python3.9/site-packages
                                        /nix/store/d1yzyf4kl671fi0i41s2s08kb83ixs24-python3.9-iniconfig-1.1.1/lib/python3.9/site-packages
                                        /nix/store/g4x4878ix95lvqw0gq5n4l1ga9j0kyc8-python3.9-attrs-21.4.0/lib/python3.9/site-packages
                                        /nix/store/gxys9k9w8gb5ylzsz76swnjirxky4y00-python3.9-packaging-21.3/lib/python3.9/site-packages
                                        /nix/store/hhk6piml789gyy6mdpgwr3y88pzhg0h3-python3.9-python-dotenv-0.19.2/lib/python3.9/site-packages
                                        /nix/store/hn14rnkzajmb70hsz4493dx80a6c7wd4-python3.9-cffi-1.15.0/lib/python3.9/site-packages
                                        /nix/store/i1syy3g1frrwv2bcad0mxxhhqf7qz2y6-python3.9-typing-extensions-4.0.1/lib/python3.9/site-packages
                                        /nix/store/i3kz74vr0n0mxm4nk3x94ph8g080jv47-python3.9-django-3.2.12/lib/python3.9/site-packages
                                        /nix/store/ikh0gccc4zc8fc9rh5w3cmk8za9wv2gx-python3.9-zope.interface-5.4.0/lib/python3.9/site-packages
                                        /nix/store/iycn7y3fr6dfl25gdg7kjnd4m1q17jpp-python3.9-Jinja2-3.0.3/lib/python3.9/site-packages
                                        /nix/store/j9snp1h9fpa4i5qvyb0rrfyrvszvbdym-python3.9-atomicwrites-1.4.0/lib/python3.9/site-packages
                                        /nix/store/jslv8y1jxixfb1zrcf72wlxb5c1lvimy-python3.9-six-1.16.0/lib/python3.9/site-packages
                                        /nix/store/k4jnv0kqcp9diqsqr224j69lbynwbrwg-python3.9-urllib3-1.26.8/lib/python3.9/site-packages
                                        /nix/store/l2920zwgri0nhr3d1982lpyl6325hb76-python3.9-more-itertools-8.12.0/lib/python3.9/site-packages
                                        /nix/store/lyi20a21bq4b44sdqy16sgkysyjqwmz8-python3.9-py-1.11.0/lib/python3.9/site-packages
                                        /nix/store/m28x8g4fbm5g8d3ck02v4678dfja4qvs-python3.9-itsdangerous-2.0.1/lib/python3.9/site-packages
                                        /nix/store/m34karvy3hsby41rg1016rgwjdmjiklv-python3.9-requests-2.27.1/lib/python3.9/site-packages
                                        /nix/store/mpbad2f182b71qcb4sdd2m0f1p1w5isf-python3.9-setuptools-57.2.0/lib/python3.9/site-packages
                                        /nix/store/mq15vnx91rm5vzdkf1qnixs5p9k5py2g-python3.9-pytest-6.2.5/lib/python3.9/site-packages
                                        /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/site-packages
                                        /nix/store/qm8kn7bs8pc24yzfb99gidd9h5lzq3ca-python3.9-idna-3.3/lib/python3.9/site-packages
                                        /nix/store/qswbgxick80v1w9d5z9lp4rl92v2a4sw-python3.9-pytest-forked-1.4.0/lib/python3.9/site-packages
                                        /nix/store/rjrnbn5wlnwk6i2i0al8xw929h637x44-python3.9-wcwidth-0.2.5/lib/python3.9/site-packages
                                        /nix/store/rl722yhnsgnaqz1q34m79j8a1y6rf6qh-python3.9-pytest-timeout-2.0.2/lib/python3.9/site-packages
                                        /nix/store/rycipkiidiqvxdd15vrlwvw0cpqq36l5-python3.9-chardet-4.0.0/lib/python3.9/site-packages
                                        /nix/store/sbn6xy3yl9v28dkx1782s1377jkl6k90-python3.9-click-8.0.3/lib/python3.9/site-packages
                                        /nix/store/sfa6445v15xs8vwxmkmh3ms2gpdaq4zm-python3.9-Babel-2.9.1/lib/python3.9/site-packages
                                        /nix/store/sg9fc1sxd4pwb6h3a3k04b9f6y5p6v49-python3.9-pycparser-2.21/lib/python3.9/site-packages
                                        /nix/store/w3q70grj2n7ry65hrh8lg4wkkg3ax7j9-python3.9-sqlparse-0.4.2/lib/python3.9/site-packages
                                        /nix/store/wpq9fzad3cjbj8vgw56z5y4mgpzrihw3-python3.9-zope.event-4.5.0/lib/python3.9/site-packages
                                        /nix/store/y3hxzhhsbb7dpwv7w0hsr4y1hfq0as8s-python3.9-execnet-1.9.0/lib/python3.9/site-packages
              sysconfig.get_path('stdlib'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9
              sysconfig.get_path('platstdlib'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9
              sysconfig.get_path('purelib'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/site-packages
              sysconfig.get_path('platlib'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/site-packages
              sysconfig.get_path('include'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/include/python3.9
              sysconfig.get_path('scripts'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/bin
              sysconfig.get_path('data'): /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10
              os.__file__: /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/os.py
              threading.__file__: /nix/store/mqdppmn4n37dkqwx71g88a8pa5h676gj-python3-3.9.10/lib/python3.9/threading.py

I'm not at my aarch64-darwin machine for a few days. Meaning I can't bisect any further now, but will do once I'm back.

@kira-bruneau
Copy link
Contributor

I doubt this will make a difference, but debugpy was recently updated to 1.6.3. It looks like hydra still hasn't gotten around to building it yet: https://hydra.nixos.org/eval/1776603?filter=debugpy&compare=1776531&full=

@lockejan
Copy link
Contributor Author

I doubt this will make a difference, but debugpy was recently updated to 1.6.3. It looks like hydra still hasn't gotten around to building it yet: https://hydra.nixos.org/eval/1776603?filter=debugpy&compare=1776531&full=

Yeah, it doesn't make a difference on my machine as well. 😬

@arkivm
Copy link
Contributor

arkivm commented Sep 22, 2022

No upstream issue found. But I found this kevlened/pytest-parallel#93 which suggests a fix.
I tested with the below patch. Test passes fine on aarch64-darwin.

diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix
index ca7e2d92010..5161fd589b3 100644
--- a/pkgs/development/python-modules/debugpy/default.nix
+++ b/pkgs/development/python-modules/debugpy/default.nix
@@ -80,6 +80,10 @@ buildPythonPackage rec {
     requests
   ];

+  preCheck = lib.optionals stdenv.isDarwin ''
+    export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
+  '';
+
   # Override default arguments in pytest.ini
   pytestFlagsArray = [
     "--timeout=0"

@fmoda3
Copy link
Contributor

fmoda3 commented Sep 27, 2022

I can confirm, that the above preCheck solution fixes it for me as well on my M1.

@arkivm
Copy link
Contributor

arkivm commented Sep 27, 2022

Thanks for checking @fmoda3.
Also, let's unset OBJC_DISABLE_INITIALIZE_FORK_SAFETY in postCheck

@fmoda3
Copy link
Contributor

fmoda3 commented Sep 27, 2022

Opened a PR for this: #193254

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

5 participants