chrismaddalena / ODIN

Automated network asset, email, and social media profile discovery and cataloguing.
https://posts.specterops.io/gathering-open-source-intelligence-bee58de48e05
BSD 3-Clause "New" or "Revised" License
630 stars 114 forks source link

Dependency problems #26

Open JS36 opened 5 years ago

JS36 commented 5 years ago

Hi, thanks for publishing this and I'm very excited to get it working. I'm using Kali linux and followed the steps but when i get to pipenv install i get following error. I tested to run "pipenv --python 3.6 install" also since it looks like its using python 2.7.

pipenv install
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
env/utils.py", line 402, in resolve_deps
    req_dir=req_dir
  File "/usr/local/lib/python2.7/dist-packages/pipenv/utils.py", line 250, in actually_resolve_deps
    req = Requirement.from_line(dep)
  File "/usr/local/lib/python2.7/dist-packages/pipenv/vendor/requirementslib/models/requirements.py", line 704, in from_line
    line, extras = _strip_extras(line)
TypeError: 'module' object is not callable

/usr/local/lib/python2.7/dist-packages/pipenv/_compat.py:113: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/pipenv-SezucC-requirements'>
  warnings.warn(warn_message, ResourceWarning)
chrismaddalena commented 5 years ago

Hey there,

ODIN's Pipfile does enforce Python 3.7. It looks like your pipenv is installed for Python 2.7. Try running:

pip3 install --user pipenv or python3 -m pip install --user pipenv

It looks like support for multiple Python environments is being considered for pipenv (https://github.com/pypa/pipenv/issues/1071). The current suggestion in that report is using virtualenv with pipenv for switching between Python 2.7, 3.6, and 3.7.