CodeReview icon indicating copy to clipboard operation
CodeReview copied to clipboard

pyqgit won’t open (TypeError)

Open simonjwright opened this issue 2 years ago • 0 comments

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

simonjwright avatar Feb 26 '23 11:02 simonjwright