weixin_39728221
2021-01-02 02:53 阅读 16

mobsf: venv failure

Bug description


$ mobsf -h          
run.sh: line 5: venv/bin/activate: No such file or directory

$ which mobsf
/usr/bin/mobsf

$ head /usr/bin/mobsf
#!/bin/sh
cd /usr/share/mobsf
exec bash run.sh

$ head -6 /usr/share/mobsf/run.sh 
#!/bin/bash
# Dev Server
#. venv/bin/activate && python manage.py runserver
# Prod Server
. venv/bin/activate && gunicorn -b 0.0.0.0:8000 MobSF.wsgi:application --workers=1 --timeout=1800

But there is no venv or .venv directory.

It may remember we changed something about virtualenv for this package.

Steps to reproduce

  • Install
  • Launch

Info for developers

GNU/Linux distribution: ArchLinux + BA repo Tool version: blackarch/mobsf 1:866.a900c9d-1

该提问来源于开源项目:BlackArch/blackarch

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • weixin_39738667 weixin_39738667 2021-01-02 02:53

    We need that https://github.com/kennethreitz/requests/issues/5067 will be fixed first.

    I got it when trying to fix and running testing with blackarch-devtools.

    
    [2019-05-15 02:20:06 +0000] [26797] [INFO] Starting gunicorn 19.9.0
    [2019-05-15 02:20:06 +0000] [26797] [INFO] Listening at: http://0.0.0.0:8000 (26797)
    [2019-05-15 02:20:06 +0000] [26797] [INFO] Using worker: sync
    [2019-05-15 02:20:06 +0000] [26800] [INFO] Booting worker with pid: 26800
    /usr/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
      RequestsDependencyWarning)
    [2019-05-15 02:20:06 +0000] [26797] [INFO] Shutting down: Master
    [2019-05-15 02:20:06 +0000] [26797] [INFO] Reason: Worker failed to boot.
    
    点赞 评论 复制链接分享
  • weixin_39624429 weixin_39624429 2021-01-02 02:53

    That issue is now fixed

    点赞 评论 复制链接分享
  • weixin_39738667 weixin_39738667 2021-01-02 02:53

    Thanks, we are closing it when the package got bumped.

    点赞 评论 复制链接分享
  • weixin_39789979 weixin_39789979 2021-01-02 02:53

    Successfully bumped :p

    点赞 评论 复制链接分享

相关推荐