WikiTeam / wikiteam

Tools for downloading and preserving wikis. We archive wikis, from Wikipedia to tiniest wikis. As of 2024, WikiTeam has preserved more than 600,000 wikis.
https://github.com/WikiTeam
GNU General Public License v3.0
730 stars 151 forks source link

Pin oauthlib version #432

Open asauber opened 2 years ago

asauber commented 2 years ago

oauthlib > 3.1.0 will not install with Python2 due to the use of type annotations

Pinning oauthlib<=3.1.0 results in a successful install and dumpgenerator.py can be used even with a fresh install of Python 2.7.16 as of May 8, 2022.

Bootstrapping instructions for macOS Big Sur (if you want to use the system Python 2)

python --version # This should output Python 2.x.y
# Get pip installed for your Python 2
# Read and trust the following script before running it
curl -O https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
# Invoking `pip` is likely to be your Python 3 pip, so invoke the module directly
python -m pip install --upgrade "pip < 21.0"
python -m pip install --upgrade -r requirements.txt
python dumpgenerator.py