Skip to content

Old httpcore module crashes frogmouth in 3.14.0rc1 #123

@kevinbowen777

Description

@kevinbowen777

When opening frogmouth(0.9.2) with Python 3.14.0rc1, I get the following traceback:

Traceback (most recent call last): File "/home/kbowen/.local/bin/frogmouth", line 5, in <module> from frogmouth.app.app import run File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/frogmouth/app/__init__.py", line 3, in <module> from .app import run File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/frogmouth/app/app.py", line 10, in <module> from ..data import load_config File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/frogmouth/data/__init__.py", line 3, in <module> from .bookmarks import Bookmark, load_bookmarks, save_bookmarks File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/frogmouth/data/bookmarks.py", line 9, in <module> from httpx import URL File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/httpx/__init__.py", line 2, in <module> from ._api import delete, get, head, options, patch, post, put, request, stream File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/httpx/_api.py", line 4, in <module> from ._client import Client File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/httpx/_client.py", line 30, in <module> from ._transports.default import AsyncHTTPTransport, HTTPTransport File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/httpx/_transports/default.py", line 30, in <module> import httpcore File "/home/kbowen/.local/pipx/venvs/frogmouth/lib/python3.14/site-packages/httpcore/__init__.py", line 139, in <module> setattr(__locals[__name], "__module__", "httpcore") # noqa ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'typing.Union' object has no attribute '__module__' and no __dict__ for setting new attributes. Did you mean: '__reduce__'?

Frogmouth is currently using httpx version 0.24.1. which depends on an older httpcore version 0.17.3.

This AttributeError is fixed in httpcore version 1.0.8.

The latest version of httpx 0.28.1 includes httpcore version 1.0.9.

Thanks for all of your work on this project!

Please let me know if you need additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions