I think's so: # pkg version -v | grep py ap24-mod_python35-3.5.0_2 = up-to-date with index py27-Babel-2.3.4 = up-to-date with index py27-Genshi-0.7_1 = up-to-date with index py27-acme-0.12.0,1 = up-to-date with index py27-cffi-1.7.0 = up-to-date with index py27-configargparse-0.11.0 = up-to-date with index py27-configobj-5.0.6_1 = up-to-date with index py27-cryptography-1.7.2 = up-to-date with index py27-dnspython-1.15.0 = up-to-date with index py27-docutils-0.13.1 = up-to-date with index py27-enum34-1.1.6 = up-to-date with index py27-funcsigs-1.0.2 = up-to-date with index py27-idna-2.0 = up-to-date with index py27-ipaddress-1.0.18 = up-to-date with index py27-mock-1.3.0_1 = up-to-date with index py27-ndg_httpsclient-0.4.2 = up-to-date with index py27-openssl-16.2.0 = up-to-date with index py27-parsedatetime-2.1 = up-to-date with index py27-pbr-1.8.1 = up-to-date with index py27-pip-9.0.1 = up-to-date with index py27-psutil-5.2.0_1 = up-to-date with index py27-pyasn1-0.2.2 = up-to-date with index py27-pycparser-2.10 = up-to-date with index py27-pygments-2.1.3_1 = up-to-date with index py27-pyrfc3339-1.0 = up-to-date with index py27-python2-pythondialog-3.4.0 = up-to-date with index py27-pytz-2016.10,1 = up-to-date with index py27-requests-2.11.1 = up-to-date with index py27-setuptools-32.1.0_1 = up-to-date with index py27-six-1.10.0 = up-to-date with index py27-sqlite3-2.7.13_7 = up-to-date with index py27-subversion-1.9.5 = up-to-date with index py27-werkzeug-0.12.1 = up-to-date with index py27-zope.component-4.2.2 = up-to-date with index py27-zope.event-4.1.0 = up-to-date with index py27-zope.interface-4.1.3 = up-to-date with index python2-2_3 = up-to-date with index python27-2.7.13_1 = up-to-date with index
mod_python doesn't have any configurable options, but the make file indicates that it wants Python 2.7 (as installed) # less Makefile # Created by: Hye-Shik Chang # $FreeBSD: head/www/mod_python35/Makefile 422338 2016-09-17 18:13:34Z ohauer $ PORTNAME= mod_python PORTVERSION= 3.5.0 PORTREVISION= 2 CATEGORIES= www python MASTER_SITES= http://dist.modpython.org/dist/ \ LOCAL/ohauer PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} PKGNAMESUFFIX= 35 DIST_SUBDIR= apache2 MAINTAINER= [email protected] COMMENT= Apache module that embeds the Python interpreter within the server LICENSE= APACHE20 CONFLICTS_INSTALL= ap2[24]-mod_python3[^5]* USE_APACHE= 22+ USES= cpe python:2.7 tar:tgz CPE_VENDOR= apache SUB_FILES= pkg-message 270_mod_python.conf.sample GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-apxs="${APXS}" \ --with-python="${PYTHON_CMD}" \ --without-flex LDFLAGS+= -L${LOCALBASE}/lib MAKE_ARGS+= APXS=${APXS} MAKE_ENV= EXPR_COMPAT=yes PLIST_SUB+= PORTVERSION=${PORTVERSION} \ PYTHON_VER=${PYTHON_VER} post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d ${INSTALL_DATA} ${WRKDIR}/270_mod_python.conf.sample ${STAGEDIR}${ PREFIX}/${APACHEETCDIR}/modules.d # You need to install apache & mod_python before you run this regression-test: build ${REINPLACE_CMD} -e 's|%%APACHEMODDIR%%|${APACHEMODDIR}|' ${WRKSRC}/ test/test.py -@${MAKE} test -C ${WRKSRC} On Friday, March 24, 2017 at 10:03:18 PM UTC+3, Logan Anderson wrote: > > A shot in the dark because I haven't really messed with FreeBSD in years.. > > > Is it possible you have python3 on the system and the version of > mod_python is compiled for python3 while you are using python2.7 for Trac? > Or vice versa, is it compiled for 2.7 and you only have python3 installed? > > Just because you are calling mod_python doesn't mean you installed the > module.. have you installed it? > > Im guessing apache on FreeBSD has support for mod_wsgi, that may be a > reasonable alternative to mod_python. This may be why the links you are > seeing reference using that instead. > > > > > ------------------------------ > *From: *"David Gessel" <[email protected] <javascript:>> > *To: *"Trac Users" <[email protected] <javascript:>> > *Sent: *Friday, March 24, 2017 2:30:02 PM > *Subject: *[Trac] Problem with new install on FreeBSD > > 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. > > -- > 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] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/trac-users. > For more options, visit https://groups.google.com/d/optout. > -- 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.
