From 62b1cce1aecf09f0abfa15667aaa0183c5f79d48 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Mon, 4 Nov 2024 10:36:16 -0500 Subject: [PATCH] Quick fix for werkzeug/flask incompatibility --- environments/environment-Linux.yml | 1 + environments/environment-MAC-apple-silicon.yml | 1 + environments/environment-MAC-intel.yml | 1 + environments/environment-Windows.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/environments/environment-Linux.yml b/environments/environment-Linux.yml index b2e1b052a..00d3773d1 100644 --- a/environments/environment-Linux.yml +++ b/environments/environment-Linux.yml @@ -15,6 +15,7 @@ dependencies: - flask == 2.3.2 - flask-cors == 4.0.0 - flask_restx == 1.1.0 + - werkzeug < 3.0 # werkzeug 3.0 deprecates features used by flask 2.3.2. Remove this when updating flask. # For stability, NeuroConv is pinned at a commit just prior to breaking SpikeInterface compatibility - neuroconv @ git+https://github.com/catalystneuro/neuroconv.git@fa636458aa5c321f1c2c08f6e682b4a52d5a83f3#neuroconv[dandi,compressors,ecephys,ophys,behavior,text] # For stability, pinning SpikeInterface to a version that works with NeuroConv and with tutorial generation diff --git a/environments/environment-MAC-apple-silicon.yml b/environments/environment-MAC-apple-silicon.yml index 6445eff69..fa40a3b4f 100644 --- a/environments/environment-MAC-apple-silicon.yml +++ b/environments/environment-MAC-apple-silicon.yml @@ -21,6 +21,7 @@ dependencies: - flask == 2.3.2 - flask-cors == 4.0.0 - flask_restx == 1.1.0 + - werkzeug < 3.0 # werkzeug 3.0 deprecates features used by flask 2.3.2. Remove this when updating flask. # NOTE: the NeuroConv wheel on PyPI includes sonpy which is not compatible with arm64, so build and install # NeuroConv from GitHub, which will remove the sonpy dependency when building from Mac arm64 # For stability, NeuroConv is pinned at a commit just prior to breaking SpikeInterface compatibility diff --git a/environments/environment-MAC-intel.yml b/environments/environment-MAC-intel.yml index 4d915e6b5..41de8e5ac 100644 --- a/environments/environment-MAC-intel.yml +++ b/environments/environment-MAC-intel.yml @@ -18,6 +18,7 @@ dependencies: - flask == 2.3.2 - flask-cors == 4.0.0 - flask_restx == 1.1.0 + - werkzeug < 3.0 # werkzeug 3.0 deprecates features used by flask 2.3.2. Remove this when updating flask. # For stability, NeuroConv is pinned at a commit just prior to breaking SpikeInterface compatibility - neuroconv @ git+https://github.com/catalystneuro/neuroconv.git@fa636458aa5c321f1c2c08f6e682b4a52d5a83f3#neuroconv[dandi,compressors,ecephys,ophys,behavior,text] # For stability, pinning SpikeInterface to a version that works with NeuroConv and with tutorial generation diff --git a/environments/environment-Windows.yml b/environments/environment-Windows.yml index abb7c0a91..7b04f568e 100644 --- a/environments/environment-Windows.yml +++ b/environments/environment-Windows.yml @@ -18,6 +18,7 @@ dependencies: - flask == 2.3.2 - flask-cors === 3.0.10 - flask_restx == 1.1.0 + - werkzeug < 3.0 # werkzeug 3.0 deprecates features used by flask 2.3.2. Remove this when updating flask. # For stability, NeuroConv is pinned at a commit just prior to breaking SpikeInterface compatibility - neuroconv @ git+https://github.com/catalystneuro/neuroconv.git@fa636458aa5c321f1c2c08f6e682b4a52d5a83f3#neuroconv[dandi,compressors,ecephys,ophys,behavior,text] # For stability, pinning SpikeInterface to a version that works with NeuroConv and with tutorial generation