Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger error during generation #122

Open
MrZoidberg opened this issue Nov 29, 2024 · 1 comment
Open

Logger error during generation #122

MrZoidberg opened this issue Nov 29, 2024 · 1 comment

Comments

@MrZoidberg
Copy link

Got this issue:

Traceback (most recent call last):
File "/root/.local/bin/readmeai", line 5, in
from readmeai.cli.main import main
File "/root/.local/share/pipx/venvs/readmeai/lib/python3.9/site-packages/readmeai/cli/main.py", line 5, in
from readmeai.main import readme_agent
File "/root/.local/share/pipx/venvs/readmeai/lib/python3.9/site-packages/readmeai/main.py", line 13, in
from readmeai.config.settings import ConfigLoader
File "/root/.local/share/pipx/venvs/readmeai/lib/python3.9/site-packages/readmeai/config/settings.py", line 29, in
from readmeai.generators.banner import (
File "/root/.local/share/pipx/venvs/readmeai/lib/python3.9/site-packages/readmeai/generators/banner.py", line 5, in
from readmeai.logger import get_logger
File "/root/.local/share/pipx/venvs/readmeai/lib/python3.9/site-packages/readmeai/logger.py", line 110, in
def get_logger(name: str | None = None) -> structlog.stdlib.BoundLogger:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

got latest version of readmeai

@surya-mu
Copy link

surya-mu commented Nov 30, 2024

I got the same error, it seems type hinting using '|' is not supported, so we'll have to upgrade our existing python to 3.10 or above for it to work, I upgraded my python and pip and it works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants