EdupageAPI / edupage-api

A python library for accessing your Edupage account
https://edupageapi.github.io/edupage-api/
GNU General Public License v3.0
67 stars 13 forks source link

ImportError: cannot import name 'BadCredentialsException' from 'edupage_api' #80

Closed Grilioni closed 1 month ago

Grilioni commented 1 month ago

Hey bro! I get this: from edupage_api import Edupage, BadCredentialsException, LoginDataParsingException ImportError: cannot import name 'BadCredentialsException' from 'edupage_api' when trying to login. what to do?

BelKed commented 1 month ago

You should do it like this:

from edupage_api import Edupage
from edupage_api.exceptions import BadCredentialsException, LoginDataParsingException

I just can't find LoginDataParsingException anywhere in the code... So correctly we shouldn't even import that:

from edupage_api import Edupage
from edupage_api.exceptions import BadCredentialsException
BelKed commented 1 month ago

As I'm searching through the commit history, LoginDataParsingException has been removed in https://github.com/EdupageAPI/edupage-api/pull/31. I'll update the README.md to aviod further confusion :)

Grilioni commented 1 month ago

Ohhh, okaay. Thank you

kind regards, Grigorii Bilibin

On Tue, 1 Oct 2024 at 01:47, BelKed @.***> wrote:

You should do it like this:

from edupage_api import Edupagefrom edupage_api.exceptions import BadCredentialsException, LoginDataParsingException

I just can't find LoginDataParsingException anywhere in the code... So correctly we shouldn't even import that:

from edupage_api import Edupagefrom edupage_api.exceptions import BadCredentialsException

— Reply to this email directly, view it on GitHub https://github.com/EdupageAPI/edupage-api/issues/80#issuecomment-2384308675, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLXPUJQFY6CNUNYV7VIDYWDZZHIJRAVCNFSM6AAAAABPEHAHKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGMYDQNRXGU . You are receiving this because you authored the thread.Message ID: @.***>

Grilioni commented 1 month ago

Thanks man;) I’ll keep contact w/ u

kind regards, Grigorii Bilibin

On Tue, 1 Oct 2024 at 01:56, BelKed @.***> wrote:

As I'm searching through the commit history, LoginDataParsingException has been removed in #31 https://github.com/EdupageAPI/edupage-api/pull/31. I'll update the README.md to aviod further confusion :)

— Reply to this email directly, view it on GitHub https://github.com/EdupageAPI/edupage-api/issues/80#issuecomment-2384317084, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLXPUJXCFF7CUD735YSCOLLZZHJLJAVCNFSM6AAAAABPEHAHKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBUGMYTOMBYGQ . You are receiving this because you authored the thread.Message ID: @.***>

BelKed commented 1 month ago

Feel free to close the issue if is your problem solved :)

Grilioni commented 1 month ago

Yes, sry. Forgot bout that

kind regards, Grigorii Bilibin

On Tue, 1 Oct 2024 at 13:44, BelKed @.***> wrote:

Feel free to close the issue if is your problem solved :)

— Reply to this email directly, view it on GitHub https://github.com/EdupageAPI/edupage-api/issues/80#issuecomment-2385443582, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLXPUJUTN5HNK7GOEHQM4VDZZJ4HBAVCNFSM6AAAAABPEHAHKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBVGQ2DGNJYGI . You are receiving this because you authored the thread.Message ID: @.***>