DataSploit/datasploit

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

n0skill opened this issue · 2 comments

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

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.

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