Project

General

Profile

FAQ » History » Version 3

Arjen Pander, 2015-03-10 15:58

1 1 Jan Klopper
h1. FAQ
2 1 Jan Klopper
3 1 Jan Klopper
h2. Installation errors:
4 1 Jan Klopper
5 2 Jan Klopper
* *ImportError: No module named uweb*
6 1 Jan Klopper
** mod_python is able to read your router, but stumbles when it tries to import the uweb package. Are you sure the path to your local copy of the us uweb repos is inside the PYTHON_PATH, and that mod_python uses that path?
7 2 Jan Klopper
*** <pre>
8 1 Jan Klopper
<Directory "/var/www/mysite/">
9 1 Jan Klopper
  PythonPath "['/path/to/parent/folder/of/uweb'] + sys.path"
10 1 Jan Klopper
</Directory></pre>
11 2 Jan Klopper
** Python will look in the folder's mentioned in the PythonPath for a folder named uweb when you try to import uweb, so make sure you set it to the folder above uweb.
12 3 Arjen Pander
** When using [[Standalone]], the PYTHON_PATH in your terminal doesn't help in finding the uweb package, resolve this by editing for example your bashrc.
13 2 Jan Klopper
*** in ~/.bashrc <pre>export PYTHONPATH=/path/to/parent/folder/of/uweb</pre>