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

Fail to connect with CAS #207

Closed
nic-Oban opened this issue Jan 20, 2023 · 2 comments
Closed

Fail to connect with CAS #207

nic-Oban opened this issue Jan 20, 2023 · 2 comments

Comments

@nic-Oban
Copy link

Hello @bain3,
I recently tried to use pronotepy to get the timetable as my boy want to build a calendar with his friends to check whether they can eat together or not.
Everything is working fine with the demo example (https://github.com/bain3/pronotepy#usage) and he's able to parse the information he needs.
Unfortunately, when he tries to identify himself with ENT (https://github.com/bain3/pronotepy#ent), we have errors :

Traceback (most recent call last): File "C:\Users\XXX\Downloads\pronote_edt.py", line 18, in <module> client = pronotepy.Client('https://0341794r.index-education.net/pronote/eleve.html', File "C:\Donnees\Développement_info\Pronote\lib\site-packages\pronotepy\clients.py", line 352, in __init__ super().__init__(pronote_url, username, password, ent, qr_code) File "C:\Donnees\Développement_info\Pronote\lib\site-packages\pronotepy\clients.py", line 64, in __init__ cookies = ent(username, password) File "C:\Donnees\Développement_info\Pronote\lib\site-packages\pronotepy\ent\generic_func.py", line 172, in _cas raise ENTLoginError( pronotepy.exceptions.ENTLoginError: Fail to connect with CAS https://cas.mon-ent-occitanie.fr/login?selection=CSES-ENT_parent_eleve : probably wrong login information Process finished with exit code 1

Used code is:
`client = pronotepy.Client('https://0341794r.index-education.net/pronote/eleve.html',
username='n.XXX11',
password='MYPSSWD',
ent=occitanie_montpellier)

check if successfully logged in

if client.logged_in:
print(len(client.discussions())) # printing number of messages that the user has
else:
print('no login')`

We are in Montpellier, using https://www.mon-ent-occitanie.fr/ and EduConnect to login.

Is there something we are doing wrong?
We'll be happy to help with more information if needed.
Thanks a lot for Pronotepy, my boy is having great time with despite this connection problem!!

Have a good day
Nicolas

@bain3
Copy link
Owner

bain3 commented Jan 20, 2023

Hi,
there is a second ENT function for montpellier occitanie_montpellier_educonnect, maybe try that. Otherwise there is currently an open issue #205, maybe it's the same problem? Never mind. That is for teacher access I guess.

Thanks a lot for Pronotepy, my boy is having great time with despite this connection problem!!

Glad to hear! :)

@nic-Oban
Copy link
Author

Hey @bain3,
thanks a lot for your superfast answer!
Working fine now ;)
Have a beautiful afternoon!!!

@bain3 bain3 closed this as completed Jan 20, 2023
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