conda-forge / filesystem-spec-feedstock

A conda-smithy repository for filesystem-spec.
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

2023.3 breaks Python 3.7 #75

Closed hoxbro closed 1 year ago

hoxbro commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

The latest release of fsspec has dropped support for 3.7. Though this has not been done on conda-forge, which means that the package currently fails on import, with this error:

Python 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:21) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fsspec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/shh/miniconda3/envs/tmptmptmp/lib/python3.7/site-packages/fsspec/__init__.py", line 1, in <module>
    from importlib.metadata import entry_points
ModuleNotFoundError: No module named 'importlib.metadata'

mamba create -n tmptmptmp python=3.7 fsspec and then import fsspec

Installed packages

# packages in environment at /home/shh/miniconda3/envs/tmptmptmp:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
ca-certificates           2022.12.7            ha878542_0    conda-forge
fsspec                    2023.3.0           pyhd8ed1ab_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 12.2.0              h65d4601_19    conda-forge
libgomp                   12.2.0              h65d4601_19    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsqlite                 3.40.0               h753d276_0    conda-forge
libstdcxx-ng              12.2.0              h46fd767_19    conda-forge
libzlib                   1.2.13               h166bdaf_4    conda-forge
ncurses                   6.3                  h27087fc_1    conda-forge
openssl                   3.0.8                h0b41bf4_0    conda-forge
pip                       23.0.1             pyhd8ed1ab_0    conda-forge
python                    3.7.12          hf930737_100_cpython    conda-forge
readline                  8.1.2                h0f457ee_0    conda-forge
setuptools                67.5.0             pyhd8ed1ab_0    conda-forge
sqlite                    3.40.0               h4ff8645_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
wheel                     0.38.4             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge

Environment info

active environment : tmptmptmp
    active env location : /home/shh/miniconda3/envs/tmptmptmp
            shell level : 4
       user config file : /home/shh/.condarc
 populated config files : /home/shh/miniconda3/.condarc
                          /home/shh/.condarc
          conda version : 23.1.0
    conda-build version : 3.23.3
         python version : 3.10.9.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.0=0
                          __glibc=2.35=0
                          __linux=6.1.11=0
                          __unix=0=0
       base environment : /home/shh/miniconda3  (writable)
      conda av data dir : /home/shh/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/shh/miniconda3/pkgs
                          /home/shh/.conda/pkgs
       envs directories : /home/shh/miniconda3/envs
                          /home/shh/.conda/envs
               platform : linux-64
             user-agent : conda/23.1.0 requests/2.28.2 CPython/3.10.9 Linux/6.1.11-76060111-generic pop/22.04 glibc/2.35
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
ianthomas23 commented 1 year ago

I can confirm this:

$ conda search -i -f fsspec[channel=conda-forge]==2023.3.0
Loading channels: done
fsspec 2023.3.0 pyhd8ed1ab_0
----------------------------
file name   : fsspec-2023.3.0-pyhd8ed1ab_0.conda
name        : fsspec
version     : 2023.3.0
build       : pyhd8ed1ab_0
build number: 0
size        : 108 KB
license     : BSD-3-Clause
subdir      : noarch
url         : https://conda.anaconda.org/conda-forge/noarch/fsspec-2023.3.0-pyhd8ed1ab_0.conda
md5         : aed37a29e9fb974f6514e3d589c447bb
timestamp   : 2023-03-04 20:16:42 UTC
dependencies: 
  - python >=3.6

It looks like this needs a fix in the meta.yaml where python version is mentioned, and increasing the build number.