[Pythonmac-SIG] Roundup Issue Tracker

2007-02-28 Thread Samuel M. Smith
Anyone on this list installed the python based roundup issue tracker  
with framework python2.5?

How did you use --prefix or --install_scripts with setup.py?

**
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84005-4108
801-768-2768 voice
801-768-2769 fax
**
The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment
**


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Confused about framework build

2007-02-28 Thread Samuel M. Smith

 For
 example pythonmac has pysqlite2 version 2.2.2 but MacPorts has  
 version
 2.3.3;

 Many things build just fine out of the box with setup.py build or
 easy-install, so updating a few things shouldn't be too hard. If  
 you run
 into issues, you'll get help here. And you may not need the latest  
 anyway.

 can I install the more recent MacPorts version and use it with
 the framework build?

 No. you need to be all Framework or all MacPorts.


I have 4 versions of python on my system,

Apples 2.3 in
/usr/bin/python2.3

Framework MacPython 2.4.4 and 2.5.0 in
/usr/local/bin/python2.4 - ../../../Library/Frameworks/ 
Python.framework/Versions/2.4/bin/python2.4
/usr/local/bin/python2.5 - ../../../Library/Frameworks/ 
Python.framework/Versions/2.5/bin/python2.5
/usr/local/bin/python - ../../../Library/Frameworks/Python.framework/ 
Versions/2.5/bin/python

and DarwinPorts python 2.4.3 in
/opt/local/bin/python2.4

with my execution path
echo $PATH
/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/ 
bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin

the python I get by default when I just type python is framework 2.5  
since that directory is first in my search path
/Library/Frameworks/Python.framework/Versions/Current/bin/python -  
python2.5
If I want something else I just need to be more explicit on the  
command line.

 From what I can tell anything that uses python in DarwinPorts uses a  
path that executes the python in /opt/local/bin so
pythons installed elsewhere in the system don't confuse it.


The way I do it is use MacPorts (DarwinPorts) to use MacPorts to  
install non python libraries like sqlite
and then manually install the python bindings using the framework  
build. Usually
sudo python setup.py build
sudo python setup.py install
works for most simple modules

For example I used Macports to install sqlite3 and then Python2.5 which
has sqlite3 python bindings built in, just

import sqlite3

for python2.4 or python2.5 just (replace python with python2.4 or  
python2.5 if you have both installed)

cd pysqlite-2.3.3
sudo python setup.py build
sudo python setup.py install

works to get the pysqlite bindings. You can have both the sqlite3  
python bindings and the pysqlite bindings
in 2.5 since different modules to bind to sqlite3


For Apache2 and mod_python, I installed using MacPorts which has to   
use  python2.4.3 installed in /opt/...
which it installs automatically as a dependency for mod_python
This does not conflict with the framework builds in /Library/ 
Frameworks/Python.framework/Versions/
But I can't use 2.5 for web development.

So if I want to use 2.5 for web development I either have to figure  
out how to install Apache2 and mod_python from source or wait until  
DarwinPorts does a python2.5 version of mod_python.




___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Confused about framework build

2007-02-28 Thread Bob Ippolito
On 2/28/07, Samuel M. Smith [EMAIL PROTECTED] wrote:
 
  For
  example pythonmac has pysqlite2 version 2.2.2 but MacPorts has
  version
  2.3.3;
 
  Many things build just fine out of the box with setup.py build or
  easy-install, so updating a few things shouldn't be too hard. If
  you run
  into issues, you'll get help here. And you may not need the latest
  anyway.
 
  can I install the more recent MacPorts version and use it with
  the framework build?
 
  No. you need to be all Framework or all MacPorts.
 

 I have 4 versions of python on my system,

 Apples 2.3 in
 /usr/bin/python2.3

 Framework MacPython 2.4.4 and 2.5.0 in
 /usr/local/bin/python2.4 - ../../../Library/Frameworks/
 Python.framework/Versions/2.4/bin/python2.4
 /usr/local/bin/python2.5 - ../../../Library/Frameworks/
 Python.framework/Versions/2.5/bin/python2.5
 /usr/local/bin/python - ../../../Library/Frameworks/Python.framework/
 Versions/2.5/bin/python

 and DarwinPorts python 2.4.3 in
 /opt/local/bin/python2.4

 with my execution path
 echo $PATH
 /Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/
 bin:/opt/local/bin:/bin:/sbin:/usr/bin:/usr/sbin

 the python I get by default when I just type python is framework 2.5
 since that directory is first in my search path
 /Library/Frameworks/Python.framework/Versions/Current/bin/python -
 python2.5
 If I want something else I just need to be more explicit on the
 command line.

  From what I can tell anything that uses python in DarwinPorts uses a
 path that executes the python in /opt/local/bin so
 pythons installed elsewhere in the system don't confuse it.


 The way I do it is use MacPorts (DarwinPorts) to use MacPorts to
 install non python libraries like sqlite
 and then manually install the python bindings using the framework
 build. Usually
 sudo python setup.py build
 sudo python setup.py install
 works for most simple modules

 For example I used Macports to install sqlite3 and then Python2.5 which
 has sqlite3 python bindings built in, just

 import sqlite3

 for python2.4 or python2.5 just (replace python with python2.4 or
 python2.5 if you have both installed)

 cd pysqlite-2.3.3
 sudo python setup.py build
 sudo python setup.py install

 works to get the pysqlite bindings. You can have both the sqlite3
 python bindings and the pysqlite bindings
 in 2.5 since different modules to bind to sqlite3

