chrisjbillington / git-nautilus-icons

A nautilus Python extension to overlay icons on files in git repositories
BSD 2-Clause "Simplified" License
43 stars 4 forks source link

Installation fails on ubuntu 22.04 #23

Closed hmaarrfk closed 1 year ago

hmaarrfk commented 1 year ago
11:46 $ pip3 install --user git-nautilus-icons==2.0.3
Collecting git-nautilus-icons==2.0.3
  Using cached git-nautilus-icons-2.0.3.tar.gz (437 kB)
  Preparing metadata (pyproject.toml) ... done
  WARNING: Requested git-nautilus-icons==2.0.3 from https://files.pythonhosted.org/packages/6f/17/647e409d1613f046a727c2daf497cc30546747ee3d4980d794584c1b60fc/git-nautilus-icons-2.0.3.tar.gz#sha256=6fea051ad69e781bd292f4a35c4bae21dd9ce903a9743d74b56f6dc8e3b81d7c, but installing version 0.0.0
Discarding https://files.pythonhosted.org/packages/6f/17/647e409d1613f046a727c2daf497cc30546747ee3d4980d794584c1b60fc/git-nautilus-icons-2.0.3.tar.gz#sha256=6fea051ad69e781bd292f4a35c4bae21dd9ce903a9743d74b56f6dc8e3b81d7c (from https://pypi.org/simple/git-nautilus-icons/): Requested git-nautilus-icons==2.0.3 from https://files.pythonhosted.org/packages/6f/17/647e409d1613f046a727c2daf497cc30546747ee3d4980d794584c1b60fc/git-nautilus-icons-2.0.3.tar.gz#sha256=6fea051ad69e781bd292f4a35c4bae21dd9ce903a9743d74b56f6dc8e3b81d7c has inconsistent version: filename has '2.0.3', but metadata has '0.0.0'
ERROR: Could not find a version that satisfies the requirement git-nautilus-icons==2.0.3 (from versions: 1.1, 1.1.1, 1.1.3, 2.0.0, 2.0.1, 2.0.2, 2.0.3)
ERROR: No matching distribution found for git-nautilus-icons==2.0.3
✘-1 ~ 
11:46 $ pip --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
chrisjbillington commented 1 year ago

Hm, I'm not able to reproduce the problem on a fresh install of Ubuntu 22.04.5, having only installed pip with apt install python3-pip and then run the pip3 install --user git-nautilus-icons==2.0.3 command. This gives for me:

Collecting git-nautilus-icons==2.0.3
  Downloading git-nautilus-icons-2.0.3.tar.gz (437 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: git-nautilus-icons
  Building wheel for git-nautilus-icons (PEP 517): started
  Building wheel for git-nautilus-icons (PEP 517): finished with status 'done'
  Created wheel for git-nautilus-icons: filename=git_nautilus_icons-2.0.3-py3-none-any.whl size=883294 sha256=a54e105b2eefc7fa1c41c9bc9aae8f5623d8b1a6aa0955b2bfa611baaab2c016
  Stored in directory: /tmp/pip-ephem-wheel-cache-lcigs3ks/wheels/58/1d/c9/0af6a6fa3a1e5255e91beb987a53169923d695b157611f310b
Successfully built git-nautilus-icons
Installing collected packages: git-nautilus-icons
Successfully installed git-nautilus-icons-2.0.3

the project does use setuptools_scm to determine the version number at build time, it's not clear to me how all that works, but I'm guessing it's not building the package for you in a way that has setuptools_scm installed as a build dependency. In fact, it kind of looks like for you the wheel is not being built at all. Do you have the wheel package installed? It should be installed as a dependency of pip I would think.

hmaarrfk commented 1 year ago

maybe that is my fault then, i might have disabled build isolation