Opened 16 years ago

Closed 14 years ago

#18878 closed defect (duplicate)

mod_python 3.3.1_1 "Target org.macports.activate returned: Not a directory"

Reported by: francis@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: mod_python

Description

When I try to install mod_python I get the following error:

--->  Fetching mod_python
--->  Verifying checksum(s) for mod_python
--->  Extracting mod_python
--->  Applying patches to mod_python
--->  Configuring mod_python
--->  Building mod_python
--->  Staging mod_python into destroot
Warning: mod_python requests to install files outside the common directory structure!
--->  Installing mod_python @3.3.1_1
########################################################
# to enable mod_python add
#  LoadModule python_module modules/mod_python.so
# to your apache2 config file:
#  /opt/local/apache2/conf/httpd.conf
########################################################
--->  Activating mod_python @3.3.1_1
Error: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

After the error, some of the files (e.g. /opt/local/apache2/modules/mod_python.so) seem to have been created, but mod_python does not work - after adding "LoadModule python_module modules/mod_python.so" to http.conf and restarting apache2 I see the following error repeated in /opt/local/apache2/logs/error_log:

Tue Mar 17 12:39:32 2009] [notice] child pid 2288 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:32 2009] [notice] child pid 2287 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:34 2009] [notice] child pid 2286 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:34 2009] [notice] child pid 2285 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:34 2009] [notice] child pid 2284 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:34 2009] [notice] child pid 2283 exit signal Bus error (10)                                                                             
[Tue Mar 17 12:39:34 2009] [notice] child pid 2282 exit signal Bus error (10)                                                                             

Change History (4)

comment:1 in reply to:  description Changed 16 years ago by francis@…

Replying to francis@…:

After the error, some of the files (e.g. /opt/local/apache2/modules/mod_python.so) seem to have been created, but mod_python does not work - after adding "LoadModule python_module modules/mod_python.so" to http.conf and restarting apache2 I see the following error repeated in /opt/local/apache2/logs/error_log:

I have just discovered that the apache crashes were being caused by mod_python.so being linked against the system Python 2.5 instead of the MacPorts python 2.4 because I hadn't done "sudo python_select python24" so the symlinks in /opt/local/Library/Frameworks/Python.framework weren't set up. However, doing python_select did not fix the original "Not a directory" error and I have also encountered the "Not a directory" error on another machine.

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to mww@…

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.