Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Installation guide for viper-web #2

Open
jdubp opened this issue Nov 21, 2019 · 6 comments
Open

Installation guide for viper-web #2

jdubp opened this issue Nov 21, 2019 · 6 comments

Comments

@jdubp
Copy link

jdubp commented Nov 21, 2019

This is likely due to the project re-alignment mentioned viper-framework/viper#767, but what is the process to install viper-web?

I followed the install instructions for core viper (using pip3 install) and then did a git clone of the viper-web repository into the $HOME/.viper directory. After installing the requirements, when attempting to run viper-web I receive "No module named viper.web" from django.setup().

I suspect it may be due to the location I'm trying to run viper web from?

@jdsnape
Copy link
Contributor

jdsnape commented Nov 21, 2019

I had the same issue - I've fixed it by creating a module called viper_web, and a setup.py script to allow it to be installed. I'm not sure if it's the way the maintainers want to go, but you can see my code here: https://github.com/jdsnape/viper-web

I'll do a PR in case it's helpful

@jrespeto
Copy link

jrespeto commented Jun 2, 2020

I had the same issue - this is how I fixed/setup it up. I tried to symlink it but didn't work.

cd somedir
git clone https://github.com/viper-framework/viper.git
git clone https://github.com/viper-framework/viper-web.git

cp viper-web/viper-web viper/
cp viper-web/web viper/viper/
cp viper-web/manage.py viper/

virtualenv py3
source py3/bin/activate
pip install viper-framework
pip install -r viper-web/requirements.txt

Might need to install someother deps

cd viper
./viper-web

@jrespeto
Copy link

jrespeto commented Jun 2, 2020

There are also two PR's for TemplateSyntaxError

django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag library. Must be one of:
#6

You need to update the index.html Template

@siftuser
Copy link

siftuser commented Sep 3, 2020

I had the same issue - this is how I fixed/setup it up. I tried to symlink it but didn't work.

cd somedir
git clone https://github.com/viper-framework/viper.git
git clone https://github.com/viper-framework/viper-web.git

cp viper-web/viper-web viper/
cp viper-web/web viper/viper/
cp viper-web/manage.py viper/

virtualenv py3
source py3/bin/activate
pip install viper-framework
pip install -r viper-web/requirements.txt

Might need to install someother deps

cd viper
./viper-web

@jrespeto Thanks for putting this together! Followed your instructions to install viper-web. But I get following warning while starting viper or viper-web from within virtualenv. I dont get this error when I run viper without being in virtualenv. Tried update-modules from virtualenv, but no go ... any clue ? Thanks

[!] Something wrong happened while importing the module modules.emailparse: No module named 'olefile'
[!] Something wrong happened while importing the module modules.joesandbox: No module named 'jbxapi'
[!] Something wrong happened while importing the module modules.pdns: No module named 'pypdns'
[!] Something wrong happened while importing the module modules.pehash.pehasher: No module named 'pefile'
[!] Something wrong happened while importing the module modules.pssl: No module named 'pypssl'
[!] Something wrong happened while importing the module modules.radare: No module named 'r2pipe'
[!] Something wrong happened while importing the module modules.rats.adwind: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.albertino: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.arcom: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.blacknix: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.bluebanana: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.bozok: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.cybergate: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.darkcomet: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.greame: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.jrat: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.lostdoor: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.nanocore: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.pandora: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.unrecom: No module named 'Crypto'
[!] Something wrong happened while importing the module modules.rats.xrat: No module named 'pefile'
[!] Something wrong happened while importing the module modules.rats.xtreme: No module named 'pefile'
[!] Something wrong happened while importing the module modules.sigs_helper.sigs_helper: No module named 'verifysigs'

@siftuser
Copy link

siftuser commented Sep 4, 2020

Thank you Justin! Greatly appreciate your help!
I was able to install all dep. except verifysigs

ERROR: Could not find a version that satisfies the requirement verifysigs (from versions: none)
ERROR: No matching distribution found for verifysigs

However even after successful installation of dependencies, I continue to get same error upon running viper/viper-web. Just to check, I retried install & get this message confirming it's already installed.

Requirement already satisfied: pefile in /home/ubuntu/py3/lib/python3.6/site-packages (2019.4.18)
Requirement already satisfied: future in /home/ubuntu/py3/lib/python3.6/site-packages (from pefile) (0.18.2)

Thanks!

@siftuser
Copy link

siftuser commented Sep 5, 2020

Thanks Justin! This writeup was very useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants