[Bug] edupage api doesnt work on replit
Closed this issue · 5 comments
mrtineu commented
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
- Edupage API version: (e.g. 0.9.6)
- Python version: (e.g. 3.7.1)
BelKed commented
mrtineu commented
thats strange because it installed 0.9.87 even when i installed it trough pip like 5min ago
BelKed commented
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
i did that still nothing maybe something wrong with pip on replit?
mrtineu commented
sorry i got the issue replit is running python 3.8
thanks for your help