When python-pygithub is installed, lilac crashes at startup:
Traceback (most recent call last):
File "/usr/bin/lilac", line 52, in <module>
from lilac2.repo import Repo
File "/usr/lib/python3.10/site-packages/lilac2/repo.py", line 14, in <module>
from github import GitHub
ImportError: cannot import name 'GitHub' from 'github' (/usr/lib/python3.10/site-packages/github/__init__.py)
I got this issue from the lilac-git package, and I believe in-tree lilac is also affected.
A simple fix may be using sys.path.insert instead of sys.path.append in lilac. A better fix may be moving vendored stuffs into a winterpy namespace (ex: from winterpy.github import GitHub).
When python-pygithub is installed, lilac crashes at startup:
I got this issue from the lilac-git package, and I believe in-tree lilac is also affected.
A simple fix may be using
sys.path.insert
instead ofsys.path.append
in lilac. A better fix may be moving vendored stuffs into awinterpy
namespace (ex:from winterpy.github import GitHub
).