Commits

German Larrain  committed c080bcd

docs.installation.troubleshooting: added another case; minor changes.

  • Participants
  • Parent commits 7f02450

Comments (0)

Files changed (2)

File docs/sphinx/source/installation/troubleshooting.rst

 ..
   _troubleshooting_ode_
 
-.. _ode_import_error:
+.. _ode_import_errors:
 
-**Import error**
+**Import error 1**
 
-It means the ``ode`` module could not be imported by the Python interpreter.
+   >>> import ode
+   Traceback (most recent call last):
+     File "<stdin>", line 1, in <module>
+   ImportError: No module named ode
+
+It means the ``ode`` module could not be **found** by the Python interpreter.
+If the module (file ``ode.so``) was built correctly it will be located
+in a directory named something like
+``~/ode-0.12/bindings/python/build/lib.linux-x86_64-2.7/``.
+If that's the case, you only forgot to execute::
+
+   ~/ode-0.12/bindings/python$ sudo python setup.py install
+
+which, among other things, copies ``build/lib.linux-x86_64-2.7/ode.so`` to
+directory ``/usr/local/lib/python2.7/dist-packages``.
+
+**Import error 2**
+
+It means the ``ode`` module could not be **imported** by the Python interpreter.
 
    >>> import ode
    Traceback (most recent call last):

File docs/sphinx/source/installation/ubuntu_debian.rst

 
 .. note::
    Not all users will need to run ``ldconfig`` but it doesn't hurt if you do.
-   See :ref:`ODE Import Error<ode_import_error>` for more information.
+   See :ref:`ODE Import Error<ode_import_errors>` for more information.
 
 
 Debian 7