CodeReview
CodeReview copied to clipboard
pyqgit won’t open (TypeError)
MacOS Monterey (12.6.3), Python 3.9 from python.org.
pip install --user codereview goes OK, then (after faffing about trying to start :-) I get
$ pyqgit
Traceback (most recent call last):
File "/Users/simon/Library/Python/3.9/bin/pyqgit", line 5, in <module>
from CodeReview.scripts.pyqgit import main
File "/Users/simon/Library/Python/3.9/lib/python/site-packages/CodeReview/scripts/pyqgit.py", line 23, in <module>
import CodeReview.Common.Logging.Logging as Logging
File "/Users/simon/Library/Python/3.9/lib/python/site-packages/CodeReview/Common/Logging/Logging.py", line 64, in <module>
config_file: str | Path = ConfigInstall.Logging.default_config_file,
TypeError: unsupported operand type(s) for |: 'type' and 'type'
I changed that line to
config_file: str = ConfigInstall.Logging.default_config_file,
and all OK