question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

I 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)

  1. Git clone https://github.com/owtf/owtf
  2. cd owtf/
  3. 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:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
r3naissancecommented, May 19, 2018

As always @viyatb, thank you for your time and effort!

0reactions
viyatbcommented, Jul 13, 2018

https://github.com/owtf/owtf/commit/2bf691481a4c9ef950371bf4af4462633499c91a should resolve the Wapiti locale issue. Thanks for reporting this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Python `No such file or directory` Compiler Errors ...
A common error that you may receive when installing Python modules is the No such file or directory error. This error results from...
Read more >
fatal error: Python.h: No such file or directory - Stack Overflow
Looks like you haven't properly installed the header files and static libraries for python dev. Use your package manager to install them system-wide....
Read more >
pip 19.1.1 (get-pip.py) fails to installing egenix-mx-base with a ...
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory. apt-get install python-pip also installs gcc , which is why this error ...
Read more >
Installing Python Modules (Legacy version) — Python 3.11.1 ...
First, the distribution's name and version number will be featured ... Files are installed to the following directories under the installation base as ......
Read more >
Installation — Psycopg 2.9.5 documentation
A message such as error: Python.h: No such file or directory is an indication that the Python headers are missing. The libpq header...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found