I'm pretty sure that the framework build of python 2.5 ships with
working pysqlite bindings out of the box and its own copy of sqlite in
the framework (probably statically linked to the bindings).


 For Apache2 and mod_python, I installed using MacPorts which has to
 use  python2.4.3 installed in /opt/...
 which it installs automatically as a dependency for mod_python
 This does not conflict with the framework builds in /Library/
 Frameworks/Python.framework/Versions/
 But I can't use 2.5 for web development.

 So if I want to use 2.5 for web development I either have to figure
 out how to install Apache2 and mod_python from source or wait until
 DarwinPorts does a python2.5 version of mod_python.

Or you could just stop using mod_python. It's not a particularly good
model for doing secure and scalable webapps and it's a bitch to
deploy. There's just no reason to embed python inside apache when you
can serve it by reverse proxy or fastcgi.

-bob
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Roundup Issue Tracker

2007-02-28 Thread skip

Samuel Anyone on this list installed the python based roundup issue
Samuel tracker with framework python2.5?

Nope...

Samuel How did you use --prefix or --install_scripts with setup.py?

Something like

python setup.py install --prefix=/alter/na/tive/dir

Skip
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] pyObjC and Plugins

2007-02-28 Thread Steve Freitas
Hi all,

I've spent all evening unsuccessfully trying to get the EnvironmentPrefs
plugin working on my setup, and I hope you can help. I keep getting
this:

2007-02-28 21:56:58.918 System Preferences[522] *** -[NSBundle load]:
Error loading code /Users/steve/Library/PreferencePanes/Shell
Environment.prefPane/Contents/MacOS/Shell Environment for
bundle /Users/steve/Library/PreferencePanes/Shell Environment.prefPane,
error code 2 (link edit error code 0, error number 0 ())
2007-02-28 21:56:58.918 System Preferences[522] [NSPrefPaneBundle
instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell
Environment.prefPane): principalClass is nil.

I found this earlier thread...

http://mail.python.org/pipermail/pythonmac-sig//2006-October/018298.html

...in which apparently upgrading to a later version of py2app fixed by
Ronald Oussoren did the trick. However, doing the same hasn't fixed it
for me, and I'm guessing in the flurry of reinstallations I left
something out.

I installed Python 2.5 from Python.org on a fresh install of 10.4.8. I
installed, from source, pyObjC 1.4. I did easy_install [module]==dev for
altgraph, bdist_mpkg, macholib, modulegraph and py2app.

 print altgraph.__version__, bdist_mpkg.__version__, \
macholib.__version__, modulegraph.__version__, py2app.__version__
0.6.8 0.4.2 1.2 0.7.1 0.3.6

Now, I did a lot of uninstallation and reinstallation of all of these
pieces, and it's possible something from an old install is still hanging
around, since my uninstallation technique consisted of rm -Rf. However,
I'm not yet ready to try a fresh 10.4.8 installation again without
someone telling me that's the only way.

At various points in my console I also got the ImportError: No module
named linecache, but not on every attempt -- I'm not sure why. I've
been careful to close and reopen System Preferences between each
attempt, and I delete build/ and dist/ in the EnvironmentPrefs dir as
well. If anyone could suggest something, I'd sure appreciate it.

Thanks!

Steve

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] pyObjC and Plugins

2007-02-28 Thread Dethe Elza
Hi Steve,

At some point py2app went from being bundled as part of PyObjC to  
being a separate install.  I think at that time there was a  
requirement to uninstall the old py2app before installing the new  
one.  I don't guarantee that is the solution to the problem you're  
having, but it's a possibility (your problem sounds very much like  
what I was facing, and this fixed it for me).  Instructions for  
uninstalling (and reinstalling) py2app are here:

http://svn.pythonmac.org/py2app/py2app/trunk/doc/ 
index.html#uninstalling-py2app-0-2-x-or-earlier

Also, while it may help to remove older versions of and altgraph,  
bdist_mpkg, macholib, modulegraph, I'm pretty sure you don't have to  
install them explicitly.  They should come along as part of the  
py2app install, if I recall correctly.  The link above is to the  
py2app docs, so you should be able to find all the info there.

Good luck, and let us know how it goes!

--Dethe

On 28-Feb-07, at 10:11 PM, Steve Freitas wrote:

 Hi all,

 I've spent all evening unsuccessfully trying to get the  
 EnvironmentPrefs
 plugin working on my setup, and I hope you can help. I keep getting
 this:

 2007-02-28 21:56:58.918 System Preferences[522] *** -[NSBundle load]:
 Error loading code /Users/steve/Library/PreferencePanes/Shell
 Environment.prefPane/Contents/MacOS/Shell Environment for
 bundle /Users/steve/Library/PreferencePanes/Shell  
 Environment.prefPane,
 error code 2 (link edit error code 0, error number 0 ())
 2007-02-28 21:56:58.918 System Preferences[522] [NSPrefPaneBundle
 instantiatePrefPaneObject] (/Users/steve/Library/PreferencePanes/Shell
 Environment.prefPane): principalClass is nil.

 I found this earlier thread...

 http://mail.python.org/pipermail/pythonmac-sig//2006-October/ 
 018298.html

 ...in which apparently upgrading to a later version of py2app fixed by
 Ronald Oussoren did the trick. However, doing the same hasn't fixed it
 for me, and I'm guessing in the flurry of reinstallations I left
 something out.

 I installed Python 2.5 from Python.org on a fresh install of 10.4.8. I
 installed, from source, pyObjC 1.4. I did easy_install [module] 
 ==dev for
 altgraph, bdist_mpkg, macholib, modulegraph and py2app.

 print altgraph.__version__, bdist_mpkg.__version__, \
 macholib.__version__, modulegraph.__version__, py2app.__version__
 0.6.8 0.4.2 1.2 0.7.1 0.3.6

 Now, I did a lot of uninstallation and reinstallation of all of these
 pieces, and it's possible something from an old install is still  
 hanging
 around, since my uninstallation technique consisted of rm -Rf.  
 However,
 I'm not yet ready to try a fresh 10.4.8 installation again without
 someone telling me that's the only way.

 At various points in my console I also got the ImportError: No module
 named linecache, but not on every attempt -- I'm not sure why. I've
 been careful to close and reopen System Preferences between each
 attempt, and I delete build/ and dist/ in the EnvironmentPrefs dir as
 well. If anyone could suggest something, I'd sure appreciate it.

 Thanks!

 Steve

 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig



Everyone has gotten so hung up on the legality of this they've  
forgotten the ethics. --Paul Saffo, on the H-P Scandal


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] pyObjC and Plugins

2007-02-28 Thread Steve Freitas
On Wed, 2007-02-28 at 22:24 -0800, Dethe Elza wrote:
 Hi Steve,
 
 At some point py2app went from being bundled as part of PyObjC to  
 being a separate install.  I think at that time there was a  
 requirement to uninstall the old py2app before installing the new  
 one.  I don't guarantee that is the solution to the problem you're  
 having, but it's a possibility (your problem sounds very much like  
 what I was facing, and this fixed it for me).  Instructions for  
 uninstalling (and reinstalling) py2app are here:
 
 http://svn.pythonmac.org/py2app/py2app/trunk/doc/ 
 index.html#uninstalling-py2app-0-2-x-or-earlier

Okay, I ignored that since I was never on 0.2 or earlier. That is, I
think I wasn't. Now I remember it being part of an pyobjc install at one
point... Okay, I'll go do that.

 Also, while it may help to remove older versions of and altgraph,  
 bdist_mpkg, macholib, modulegraph, I'm pretty sure you don't have to  
 install them explicitly.  They should come along as part of the  
 py2app install, if I recall correctly.  The link above is to the  
 py2app docs, so you should be able to find all the info there.

Perhaps another clue that something was wrong: When I did my py2app
installation from svn, it wasn't bringing the prereqs with it. I'll
check that out.

 Good luck, and let us know how it goes!

Thanks for the help, Dethe!

Steve

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig