viper-framework / viper-web

BSD 3-Clause "New" or "Revised" License
8 stars 9 forks source link

Installation guide for viper-web #2

Open jdubp opened 4 years ago

jdubp commented 4 years ago

This is likely due to the project re-alignment mentioned https://github.com/viper-framework/viper/issues/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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

There are also two PR's for TemplateSyntaxError

django.template.exceptions.TemplateSyntaxError: 'staticfiles' is not a registered tag library. Must be one of: https://github.com/viper-framework/viper-web/pull/6

You need to update the index.html Template

siftuser commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Thanks Justin! This writeup was very useful.