🐛 Import error due to http import #28

Closed
opened 2026-02-15 23:16:17 -05:00 by yindo · 4 comments
Owner

Originally created by @mraniki on GitHub (Aug 8, 2023).

../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/__init__.py:5: in
from .client import *
../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/client.py:11: in
from .http import HttpClient


from __future__ import annotations

from typing import (TYPE_CHECKING, Any, Coroutine, Literal, Optional, TypeVar,
                    Union, overload)

import aiohttp
import ulid

from .errors import Forbidden, HTTPError, ServerError
E ImportError: cannot import name 'Forbidden' from 'revolt.errors' (/Users/eridu/miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/errors/__init__.py)

../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/http.py:9: ImportError

http.py seems to not be importing the RevoltError which might be the issue.

Originally created by @mraniki on GitHub (Aug 8, 2023). ../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/__init__.py:5: in <module> from .client import * ../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/client.py:11: in <module> from .http import HttpClient _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ from __future__ import annotations from typing import (TYPE_CHECKING, Any, Coroutine, Literal, Optional, TypeVar, Union, overload) import aiohttp import ulid > from .errors import Forbidden, HTTPError, ServerError E ImportError: cannot import name 'Forbidden' from 'revolt.errors' (/Users/eridu/miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/errors/__init__.py) ../../../miniconda3/envs/dev311/lib/python3.11/site-packages/revolt/http.py:9: ImportError http.py seems to not be importing the RevoltError which might be the issue.
yindo added the unconfirmed bug label 2026-02-15 23:16:17 -05:00
yindo closed this issue 2026-02-15 23:16:18 -05:00
Author
Owner

@Zomatree commented on GitHub (Aug 8, 2023):

How did you install revolt.py?

@Zomatree commented on GitHub (Aug 8, 2023): How did you install revolt.py?
Author
Owner

@mraniki commented on GitHub (Aug 8, 2023):

Installed via pip and trying the example. The venv is on 311

@mraniki commented on GitHub (Aug 8, 2023): Installed via pip and trying the example. The venv is on 311
Author
Owner

@Zomatree commented on GitHub (Aug 8, 2023):

What command did you run to install revolt.py?

@Zomatree commented on GitHub (Aug 8, 2023): What command did you run to install revolt.py?
Author
Owner

@mraniki commented on GitHub (Aug 8, 2023):

pip install 'revolt.py'

@mraniki commented on GitHub (Aug 8, 2023): pip install 'revolt.py'
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#28