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

Requirements file does not provide package versions (e.g. Praw requires python >= 3.4) #295

Open
n0skill opened this issue Oct 28, 2019 · 2 comments

Comments

@n0skill
Copy link

n0skill commented Oct 28, 2019

Please provide the following details.

Host System

  • OS : Linux Debian 10
  • Python version (python --version) : python 2.7.16

Error Description

[...]
Collecting praw (from -r requirements.txt (line 19))
  Using cached https://files.pythonhosted.org/packages/f6/df/b42c0a3b86a43a62a46e5b2f07930230ac7719624800a2052218993fb767/praw-6.4.0-py2.py3-none-any.whl
praw requires Python '>=3.4' but the running Python is 2.7.16

This is probably due to the fact that the given requirements.txt does not provide the version required for each package but only the package name. Since pip will always try to get the newest version, and datasploit still runs on python 2.7, the requirements described in the file cannot be installed.
The fix would be to provide the required version in the requirements.txt file

@jojo-man
Copy link

jojo-man commented Nov 12, 2019

The Praw module has been updated to use python 3.5+

In requirements.txt :
Replace the line
"praw"
with
"praw==1.0.7"
to install an older, compatible version.

Also replace
"beautifulsoup"
with
"beautifulsoup==3.2.1"
to avoid a later dependency issue.

@joeyfigaro
Copy link

@jojo-man passes pip install without issue—thanks 👍

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

3 participants