Thread: [Pyobjc-dev] Installing pyobjc?
Brought to you by:
ronaldoussoren
From: Mark S. <sie...@st...> - 2012-06-25 15:26:46
|
I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK error: Could not find required distribution pyobjc-core This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. So, my conclusion is: - use pyobjc 2.2 - use MACOSX_DEPLOYMENT_TARGET=10.5 Does this seem reasonable, or am I missing something? Mark S. |
From: Ronald O. <ron...@ma...> - 2012-06-27 10:59:14
Attachments:
smime.p7s
|
On 25 Jun, 2012, at 17:25, Mark Sienkiewicz wrote: > I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: > > Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK > error: Could not find required distribution pyobjc-core > > This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. > > I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. > > So, my conclusion is: > > - use pyobjc 2.2 > - use MACOSX_DEPLOYMENT_TARGET=10.5 > > Does this seem reasonable, or am I missing something? Installation of pyobjc is annoyinly hard at the moment. The current version of PyObjC is 2.3, <http://pypi.python.org/pypi/pyobjc>. A number of people have mentioned that installing this using "easy_install pyobjc" won't work. I tend to install manually (first install pyobjc-core, then install pyobjc-framework-Cocoa, then install the other framework wrappers you need) and haven't had time to look into this issue. The website is very much out of date. This is something I want to fix, but once again haven't had time to work on. I'm currently working on a new release, hopefully around the same time as OSX 10.8 gets released. My repository is at https://bitbucket.org/ronaldoussoren/pyobjc. My current goal is to get everything working correctly on the current OSX 10.8 beta (not just pyobjc, but also py2app). After that I'll work on the website, and hopefully I can finish all work before 10.8 is actually released. Ronald > > Mark S. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Michael M. <mic...@gm...> - 2012-08-31 18:35:16
|
On Wed, Jun 27, 2012 at 3:58 AM, Ronald Oussoren <ron...@ma...> wrote: > > On 25 Jun, 2012, at 17:25, Mark Sienkiewicz wrote: > >> I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: >> >> Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK >> error: Could not find required distribution pyobjc-core >> >> This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. >> >> I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. >> >> So, my conclusion is: >> >> - use pyobjc 2.2 >> - use MACOSX_DEPLOYMENT_TARGET=10.5 >> >> Does this seem reasonable, or am I missing something? > > Installation of pyobjc is annoyinly hard at the moment. The current version of PyObjC is 2.3, <http://pypi.python.org/pypi/pyobjc>. A number of people have mentioned that installing this using "easy_install pyobjc" won't work. I tend to install manually (first install pyobjc-core, then install pyobjc-framework-Cocoa, then install the other framework wrappers you need) and haven't had time to look into this issue. > > The website is very much out of date. This is something I want to fix, but once again haven't had time to work on. I'd like to volunteer to help with the site, at least to help update it when you make your next release. Are you planning on keeping it at sourceforge? Also, do you have any notes on the build process? I was stumped about how to build from the bitbucket source until I saw this email. The build-support directory looks like it is meant to be useful but is not complete yet, is that correct? Thanks, -mike > I'm currently working on a new release, hopefully around the same time as OSX 10.8 gets released. My repository is at https://bitbucket.org/ronaldoussoren/pyobjc. > > My current goal is to get everything working correctly on the current OSX 10.8 beta (not just pyobjc, but also py2app). After that I'll work on the website, and hopefully I can finish all work before 10.8 is actually released. > > Ronald >> >> Mark S. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Michael M. <mic...@gm...> - 2012-08-31 18:44:33
|
Further, using MACOSX_DEPLOYMENT_TARGET=10.5 would appear to require a python that's built using that also, at least for virtualenv (see below for what I'm seeing) Does anyone have tips on installing pyobjc in a virtualenv? Or for that matter, what's the best way to install it for developing a py2app based app that'll use it? I don't require virtualenv - in fact, if I could just get a .egg of pyobjc and its wrappers, that'd work fine for me… % export MACOSX_DEPLOYMENT_TARGET=10.5 % virtualenv PYOBJCTEST Traceback (most recent call last): File "/usr/local/bin//virtualenv", line 5, in <module> from pkg_resources import load_entry_point File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 724, in <module> class Environment(object): File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 727, in Environment def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR): File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 106, in get_supported_platform plat = get_build_platform(); m = macosVersionString.match(plat) File "/usr/local/lib/python2.7/site-packages/distribute-0.6.27-py2.7.egg/pkg_resources.py", line 249, in get_build_platform plat = get_platform() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/util.py", line 98, in get_platform cfgvars = get_config_vars() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 498, in get_config_vars func() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 407, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.7" during configure On Fri, Aug 31, 2012 at 11:34 AM, Michael McCracken <mic...@gm...> wrote: > On Wed, Jun 27, 2012 at 3:58 AM, Ronald Oussoren <ron...@ma...> wrote: >> >> On 25 Jun, 2012, at 17:25, Mark Sienkiewicz wrote: >> >>> I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: >>> >>> Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK >>> error: Could not find required distribution pyobjc-core >>> >>> This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. >>> >>> I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. >>> >>> So, my conclusion is: >>> >>> - use pyobjc 2.2 >>> - use MACOSX_DEPLOYMENT_TARGET=10.5 >>> >>> Does this seem reasonable, or am I missing something? >> >> Installation of pyobjc is annoyinly hard at the moment. The current version of PyObjC is 2.3, <http://pypi.python.org/pypi/pyobjc>. A number of people have mentioned that installing this using "easy_install pyobjc" won't work. I tend to install manually (first install pyobjc-core, then install pyobjc-framework-Cocoa, then install the other framework wrappers you need) and haven't had time to look into this issue. >> >> The website is very much out of date. This is something I want to fix, but once again haven't had time to work on. > > I'd like to volunteer to help with the site, at least to help update > it when you make your next release. Are you planning on keeping it at > sourceforge? > > Also, do you have any notes on the build process? I was stumped about > how to build from the bitbucket source until I saw this email. The > build-support directory looks like it is meant to be useful but is not > complete yet, is that correct? > > Thanks, > -mike > >> I'm currently working on a new release, hopefully around the same time as OSX 10.8 gets released. My repository is at https://bitbucket.org/ronaldoussoren/pyobjc. >> >> My current goal is to get everything working correctly on the current OSX 10.8 beta (not just pyobjc, but also py2app). After that I'll work on the website, and hopefully I can finish all work before 10.8 is actually released. >> >> Ronald >>> >>> Mark S. >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Pyobjc-dev mailing list >>> Pyo...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> |
From: Ronald O. <ron...@ma...> - 2012-09-01 07:48:10
Attachments:
smime.p7s
|
On 31 aug. 2012, at 20:34, Michael McCracken <mic...@gm...> wrote: > On Wed, Jun 27, 2012 at 3:58 AM, Ronald Oussoren <ron...@ma...> wrote: >> >> On 25 Jun, 2012, at 17:25, Mark Sienkiewicz wrote: >> >>> I'm trying to install pyobjc in a custom python 2.7.3 build. I see that "easy_install pyobjc", installs a bunch of stuff, but then says: >>> >>> Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/1z/7z0y590s66339qm1m1djyx4w0004jf/T/easy_install-nZl6LQ/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-jWDaaK >>> error: Could not find required distribution pyobjc-core >>> >>> This is pyobjc 2.3, which is the default from pypi. The web site at pyobjc.sourceforge.net says the latest is pyobjc 2.2, so this looks a bit odd. >>> >>> I also found that pyobjc 2.2 does not install on Snow Leopard or Lion unless you set the environment variable MACOSX_DEPLOYMENT_TARGET=10.5 ; it is probably worth mentioning this on the web site. >>> >>> So, my conclusion is: >>> >>> - use pyobjc 2.2 >>> - use MACOSX_DEPLOYMENT_TARGET=10.5 >>> >>> Does this seem reasonable, or am I missing something? >> >> Installation of pyobjc is annoyinly hard at the moment. The current version of PyObjC is 2.3, <http://pypi.python.org/pypi/pyobjc>. A number of people have mentioned that installing this using "easy_install pyobjc" won't work. I tend to install manually (first install pyobjc-core, then install pyobjc-framework-Cocoa, then install the other framework wrappers you need) and haven't had time to look into this issue. >> >> The website is very much out of date. This is something I want to fix, but once again haven't had time to work on. > > I'd like to volunteer to help with the site, at least to help update > it when you make your next release. Are you planning on keeping it at > sourceforge? For now at least. The alternative would be packages.python.org (the pypi documentation hosting feature). > > Also, do you have any notes on the build process? I was stumped about > how to build from the bitbucket source until I saw this email. The > build-support directory looks like it is meant to be useful but is not > complete yet, is that correct? > Build support is out of date, I intend to remove it in the near future. The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. Ronald > Thanks, > -mike > >> I'm currently working on a new release, hopefully around the same time as OSX 10.8 gets released. My repository is at https://bitbucket.org/ronaldoussoren/pyobjc. >> >> My current goal is to get everything working correctly on the current OSX 10.8 beta (not just pyobjc, but also py2app). After that I'll work on the website, and hopefully I can finish all work before 10.8 is actually released. >> >> Ronald >>> >>> Mark S. >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Pyobjc-dev mailing list >>> Pyo...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> |
From: Mark S. <sie...@st...> - 2012-09-07 18:12:11
|
>> Also, do you have any notes on the build process? I was stumped about >> how to build from the bitbucket source until I saw this email. The >> build-support directory looks like it is meant to be useful but is not >> complete yet, is that correct? > Build support is out of date, I intend to remove it in the near future. What exactly does that mean? How do you get a working pyobjc without building it? > The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. Does this mean I will be able to install from a local copy of the source code, rather than downloading it from pypi every time I want to install it? That would be really helpful for my configuration control. |
From: Michael M. <mic...@gm...> - 2012-09-07 20:05:06
|
On Fri, Sep 7, 2012 at 11:11 AM, Mark Sienkiewicz <sie...@st...> wrote: > >>> Also, do you have any notes on the build process? I was stumped about >>> how to build from the bitbucket source until I saw this email. The >>> build-support directory looks like it is meant to be useful but is not >>> complete yet, is that correct? >> Build support is out of date, I intend to remove it in the near future. > > What exactly does that mean? How do you get a working pyobjc without building it? Mark, I think he just meant the stuff in the build-support directory in the source repo. > >> The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. > > Does this mean I will be able to install from a local copy of the source code, rather than downloading it from pypi every time I want to install it? That would be really helpful for my configuration control. For reference, I've been able to build and run pyobjc from the source inside a virtualenv with just running 'python setup.py install', first in pyobjc-core, then in the framework wrappers, as Ronald mentioned earlier. It's not exactly easy_install, but it's not that hard. This doesn't work if you have a mismatched MACOSX_DEPLOYMENT_TARGET set, but if you don't need to change that, it works fine. |
From: Leonardo S. <san...@gm...> - 2012-09-10 01:03:41
|
On Fri, Sep 7, 2012 at 5:04 PM, Michael McCracken <mic...@gm...> wrote: >> >>> The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. >> >> Does this mean I will be able to install from a local copy of the source code, rather than downloading it from pypi every time I want to install it? That would be really helpful for my configuration control. > > For reference, I've been able to build and run pyobjc from the source > inside a virtualenv with just running 'python setup.py install', first > in pyobjc-core, then in the framework wrappers, as Ronald mentioned > earlier. It's not exactly easy_install, but it's not that hard. > > This doesn't work if you have a mismatched MACOSX_DEPLOYMENT_TARGET > set, but if you don't need to change that, it works fine. can I be the first to ask for a pip installable package? Either that or someone to do a review of the newer wrappers that use ctypes of cffi so that they don't need a c compiler to run. -- Leonardo Santagada |
From: Ronald O. <ron...@ma...> - 2012-09-18 11:20:52
Attachments:
smime.p7s
|
On 7 Sep, 2012, at 20:11, Mark Sienkiewicz <sie...@st...> wrote: > >>> Also, do you have any notes on the build process? I was stumped about >>> how to build from the bitbucket source until I saw this email. The >>> build-support directory looks like it is meant to be useful but is not >>> complete yet, is that correct? >> Build support is out of date, I intend to remove it in the near future. > > What exactly does that mean? How do you get a working pyobjc without building it? There is a directory named "build-support" in the repository that contains scripts I use on my machine to install. Those scripts are outdated and will be removed. PyObjC can still be build using distutils ("python setup.py install"), and that should get easier once I push out a new release because setuptools can then automaticly download all supprojects when you easy_install the umbrella project. The state of package managed tools for Python is not very good at the moment, and the state of the art seems to move forward pretty slowly. Even pip is very limited: it will only perform source-based installs (which means I cannot provide pre-compiled binaries for pip users), and last time I checked it didn't have a command for listing installed packages. > > >> The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. > > Does this mean I will be able to install from a local copy of the source code, rather than downloading it from pypi every time I want to install it? That would be really helpful for my configuration control. Yes, and you can do that currently. The hard part is installing the subprojects in the right order, but for most users installing pyobjc-core and pyobjc-framework-Cocoa in that order should be good enough to get started, the other framework wrappers contain bindings for more of Apple's frameworks and can be installed as needed. I might end up writing an install script after all, IIRC the turbogears project also has such a script. Ronald > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Ronald O. <ron...@ma...> - 2012-09-18 11:22:43
Attachments:
smime.p7s
|
On 10 Sep, 2012, at 3:03, Leonardo Santagada <san...@gm...> wrote: > On Fri, Sep 7, 2012 at 5:04 PM, Michael McCracken > <mic...@gm...> wrote: >>> >>>> The next release should be near, the main todo item for me is to check tot easy_install can install pyobjc from a collection of source archives. >>> >>> Does this mean I will be able to install from a local copy of the source code, rather than downloading it from pypi every time I want to install it? That would be really helpful for my configuration control. >> >> For reference, I've been able to build and run pyobjc from the source >> inside a virtualenv with just running 'python setup.py install', first >> in pyobjc-core, then in the framework wrappers, as Ronald mentioned >> earlier. It's not exactly easy_install, but it's not that hard. >> >> This doesn't work if you have a mismatched MACOSX_DEPLOYMENT_TARGET >> set, but if you don't need to change that, it works fine. > > can I be the first to ask for a pip installable package? Either that > or someone to do a review of the newer wrappers that use ctypes of > cffi so that they don't need a c compiler to run. A pip installable package will require a compiler, pip doesn't support binary installs. Setuptools and distribute do support that, but the pip developers decided that nobody actually need that support. Ronald > > -- > > Leonardo Santagada > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |