Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-04-15 Thread Randall Perry
Bryan Blackburn wrote:
 deal with the annoying saved '*.mp_*' files.

 Having problems getting mod_python working and saw this thread.

 Error I'm getting:
 ---  Activating mod_python25 @3.3.1_1
 Error: Target org.macports.activate returned: Not a directory
 Error: Status 1 encountered during processing.

 The 'not a directory' error is the issue mentioned above.  Your problems
 with it linking with the wrong python should be fixed if you upgrade
 mod_python25 to 3.3.1_3, which was improved [1] to link properly with
 MacPorts' python.

 Bryan

Got errors on selfupdate (on tcl/X11), but it got the mod_python patches. On
install, had to force activate, but it's working now.

Thanks a bunch.


-- 
Randall Perry


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-04-13 Thread Randall Perry
Bryan Blackburn wrote:
 On Mon, Mar 30, 2009 at 07:37:15PM -0500, Bill Hernandez said:
 [...]
 ---  Activating mod_python25 @3.3.1_2

 Error: Target org.macports.activate returned: Image error: /opt/local/
 apache2/modules/mod_python.so already exists and does not belong to a
 registered port.  Unable to activate port mod_python25.
 Error: Status 1 encountered during processing.

 That's the bad issue with the 'not a directory' problem, when the old one is
 uninstalled/deactivated, the files aren't actually removed (the error occurs
 before the file list is added to the file map, so port thinks it has no
 files).  This means you have to force the activation of the port, and of
 course deal with the annoying saved '*.mp_*' files.

Having problems getting mod_python working and saw this thread.

Error I'm getting:
---  Activating mod_python25 @3.3.1_1
Error: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

I tried the suggestions offered:
 Try:
  sudo port sync
  sudo port uninstall mod_python25
  sudo port install mod_python25

And did a force install, and got:

Error: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.


The thing is, all the bits for it appear to be in place. I've loaded it
successfully in apache2:
LoadModule python_module modules/mod_python.so

And configured it:

AddHandler python-program .py
PythonHandler mod_python.publisher
 PythonPath ['/opt/local/lib/libpython2.5.dylib',
'/opt/local/lib/python2.5']
 PythonDebug On


But it's looking at the wrong path, despite using the PythonPath directive,
and also trying mod_env (see error below).

Does the macports activation error have anything to do with this, or is
there some other trick to get mod_python/Apache to find the correct path?





[Mon Apr 13 08:31:56 2009] [error] make_obcallback: could not import
mod_python.apache.\n
sys:1: RuntimeWarning: Python C API version mismatch for module _apache:
This Python has API version 1012, module _apache has version 1013.
ImportError: No module named mod_python.apache
[Mon Apr 13 08:31:56 2009] [error] make_obcallback: Python path being used
['/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/si
te-packages/setuptools-0.6c3-py2.3.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site
-packages/SQLAlchemy-0.4.8-py2.3.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat
-darwin', 
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat
-mac', 
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat
-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-
tk', 
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-
dynload', 
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site
-packages', 
'/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python'
].
 

-- 
Randall Perry




___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-04-13 Thread Bryan Blackburn
On Mon, Apr 13, 2009 at 11:35:36AM -0400, Randall Perry said:
 Bryan Blackburn wrote:
  On Mon, Mar 30, 2009 at 07:37:15PM -0500, Bill Hernandez said:
  [...]
  ---  Activating mod_python25 @3.3.1_2
 
  Error: Target org.macports.activate returned: Image error: /opt/local/
  apache2/modules/mod_python.so already exists and does not belong to a
  registered port.  Unable to activate port mod_python25.
  Error: Status 1 encountered during processing.
 
  That's the bad issue with the 'not a directory' problem, when the old one is
  uninstalled/deactivated, the files aren't actually removed (the error occurs
  before the file list is added to the file map, so port thinks it has no
  files).  This means you have to force the activation of the port, and of
  course deal with the annoying saved '*.mp_*' files.
 
 Having problems getting mod_python working and saw this thread.
 
 Error I'm getting:
 ---  Activating mod_python25 @3.3.1_1
 Error: Target org.macports.activate returned: Not a directory
 Error: Status 1 encountered during processing.

The 'not a directory' error is the issue mentioned above.  Your problems
with it linking with the wrong python should be fixed if you upgrade
mod_python25 to 3.3.1_3, which was improved [1] to link properly with
MacPorts' python.

Bryan

[1] - http://trac.macports.org/changeset/49191

[...]
 
 -- 
 Randall Perry
 
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


[2009.30.03](06:46PM) - [roscoe] ~ $ sudo port install mod_python25
Password:

---  Activating mod_python25 @3.3.1_1

ERROR: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

[2009.30.03](06:48PM) - [roscoe] ~ $


I got the same error when I installed clearsilver a few minutes ago.

I am wondering what  I am missing now ?

Bill Hernandez
Plano, Texas
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Rainer Müller
Bill Hernandez wrote:
 [2009.30.03](06:46PM) - [roscoe] ~ $ sudo port install mod_python25
 Password:
 
 ---  Activating mod_python25 @3.3.1_1
 
 ERROR: Target org.macports.activate returned: Not a directory
 Error: Status 1 encountered during processing.
 
 [2009.30.03](06:48PM) - [roscoe] ~ $
 
 
 I got the same error when I installed clearsilver a few minutes ago.
 
 I am wondering what  I am missing now ?

I fixed this error for mod_python25 yesterday.
Try:
  sudo port sync
  sudo port uninstall mod_python25
  sudo port install mod_python25

Rainer
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bill Hernandez


Bill Hernandez wrote:

[2009.30.03](06:46PM) - [roscoe] ~ $ sudo port install mod_python25
Password:

---  Activating mod_python25 @3.3.1_1

ERROR: Target org.macports.activate returned: Not a directory
Error: Status 1 encountered during processing.

[2009.30.03](06:48PM) - [roscoe] ~ $


On Mar 30, 2009, at 7:16 PM, Rainer Müller wrote:


I fixed this error for mod_python25 yesterday.
Try:
 sudo port sync
 sudo port uninstall mod_python25
 sudo port install mod_python25



Rainer,

Thanks for trying to help.

[2009.30.03](07:29PM) - [roscoe] ~ $ sudo port sync
Password:

[2009.30.03](07:30PM) - [roscoe] ~ $ sudo port uninstall mod_python25
---  Deactivating mod_python25 @3.3.1_1
---  Uninstalling mod_python25 @3.3.1_1

[2009.30.03](07:30PM) - [roscoe] ~ $ sudo port clean mod_python25
---  Cleaning mod_python25

[2009.30.03](07:30PM) - [roscoe] ~ $ sudo port install mod_python25
---  Fetching mod_python25
---  Verifying checksum(s) for mod_python25
---  Extracting mod_python25
---  Applying patches to mod_python25
---  Configuring mod_python25
---  Building mod_python25
---  Staging mod_python25 into destroot
Warning: mod_python25 requests to install files outside the common  
directory structure!

---  Installing mod_python25 @3.3.1_2

# 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_python25 @3.3.1_2

Error: Target org.macports.activate returned: Image error: /opt/local/ 
apache2/modules/mod_python.so already exists and does not belong to a  
registered port.  Unable to activate port mod_python25.

Error: Status 1 encountered during processing.

[2009.30.03](07:31PM) - [roscoe] ~ $


___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: mod_python25 install error: Target org.macports.activate returned: Not a directory

2009-03-30 Thread Bryan Blackburn
On Mon, Mar 30, 2009 at 07:37:15PM -0500, Bill Hernandez said:
[...]
 ---  Activating mod_python25 @3.3.1_2

 Error: Target org.macports.activate returned: Image error: /opt/local/ 
 apache2/modules/mod_python.so already exists and does not belong to a  
 registered port.  Unable to activate port mod_python25.
 Error: Status 1 encountered during processing.

That's the bad issue with the 'not a directory' problem, when the old one is
uninstalled/deactivated, the files aren't actually removed (the error occurs
before the file list is added to the file map, so port thinks it has no
files).  This means you have to force the activation of the port, and of
course deal with the annoying saved '*.mp_*' files.

Bryan

[...]
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users