otsuarez / mkdocs_auth

adding basic authentication to mkdocs site
BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

Not able to install dependencies with pip(Could not find a version that satisfies the requirement pygobject) #3

Closed veerendra2 closed 5 years ago

veerendra2 commented 6 years ago
root@ip-10-0-0-159:/opt/mkdocs_auth# pip3 install -r requirements.txt 
Requirement already satisfied (use --upgrade to upgrade): asn1crypto==0.22.0 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 1))
Downloading/unpacking backports-abc==0.5 (from -r requirements.txt (line 2))
  Downloading backports_abc-0.5-py2.py3-none-any.whl
Downloading/unpacking certifi==2018.1.18 (from -r requirements.txt (line 3))
  Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB): 151kB downloaded
Downloading/unpacking click==6.7 (from -r requirements.txt (line 4))
  Downloading click-6.7-py2.py3-none-any.whl (71kB): 71kB downloaded
Requirement already satisfied (use --upgrade to upgrade): cryptography==1.9 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5))
Downloading/unpacking enum34==1.1.6 (from -r requirements.txt (line 6))
  Downloading enum34-1.1.6-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): idna==2.5 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 7))
Downloading/unpacking ipaddress==1.0.17 (from -r requirements.txt (line 8))
  Downloading ipaddress-1.0.17.tar.gz
  Running setup.py (path:/tmp/pip_build_root/ipaddress/setup.py) egg_info for package ipaddress
Downloading/unpacking Jinja2==2.10 (from -r requirements.txt (line 9))
  Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB): 126kB downloaded
Downloading/unpacking keyring==10.4.0 (from -r requirements.txt (line 10))
  Downloading keyring-10.4.0-py2.py3-none-any.whl
Downloading/unpacking keyrings.alt==2.2 (from -r requirements.txt (line 11))
  Downloading keyrings.alt-2.2-py2.py3-none-any.whl
Downloading/unpacking livereload==2.5.1 (from -r requirements.txt (line 12))
  Downloading livereload-2.5.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/livereload/setup.py) egg_info for package livereload
Downloading/unpacking Markdown==2.6.11 (from -r requirements.txt (line 13))
  Downloading Markdown-2.6.11-py2.py3-none-any.whl (78kB): 78kB downloaded
Downloading/unpacking MarkupSafe==1.0 (from -r requirements.txt (line 14))
  Downloading MarkupSafe-1.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/MarkupSafe/setup.py) egg_info for package MarkupSafe
Downloading/unpacking mkdocs==0.17.2 (from -r requirements.txt (line 15))
  Downloading mkdocs-0.17.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Downloading/unpacking mkdocs-material==2.5.3 (from -r requirements.txt (line 16))
  Downloading mkdocs_material-2.5.3-py2.py3-none-any.whl (120kB): 120kB downloaded
Downloading/unpacking pycrypto==2.6.1 (from -r requirements.txt (line 17))
  Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded
  Running setup.py (path:/tmp/pip_build_root/pycrypto/setup.py) egg_info for package pycrypto
Downloading/unpacking Pygments==2.2.0 (from -r requirements.txt (line 18))
  Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB): 841kB downloaded
Downloading/unpacking pygobject==3.24.1 (from -r requirements.txt (line 19))
  Could not find a version that satisfies the requirement pygobject==3.24.1 (from -r requirements.txt (line 19)) (from versions: 3.27.0, 3.27.1, 3.27.2, 3.27.3, 3.27.4, 3.27.5, 3.28.0, 3.28.1, 3.28.2, 3.29.1.dev0)
Cleaning up...
No distributions matching the version for pygobject==3.24.1 (from -r requirements.txt (line 19))
Storing debug log for failure in /root/.pip/pip.log

Any help?

otsuarez commented 6 years ago

Hi, Python version and packages availability changes depending on the distribution. You're not saying which version you're using but I just confirmed the docker commands are working as expected. I'm guessing Ubuntu 17.10 will work as well. Let me know which OS version you're using and I'll try to reproduce the error in order to provide a fix.

veerendra2 commented 6 years ago

Sorry, I forgot to mention.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

Python3

altcointrading commented 6 years ago

Same issue on Mac. Build fails with version pygobject==3.28.3

otsuarez commented 6 years ago

Hi @veerendra2 / @altcointrading i just updated mkdocs version. That also updated the requirements (there was a vulnerability on one of the packages). I believe that might help with the problems you were having. Please, check the virtualenv setup instructions. I just tested it on Mac with python 2.7 and it worked ok.

chetansurwade commented 6 years ago

@veerendra2 and @altcointrading as @otsuarez mentioned this should work, i had a build failure due to future==3.2.0. I removed the version part in requirements.txt with only 'future' and build was successful, you can give it a shot. @otsuarez Thanks a lot for your efforts, you can close this issue now :-)

veerendra2 commented 6 years ago

Thanks for fix @otsuarez . Unfortunately right I'm not working on mkdocs anymore. Please close the issue, if the issue was fixed.