-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
pythonPackages.watchdog 2.0.0 is broken on darwin #113777
Comments
Issue regarding newer SDK #101229. |
I'm also seeing watchdog as a blocker for installing some packages. e.g., installing was-sam-cli is broken:
Any work-around or fix? @lo1tuma, @cillianderoiste.
|
This reverts commit 9c64303. Upstream aws-sam-cli doesn't build on macOS due to a python-watchdog issue. See NixOS/nixpkgs#113777
Still happens with [email protected]: error: Package ‘python3.8-watchdog-2.1.1’ in /nix/store/p6wjywj33a1nj7lnbsb43kar52d6dmvy-nixpkgs-src/pkgs/development/python-modules/watchdog/default.nix:42 is marked as broken, refusing to evaluate.
a) To temporarily allow broken packages, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_BROKEN=1
b) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
make: *** [nix-shell] Error 1 |
Yeah, unfortunately, I think nothing is going to change on this issue until someone has time to upgrade the macOS SDK (#101229) |
That's happening at #121055 as part of https://opencollective.com/nix-macos |
What if the package uses sdk_11 for now? |
Talking to @LnL7, this doesn't seem so simple. The 11 SDK is only available through the Aarch64 stdenv IIUC. So maybe this package doesn't need to be marked broken for Aarch64 Darwin, could someone using native Nix on an M1 mac confirm this? Making it available on x86_64 properly would entail as much work as bumping the SDK to 10.13 does because we have as much as possible depend on the Apple source releases rather than the SDK. So I don't think this'd be an easy workaround. @thefloweringash would be better able to judge how practical the idea is though. |
Here's what I tried, from a checkout of master:
I suspect the problem is trying to |
Maybe it's using impure stubs from the host? Would be cool if someone running Big Sur could confirm or deny whether the above works for them. |
I ran into the same issue on Big Sur. |
Just coming into this but I see this has been merged? Is there anything to be done here? Thanks |
@AlexMoutonNoble, sorry for causing confusion. That PR became just a bump of LLVM and the bit that was merged is just the small bootstrap-tools bump the work depends on. So this has no impact on this issue. You can keep an eye on #116341 or the Nix ❤️ macOS Monthly Discourse thread for updates. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
This also makes the application ready to work on Darwin (but still not working until NixOS#113777 is fixed). Version 1.5.1 did not build on Darwin because libcanberra-gtk3 is broken, and python-vlc is required but only works on Linux. Version 1.6.x fixed the python-vlc requirement to make it optional, so now both libcanberra-gtk3 and python-vlc inputs can be made optional, and enabled by default on Linux. This means that on Darwin there is no support for media, but it is still better than not having the application at all. Unfortunately, until watchdog 2.x is fixed, the Darwin build will be still broken. ----- The setup.py file now parses the setuptools version, so it needs to be patched to fix an error with the 'post0' suffix in the version. Also, setuptools is needed in propagatedBuildInputs to fix the `ModuleNotFoundError: No module named 'pkg_resources'` error.
watchdog 2.0.0 is currently broken NixOS/nixpkgs#113777
I marked this as stale due to inactivity. → More info |
watchdog 2.0.0 is currently broken NixOS/nixpkgs#113777
Package ‘python3.9-watchdog-2.1.6’ in /nix/store/16znkxs25xghynrdrrcf3asczxh3hdm3-nixpkgs-22.05pre346850.9789ed45b75/nixpkgs/pkgs/development/python-modules/watchdog/default.nix:52 is marked as broken, refusing to evaluate. |
Hi all, is there a recommended workaround for this? |
I used to create a Python virtualenv with my I mainly use this for buildInputs = with pythonPackages; [
# Python requirements (enough to get a virtualenv going).
virtualenvwrapper
numpy
];
shellHook = ''
# Allow the use of wheels.
SOURCE_DATE_EPOCH=$(date +%s)
VENV=./.virtualenv
if test ! -d $VENV; then
virtualenv $VENV
fi
source $VENV/bin/activate
# Allow for the environment to pick up packages installed with virtualenv
export PYTHONPATH=$VENV/${python.sitePackages}/:$PYTHONPATH
''; I don't have a mac currently, so can't say if it still works, but you can give it a try. |
Describe the bug
963299d upgraded
pythonPackages.watchdog
to 2.0.0, but this version is broken on darwin:It appears this is because
nixpkgs
' macOS SDK is 10.12, but the symbols that cause problems in 2.0.0 are only available in 10.13+:https://developer.apple.com/documentation/coreservices/kfseventstreameventextendeddatapathkey
The text was updated successfully, but these errors were encountered: