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.
..




On Saturday, March 25, 2017 at 1:49:50 PM UTC+3, RjOllos wrote:
>
>
>
> On Friday, March 24, 2017 at 11:43:48 AM UTC-7, David Gessel wrote:
>>
>> I'm pretty confident this is a path issue, but I haven't had much luck in 
>> resolving it.  
>>
>> I am getting "500 server error" and looking at my logs I see:
>>
>> [Fri Mar 24 11:10:23.282925 2017] [:error] [pid 21554:tid 34741511168] 
>> [client 
>> xxx.127.65.15:22736] python_handler: Can't get/create interpreter.
>>
>>
>>
>> ImportError: No module named mod_python.apache
>> [Fri Mar 24 11:10:23.282850 2017] [:error] [pid 21554: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']".
>> [Fri Mar 24 11:10:23.282888 2017] [:error] [pid 21554:tid 34741511168] 
>> get_interpreter: no interpreter callback found.
>>
>> My vhost config looks like:
>>
>> <VirtualHost 10.3.69.139:80>
>>     # registrar nic.st
>>     DocumentRoot /usr/local/www/trac
>>     ServerName trac.my.domain
>>     ErrorLog /var/log/trac-error_log
>>     CustomLog /var/log/trac-access_log combined
>>     <Location />
>>         SetHandler mod_python
>>         PythonInterpreter main_interpreter
>>         PythonOption PYTHON_EGG_CACHE /usr/local/www/trac/tmp
>>         PythonPath "sys.path + ['/usr/local/www/trac']"
>>         PythonPath /usr/local/bin/mod_python
>>         PythonHandler trac.web.modpython_frontend
>>         PythonOption TracEnv /usr/local/www/trac
>>         PythonOption TracUriRoot /
>>     </Location>
>> </VirtualHost>
>>
>>
>> I am confident it's a trivial misconfiguration issue, but most answers I 
>> find by googling are along the lines of "why aren't you using WSGIScript 
>>
>> There's an obvious crude attempt to add the path for mod_python 
>> explicitly in my vhost declaration, which didn't help.
>>
>
>
> From: 
>
> http://modpython.org/live/current/doc-html/directives.html#pythonpath
>
> "When multiple PythonPath directives are specified, the effect is not 
> cumulative, last directive will override all previous ones. "
>
> Try combining your PythonPath directives:
> PythonPath "sys.path + ['/usr/local/www/trac', 
> '/usr/local/bin/mod_python']"
>
> - 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.

Reply via email to