But the freeBSD command is "python2" which works. import mod_python works
# python2 Python 2.7.13 (default, Mar 22 2017, 10:45:35) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032 )] on freebsd10 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print(sys.path) ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-freebsd10', '/usr/local/lib/python2.7/lib-tk' , '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload' , '/usr/local/lib/python2.7/site-packages'] >>> On Sunday, March 26, 2017 at 1:08:35 AM UTC+3, David Gessel wrote: > > First step fail! > > Thanks for the diagnostic - good starting point. > > On Sunday, March 26, 2017 at 12:21:40 AM UTC+3, RjOllos wrote: >> >> >> >> On Saturday, March 25, 2017 at 9:52:30 AM UTC-7, David Gessel wrote: >>> >>> Thanks! I tried and >>> # apachectl graceful >>> >>> but no change, though the error log might provide a clue with respect to >>> what paths are still getting called (no change): >>> >>> Enter code here.Sat Mar 25 09:50:25.025855 2017] [:error] [pid 69623:tid >>> 34741511168] make_obcallback: could not import mod_python.apache.\n >>> ImportError: No module named mod_python.apache >>> [Sat Mar 25 09:50:25.026263 2017] [:error] [pid 69623:tid 34741511168] >>> make_obcallback: Python path being used "['/usr/local/lib/python27.zip', >>> '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-freebsd10', >>> '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', >>> '/usr/local/lib/python2.7/lib-dynload']". >>> [Sat Mar 25 09:50:25.026292 2017] [:error] [pid 69623:tid 34741511168] >>> get_interpreter: no interpreter callback found. >>> .. >>> >>> >> >> >> Are you able to?: >> 1. Open python from the terminal by typing "python" >> 2. Import mod_python from the Python interpreter session by typing >> "import mod_python" >> 3. What is the output of sys.path from your Python terminal session? >> >> - Ryan >> > -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
