Bug 246098 - devel/py-pygit2: missing runtime dependency devel/py-cached-property
Summary: devel/py-pygit2: missing runtime dependency devel/py-cached-property
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-01 14:45 UTC by James TD Smith
Modified: 2020-05-01 19:18 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James TD Smith 2020-05-01 14:45:52 UTC
Python 3.6.9 (default, Dec  9 2019, 14:06:32)
[GCC 4.2.1 Compatible FreeBSD Clang 8.0.0 (tags/RELEASE_800/final 356365)] on freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygit2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/pygit2/__init__.py", line 34, in <module>
    from .config import Config
  File "/usr/local/lib/python3.6/site-packages/pygit2/config.py", line 26, in <module>
    from cached_property import cached_property
ModuleNotFoundError: No module named 'cached_property'

According to the changelog, PyGit2 has required cached-property since v1.1.0. 

https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst#110-2020-03-01
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-05-01 19:17:49 UTC
A commit references this bug:

Author: mfechner
Date: Fri May  1 19:17:28 UTC 2020
New revision: 533582
URL: https://svnweb.freebsd.org/changeset/ports/533582

Log:
  Added missing dependency to cached-property which is required since 1.1.0:
  https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst#110-2020-03-01

  PR:		246098
  Reported by:	ahktenzero+freebsd@mohorovi.cc

Changes:
  head/devel/py-pygit2/Makefile
Comment 2 Matthias Fechner freebsd_committer freebsd_triage 2020-05-01 19:18:42 UTC
Thanks a lot!
I added the dependency and import works now.
Thanks for the example to reproduce it.