After install, Python error - No such file or directory: '/usr/local/lib/python2.7/dist-packages/owtf-2.3.2-py2.7.egg/owtf/webapp/build/index.html'
See original GitHub issueI had numerous errors when attempting to install, however, I was able to overcome some of them by changing version numbers of the pip requirements, specifically PyCurl. It also seems the environment for the various scripts is using sh as the shell but I get errors and it seems like it should be using bash. I had to change the scripts to use bash instead and everything installed correctly.
However, now when running python -m owtf, everything starts up fine, but I get this error when browsing to index.html:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 1541, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python2.7/dist-packages/owtf-2.3.2-py2.7.egg/owtf/api/handlers/index.py", line 35, in get
self.render("index.html")
File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 750, in render
html = self.render_string(template_name, **kwargs)
File "/usr/lib/python2.7/dist-packages/tornado/web.py", line 888, in render_string
t = loader.load(template_name)
File "/usr/lib/python2.7/dist-packages/tornado/template.py", line 425, in load
self.templates[name] = self._create_template(name)
File "/usr/lib/python2.7/dist-packages/tornado/template.py", line 452, in _create_template
with open(path, "rb") as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/owtf-2.3.2-py2.7.egg/owtf/webapp/build/index.html'
Possible Solution
The OWTF repo has a structure as owtf/webapp/src/* The server is looking for owtf/webapp/build
I’ve attempted to create symlinks to the location that the server is looking for. I get further and get the ‘Loading Application’ screen but nothing progresses.
Steps to Reproduce (for bugs)
- Git clone https://github.com/owtf/owtf
- cd owtf/
- python setup.py
Your Environment
- Installation method used: git clone, modified some dependencies, then python setup.py install
- Version/branch used: master and develop
- Operating System and version (like Kali, Debian, ArchLinux, etc): Kali 2018.2
- pip/setuptools version: 9.0.1
- sudo access: running as root
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)

Top Related StackOverflow Question
As always @viyatb, thank you for your time and effort!
https://github.com/owtf/owtf/commit/2bf691481a4c9ef950371bf4af4462633499c91a should resolve the Wapiti locale issue. Thanks for reporting this!