Skip to content

pyqgit won’t open (TypeError) #54

@simonjwright

Description

@simonjwright

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions