EdupageAPI / edupage-api

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

[Bug] edupage api doesnt work on replit #56

Closed mrtineu closed 1 year ago

mrtineu commented 1 year ago

Describe the bug when i run this i get an error

Your code

from edupage_api import Edupage

edupage = Edupage()

Error message

  File "main.py", line 8, in <module>
    edupage = Edupage()
TypeError: __init__() missing 3 required positional arguments: 'school', 'username', and 'password'

Expected behavior That it will run without any problems

Version

BelKed commented 1 year ago

You're not using the latest version of edupage-api, which is currently 0.10.1

There have been several breaking changes in logging in and much more in 0.9.9 (https://github.com/ivanhrabcak/edupage-api/pull/31)

mrtineu commented 1 year ago

thats strange because it installed 0.9.87 even when i installed it trough pip like 5min ago

BelKed commented 1 year ago

On my computer it installs properly the latest version:

$ pip install edupage-api
Collecting edupage-api
  Downloading edupage_api-0.10.1-py3-none-any.whl (36 kB)
Requirement already satisfied: requests in /usr/local/lib/python3.10/site-packages (from edupage-api) (2.28.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/site-packages (from requests->edupage-api) (2022.6.15)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.10/site-packages (from requests->edupage-api) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/site-packages (from requests->edupage-api) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/site-packages (from requests->edupage-api) (1.26.12)
Installing collected packages: edupage-api
Successfully installed edupage-api-0.10.1

Try running pip install edupage-api --upgrade to upgrade the package.

mrtineu commented 1 year ago

i did that still nothing maybe something wrong with pip on replit?

mrtineu commented 1 year ago

sorry i got the issue replit is running python 3.8 thanks for your help