bensteUEM / ChurchToolsAPI

Collection of Python files to use the API for ChurchTools
6 stars 3 forks source link

PIP module installation fails #116

Closed andreheuer closed 2 weeks ago

andreheuer commented 2 weeks ago

Hello! first, thank you for your effort in implementing this API!

Today, I tried to install the API as module in a venv, but unfortunately it fails:

(.venv) andre@MacBook-Air-von-Andre churchtools % pip install git+https://github.com/bensteUEM/ChurchToolsAPI.git@1.6.0#egg=ChurchToolsAPI
Collecting ChurchToolsAPI
  Cloning https://github.com/bensteUEM/ChurchToolsAPI.git (to revision 1.6.0) to /private/var/folders/tv/0jv0htrs2f59svk94j5p5fmh0000gn/T/pip-install-f78y2890/churchtoolsapi_d6325cfdeba94ae5872cff0f2e22151d
  Running command git clone --filter=blob:none --quiet https://github.com/bensteUEM/ChurchToolsAPI.git /private/var/folders/tv/0jv0htrs2f59svk94j5p5fmh0000gn/T/pip-install-f78y2890/churchtoolsapi_d6325cfdeba94ae5872cff0f2e22151d
  Running command git checkout -q 096bbacc9d73c1700d3ad4a6989b51f875f874ec
  Resolved https://github.com/bensteUEM/ChurchToolsAPI.git to commit 096bbacc9d73c1700d3ad4a6989b51f875f874ec
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
  WARNING: Generating metadata for package ChurchToolsAPI produced metadata for project name churchtools-api. Fix your #egg=ChurchToolsAPI fragments.
Discarding git+https://github.com/bensteUEM/ChurchToolsAPI.git@1.6.0#egg=ChurchToolsAPI: Requested churchtools-api from git+https://github.com/bensteUEM/ChurchToolsAPI.git@1.6.0#egg=ChurchToolsAPI has inconsistent name: expected 'churchtoolsapi', but metadata has 'churchtools-api'
ERROR: Could not find a version that satisfies the requirement churchtoolsapi (unavailable) (from versions: 0.0.2rc51.post2, 0.0.2rc54.post1, 0.0.2rc55.post1, 0.0.2rc56.post1, 0.0.2rc58.post1, 0.0.2rc59.post1, 0.0.2rc63.post1, 0.0.2rc65.post1, 0.0.2rc67.post1, 0.0.2rc78.post1, 0.0.2rc81.post1, 0.0.2rc82.post1, 0.0.2rc83.post1)
ERROR: No matching distribution found for churchtoolsapi (unavailable)
(.venv) andre@MacBook-Air-von-Andre churchtools % 

As you can see, there seems to be a (strange?) dependency that cannot be fullfilled.

I am trying to install on a Mac with MacOS 15.0.1 and Python 3.11.5

Thank you André

bensteUEM commented 2 weeks ago

please try pip install git+https://github.com/bensteUEM/ChurchToolsAPI.git@1.6.0#egg=churchtools-api instead.

I've updated release automation and readme accordingly. PS: Feel free to use 1.6.1 which has added functionality :)

andreheuer commented 2 weeks ago

It´s working now, thank you!