Re: [Pythonmac-SIG] Building against OpenGL

2022-03-22 Thread Chris Barker via Pythonmac-SIG
Mar 22, 2022 at 12:47 PM Chris Barker wrote: > I have an app that uses a C (Cython) extension that needs to link against > the OpenGL libs (libGL and libGLU) > > Here's the code that used to work: > > gl_libraries = ["GL", "GLU"] > >

[Pythonmac-SIG] Building against OpenGL

2022-03-22 Thread Chris Barker via Pythonmac-SIG
I have an app that uses a C (Cython) extension that needs to link against the OpenGL libs (libGL and libGLU) Here's the code that used to work: gl_libraries = ["GL", "GLU"] ... gl_include_dirs.append( "/System/Library/Frameworks/OpenGL.framework/Headers", ) gl_library_d

Re: [Pythonmac-SIG] Error with mimetype on OS-X 11 (Big Sur)

2022-01-06 Thread Chris Barker via Pythonmac-SIG
ing needed, but if anyone has any ideas, I'm all ears. Also: - Has anyone gotten a PyInstaller App to work on OS-X 11 ? - Even better, one that uses OpenGL? Thanks, -CHB On Thu, Dec 16, 2021 at 11:21 AM Chris Barker wrote: > I've just got a new mac with OS-X 11.6 (still Inte

Re: [Pythonmac-SIG] Error with mimetype on OS-X 11 (Big Sur)

2021-12-16 Thread Chris Barker via Pythonmac-SIG
hat's changed is the root for the uri it's using: 'uri': 'template://default_project.maproom' Now to figure out where / how that's set. -CHB On Thu, Dec 16, 2021 at 12:05 PM Ronald Oussoren wrote: > > > On 16 Dec 2021, at 20:21, Chris Barker via

[Pythonmac-SIG] Error with mimetype on OS-X 11 (Big Sur)

2021-12-16 Thread Chris Barker via Pythonmac-SIG
I've just got a new mac with OS-X 11.6 (still Intel). But when I try to run a PyInstaller built application, I get this error: No document available for {'mime': 'application/x-maproom-project-zip', 'loader': , 'uri': 'template://default_project.maproom'} And the app won't start. This has worke

[Pythonmac-SIG] "pythonw" in a Unix build

2021-01-14 Thread Chris Barker via Pythonmac-SIG
Ned suggested I bring this conversation over here from python-dev, so here it is. What I'd like to see done is have the "pythonw" wrapper buildable in an otherwise non-framework build. I *think* there are no real technical show stoppers, but it would take some auto-conf magic, which I am fully un

Re: [Pythonmac-SIG] Failure on pip upgrade attempt

2018-02-13 Thread Chris Barker
On Tue, Feb 13, 2018 at 10:18 AM, Gerrie Shults wrote: > Thanks for the pointer. PYTHONPATH clearly bit me. > > I’m going to have to read up on virtualenvs. > you don't even need to go there to get rid of PYTHONPATH -- they kind of require you to get rid of PYTHONPATH -- many environment, one PY

Re: [Pythonmac-SIG] please advise me

2017-02-28 Thread Chris Barker
This is really a better question for the VPython folks, but: 1) Have you clicked "Don't show this warning again"? if so, does it keep coming back? 2) you will need to tell us more about exactly what you installed, and how you are running the application. i.e. "I open a Terminal Windows and type .

Re: [Pythonmac-SIG] [Pyobjc-dev] py2app release delayed

2016-12-27 Thread Chris Barker
On Tue, Dec 27, 2016 at 11:36 AM, Ronald Oussoren wrote: > As an aside to this: I’m considering to remove the site-packages.zip file > from the app bundle and store everything outside off zipfiles. A lot of > code works inside zipfiles, but there are too many exceptions and with the > transition

Re: [Pythonmac-SIG] PyObjC and macOS 10.12 (Sierra)

2016-12-14 Thread Chris Barker
On Tue, Dec 13, 2016 at 11:16 AM, Glyph Lefkowitz wrote: > If we were to add s PyObjC build to conda-forge, the full stack should > "just work". > > And conda forge has s CI system set up to auto build for various python > versions > > http://conda-forge.github.io/#add_recipe > > > Why would

Re: [Pythonmac-SIG] Need help with Python Library link error in OS X 10.11.6

2016-12-13 Thread Chris Barker
> brew install --HEAD libimobiledevice > odd -- this: http://brewformulas.org/Libimobiledevice doesn't make it look like it needs Python. I think this is a question for the brew folks. -CHB > and following error message was displayed at the end of this command run > > *

Re: [Pythonmac-SIG] [Pyobjc-dev] Moving PyObjC and py2app forward

2015-01-29 Thread Chris Barker
On Thu, Jan 29, 2015 at 10:20 AM, Ronald Oussoren wrote: > I’m not sure how to make serious progress with my current load (both work > and privately). Does anyone have experience with crowd-funding for > open-source work? > > > I guess not. I’m still interested in idea’s on how to improve > deve

Re: [Pythonmac-SIG] Python 3.4.2 as default version

2014-11-26 Thread Chris Barker
On Wed, Nov 26, 2014 at 12:13 PM, Scott Clausen wrote: > I’ve been searching the sites to find out how to set the latest version of > Python, 3.4.2, as the default version. So far I’ve not been able to do so. > you put it first on your PATH in .bash_profile If you installed from the dmg on pyth

Re: [Pythonmac-SIG] What does it take to run a GUI app?

2014-08-27 Thread Chris Barker
On Mon, Aug 25, 2014 at 8:32 AM, Aaron Meurer wrote: > > you can. but you sure don't want to from the start of your development > > process. And there are hybrid command-line GuI apps like iPython or > anything > > that wants to pop up, say, a matplotlib graph. So we do need a command > line > >

Re: [Pythonmac-SIG] What does it take to run a GUI app?

2014-08-22 Thread Chris Barker
Thank Ned, > Anaconda is currently built with the old python / pythonw dichotomy. > > On vanilla OS X python builds, there is no difference between python and > pythonw; that's been the case going back many years. exactly -- I was quite surprised when i ran into this with Anaconda -- I had tot

Re: [Pythonmac-SIG] What does it take to run a GUI app?

2014-08-22 Thread Chris Barker
On Fri, Aug 22, 2014 at 2:04 PM, Aaron Meurer wrote: > It does cause problems. I'm not entirely clear what happens with > nested shebang lines, but you can't put > > #!/Users/aaronmeurer/anaconda/bin/pythonw > > as your shebang. If you do, it will try to run the script in bash. It has > to be > >

[Pythonmac-SIG] What does it take to run a GUI app?

2014-08-22 Thread Chris Barker
Folks, Over on the list for the Anaconda distribution, we've run into a limitation in our understanding of the whole app bundle, etc business. The problem is thus: Anaconda is currently built with the old python / pythonw dichotomy. python is a standard unix-style executable -- great for comman

Re: [Pythonmac-SIG] MacPython and automating wheel builds

2014-08-04 Thread Chris Barker
Matthew, I would like some feedback on an idea I had for providing a > wheel-building service via the MacPython organization. > Do you mean the gitHub MacPython organization? If so, then yes, this is exactly the kind of thing I had in mind when I started that. Following up an idea and code by Ma

[Pythonmac-SIG] Building compatible dependencies

2014-06-11 Thread Chris Barker
Hi folks, I know it'a at least theoretically possible to build libs under 10.9 that will work on 10.6 -- specifically compatible with the python.org python binaries. But I"m having trouble finding documentation of what flags you need. MACOSX_DEPLOYMENT_TARGET=10.6 should be required -- but anyt

[Pythonmac-SIG] linking extensions for older builds with newer pythons...

2014-03-06 Thread Chris Barker
The numpy folks are trying hard to get binary wheel sup on PyPi yeah! But this brought hup an issue -- PyPI policy is that binary wheels should be built for the python.org binaries -- which is great. The Python.org binaries are built for >=10.6, 32+64 bit Intel, and have the platfrom name: 10_6_

Re: [Pythonmac-SIG] Errors building Cython extensions on 10.9...

2014-02-11 Thread Chris Barker
On Mon, Feb 10, 2014 at 5:28 PM, Ned Deily wrote: > > I've seen a lot of discussions on the MacPorts groups about the problems > caused by the 10.9 change in the default C++ library. It seems you can > change it at compile time but you need to be careful that other C++ libs > are also built the

[Pythonmac-SIG] Errors building Cython extensions on 10.9...

2014-02-10 Thread Chris Barker
Hi all, Have people in general been able to get extensions to build right under 10.9? I"ve got a bunch of C++ code (and Cython-generated C++ wrappers), that hav been building fine on OS-X up to 10.8, and Windows, and LInux, but now I've got a user trying to build under 10.9, and they get a bunch

Re: [Pythonmac-SIG] avoiding system's "easy-install.pth" with custom distribution

2013-09-11 Thread Chris Barker
On Tue, Sep 10, 2013 at 11:16 PM, Ned Deily wrote: > The behavior is the result of a feature added in 2.7 for Issue4865 which > appends the site-packages directory for the Apple-supplied system Python > to sys.path of a Python framework build. With hindsight, I don't think > this was a good idea

Re: [Pythonmac-SIG] Fwd: Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-10 Thread Chris Barker - NOAA Federal
On Wed, Jul 10, 2013 at 2:35 AM, Paul Wiseman wrote: > I've used wxpython a lot in the past, and maintain some code that uses it > and I do like it, there are a couple of bits that have put me off though. > There doesn't seem to be an obvious way to implement an MVC type pattern > with it. I" ve

Re: [Pythonmac-SIG] Fwd: Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-10 Thread Chris Barker - NOAA Federal
>> Do you know any Qt apps for mac? > > There are lots of Qt apps with Mac ports; most are crappy because they make > little effort to get the Mac UI details right. I think QGIS falls into that camp... http://www.qgis.org/ > VirtualBox and Parallels are > two Qt apps that do a better job with th

Re: [Pythonmac-SIG] Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-09 Thread Chris Barker - NOAA Federal
On Tue, Jul 9, 2013 at 1:31 PM, Meyn, Larry A. (ARC-AV) wrote: > FYI: One cross-platform gotcha with kivy is its LGPL license, it can be an > issue when developing for iOS due to the iOS ban on linking to dynamic > libraries. IIUC: (IANAL): 1) the kivy folks have figure out how to legally depl

[Pythonmac-SIG] Fwd: Can any cross platform gui framework limitations be filled with ctypes / pyobjc or other?

2013-07-09 Thread Chris Barker - NOAA Federal
oops, sent only to Paul the first time -- Forwarded message -- From: Chris Barker - NOAA Federal Paul, > Qt looks great from my first impressions but one thing I'm not too sure > about is how native it can go, I know the controls are native and will use >

Re: [Pythonmac-SIG] py2app questions..

2013-06-25 Thread Chris Barker - NOAA Federal
Ronald, Did you mean this to go to the list? I've forwarded it on... Anyway, thanks for the notes -- I'll keep all this in mind when I build that app again. >> I've learned a few things from this. >> >> 1) this is odd: >> right near the top, I see: >> prescript.py >> imports: Image >>

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
On Tue, May 28, 2013 at 2:04 PM, Charles Hartman wrote: > Right you are -- self.Destroy() does the job. > I did read the other references you gave -- thanks for those. I think one > confusion may be that changes (in Python, in wxPython, maybe in OSX?) may > have changed the ways to handle this,

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
MainLoop(), but I haven't yet found anything that makes the > Quit happen. > > > On Tue, May 28, 2013 at 4:00 PM, Chris Barker - NOAA Federal > wrote: >> >> On Tue, May 28, 2013 at 9:50 AM, Charles Hartman >> wrote: >> \ >> > I included these lin

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
On Tue, May 28, 2013 at 9:50 AM, Charles Hartman wrote: \ > I included these lines in the __init__ for my app's Frame (or rather, in a > long SetupGUI method that is called by __init__): > > item = self.fileMenu.Append(wx.ID_EXIT,'E&xit','Terminate the > program') > self.Bind(wx.EV

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
On Tue, May 28, 2013 at 9:11 AM, Charles Hartman wrote: > Thanks, Chris. My app has a wx.Frame (subclassed, of course). It's there > that I've tried Binding EVT_CLOSE, but a breakpoint in the method I find is > never reached at all, including when I use menu or keyboard to Quit. On way > I've t

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
Just found this: http://wiki.wxwidgets.org/WxMac-specific_topics#When_to_close_the_program maybe it will help. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle,

Re: [Pythonmac-SIG] [OT] advice on distributing for different OSs

2013-05-28 Thread Chris Barker - NOAA Federal
On Mon, May 27, 2013 at 1:23 AM, Ronald Oussoren wrote: > It's unlikely that support for external dependencies will improve a lot > in the near future unless someone does the work and provides a clear and > usable specification, preferably with an implementation. well, Gattai may be a good start

Re: [Pythonmac-SIG] app won't quit?

2013-05-28 Thread Chris Barker - NOAA Federal
On Tue, May 28, 2013 at 5:33 AM, Charles Hartman wrote: > When I updated my app, I switched from the deprecated wx.PySimpleApp, which > had the right default behavior on Mac, to wx.App, which apparently doesn't. hmm -- I'm pretty sure that PYSipleApp is deprecated because it doesn't actually do a

Re: [Pythonmac-SIG] [OT] advice on distributing for different OSs

2013-05-24 Thread Chris Barker - NOAA Federal
On Fri, May 24, 2013 at 2:10 AM, DavidWorrall wrote: > maybe you'd like to help build one? > > mmm tempting. I'm moving continents ATM so it will have to wait a bit. Who knows how much time I'll find for this, but my goal is to set up a system (probably a gitHub project), and then others will be

[Pythonmac-SIG] Static Linking...

2013-05-23 Thread Chris Barker - NOAA Federal
As a side note to the main thread about dependencies: How can I static link? I"ve struggled for literally years to get gcc to statically link, but it tries really hard to dynamically link instead. I have written way too many scripts that move or re-name dynamic libs temporarily while building, t

Re: [Pythonmac-SIG] Advice wanted on dependency building...

2013-05-23 Thread Chris Barker - NOAA Federal
On Wed, May 22, 2013 at 11:53 PM, Ronald Oussoren wrote: >> I'm using the >> system zlib -- is that a bad idea? Should I build it too, to make sure >> it matches the rest of it? >> >> (I do want the binaries to run anywhere the binary Python I'm using runs) > > It depends on the library. OK -- it

Re: [Pythonmac-SIG] Advice wanted on dependency building...

2013-05-23 Thread Chris Barker - NOAA Federal
On Thu, May 23, 2013 at 2:29 PM, Matthias Baas wrote: > From a user's point of view, I find that Windows installers as generated > by bdist_wininst still provide the nicest user experience with OSX > packages being a close second. second? Aren't they essentially the same experience? But anyway..

Re: [Pythonmac-SIG] [OT] advice on distributing for different OSs

2013-05-23 Thread Chris Barker - NOAA Federal
On Wed, May 22, 2013 at 11:49 PM, DavidWorrall wrote: > I've been developing in Python on Mac's since b4 OSX and I have to give a > workshop on the other side of the world in a (networked) non-OSX university > lab (Windows, I think). > > Now I know dependencies are one of python's strengths, no,

Re: [Pythonmac-SIG] Advice wanted on dependency building...

2013-05-23 Thread Chris Barker - NOAA Federal
On Thu, May 23, 2013 at 12:45 AM, Samuel John wrote: > I am from the homebrew team and passionate python lover. I can almost feel > your pain :-) Thanks for joining the discussion -- really great to have a homebrew-familiar person to discuss with. However, and please to correct me if I'm wrong,

Re: [Pythonmac-SIG] Advice wanted on dependency building...

2013-05-22 Thread Chris Barker - NOAA Federal
/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) I don't know how to get that @loader_path thing in there, but this seems like a reasonable way to do it (though I guess it wouldn't support virtualenv...) -Chris On Wed, May 22, 2013 at 3:46 PM, Chris Barker - NOAA Fede

Re: [Pythonmac-SIG] Advice wanted on dependency building...

2013-05-22 Thread Chris Barker - NOAA Federal
Thanks Ronald, On Wed, May 22, 2013 at 2:53 PM, Ronald Oussoren wrote: > To move back onto topic, not relying on unix-level libraries in OSX is in a > good thing as it makes it easier to support multiple OSX versions with a > single set of binaries. hmm -- I figured if it was a system lib, it

[Pythonmac-SIG] Advice wanted on dependency building...

2013-05-22 Thread Chris Barker - NOAA Federal
Hey folks, I'm looking for advice, and maybe even some consensus among the MacPython community, on how to build and distribute packages with non-python dependencies. As we all know, a number of Python packages require libs that are used outside of python itself. These libs fall into (sort of) wha

Re: [Pythonmac-SIG] py2app questions..

2013-04-15 Thread Chris Barker - NOAA Federal
ever the user is actually using (numpy, etc) is probably imported elsewhere anyway. (though maybe including numpy would make some sense...) I hope this helps others in the future in any case. -Chris On Fri, Apr 12, 2013 at 1:47 PM, Chris Barker - NOAA Federal wrote: > OK, > >

Re: [Pythonmac-SIG] py2app questions..

2013-04-12 Thread Chris Barker - NOAA Federal
On Thu, Apr 11, 2013 at 10:50 PM, Ronald Oussoren wrote: > On 11 Apr, 2013, at 23:50, Chris Barker - NOAA Federal > wrote: >> *** using recipe: virtualenv *** >> *** using recipe: sip *** ... >> It looks like the recipes for ALL of the packages I have installed a

[Pythonmac-SIG] py2app questions..

2013-04-10 Thread Chris Barker - NOAA Federal
First: Ronald, thanks for keeping py2app up to date! The good news: I just ran a recent py2app on an older app of mine, and it all worked out of the box. However, the resulting bundle is HUGE. A lot of this is inevitable, I'm using a universal build, and some big packages, but there seems to be s

Re: [Pythonmac-SIG] Good way for beginner to get started with Python?

2013-04-07 Thread Chris Barker - NOAA Federal
I'd second a couple others posting on this thread to set up the environment for your friend if need be. I think it's a much better idea to choose what tools, libraries, etc he should learn from by criteria other than "it comes with python out of the box". A couple specific suggestions: There have

Re: [Pythonmac-SIG] Accessing .so files in BGE python scripts

2013-04-04 Thread Chris Barker - NOAA Federal
Hi, Not sure what "leap" is, but maybe this will be helpful... > This is sample of part of the LeapPython.so (.dynlib) I need to access in > Blender 2.66a Game Engine on my MacMini SnowLeopard 32 bit: ... > This is the type of errors I am getting when there is a call like: > > __swig_destro

Re: [Pythonmac-SIG] py2app failure with framework build of 2.7

2013-04-04 Thread Chris Barker - NOAA Federal
On Thu, Apr 4, 2013 at 8:01 AM, Nat Echols wrote: > On Thu, Apr 4, 2013 at 5:46 AM, Ronald Oussoren > wrote: >> An alias mode build contains symlinks to the python files in your >> application, and is therefore not a useful way to deploy. > > It's still not totally clear to me if this is reall

Re: [Pythonmac-SIG] 32+64 bit Intel PIL binary?

2012-12-20 Thread Chris Barker - NOAA Federal
for folks. -Chris On Thu, Dec 20, 2012 at 12:15 PM, Chris Barker - NOAA Federal wrote: > Hi folks, > > Has anyone built a 32+64 bit Intel binary for PIl? (to match the > Python 2.7 Intel build on python.org). > > Russell Owen has a PIL-1.1.7-py2.7-python.

[Pythonmac-SIG] 32+64 bit Intel PIL binary?

2012-12-20 Thread Chris Barker - NOAA Federal
Hi folks, Has anyone built a 32+64 bit Intel binary for PIl? (to match the Python 2.7 Intel build on python.org). Russell Owen has a PIL-1.1.7-py2.7-python.org-macosx10.6.dmg (http://www.astro.washington.edu/users/rowen/python/) But it appears to only work right in 64 bit mode. I suspect the de

Re: [Pythonmac-SIG] bdist_mpkg question: python 3 support?

2012-12-17 Thread Chris Barker - NOAA Federal
>>> Do you think it would be hard to update bdist_mpkg to support the new >>> format? It is nice to have a simple, pure python, way to build a. > I don't know, I haven't looked into that yet (but will likely do so for the > python.org installers). I don't even know if the new format is properly

Re: [Pythonmac-SIG] bdist_mpkg question: python 3 support?

2012-12-17 Thread Chris Barker - NOAA Federal
Oops hit send by accident . On Dec 17, 2012, at 9:57 AM, Chris Barker - NOAA Federal wrote: > On Dec 17, 2012, at 1:34 AM, Ronald Oussoren wrote: > >>> >> >> You could port bdist_mpkg yourself, doing that should be too hard. That >> said, bdist_mpkg creates a

Re: [Pythonmac-SIG] Building a 32 bit framework build in a 64 bit system

2012-10-17 Thread Chris Barker
Ned, Thanks for the detailed reply -- not sure when I'll be able to really try this, but I'll let this list know how it goes when I do. -CHB On Tue, Oct 16, 2012 at 10:48 PM, Ned Deily wrote: > In article > , > Chris Barker wrote: >> I'm finding it a pain to fo

Re: [Pythonmac-SIG] permission of doc dir

2012-10-16 Thread Chris Barker
On Mon, Oct 15, 2012 at 5:13 PM, Ned Deily wrote: > Please open an issue on the bug tracker so we don't forget. Thanks! Done: http://bugs.python.org/issue16256 -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 76

[Pythonmac-SIG] Building a 32 bit framework build in a 64 bit system

2012-10-16 Thread Chris Barker
Hi Folks, I'm finding it a pain to force the Universal Python to 32 bit -- for building extensions, as well as running, etc. So I though maybe it would be nice to have a just plain 32 bit Intel build -- then I can use that to run and test all mystuff (I'm depending on 32 bit only C++ code extensio

Re: [Pythonmac-SIG] permission of doc dir

2012-10-16 Thread Chris Barker
On Tue, Oct 16, 2012 at 3:16 PM, Ned Deily wrote: >> which bug tracker? The main python.org one? > > Yes, please. will do. > I've done an extensive update for the recently released 3.3 version. I > intend to backport some of the README and some of the Xcode 4 support, at > least, to 2.7 befo

[Pythonmac-SIG] permission of doc dir

2012-10-15 Thread Chris Barker
Hi folks, I just tried to "pip install ipython" and got: error: could not create '/Library/Frameworks/Python.framework/Versions/2.7/share/doc/ipython': Permission denied indeed: $ ls -l /Library/Frameworks/Python.framework/Versions/2.7/share/ total 0 drwxr-xr-x 3 root admin 102 Oct 11 09:14

Re: [Pythonmac-SIG] py2app unable to find cprocessors.so

2012-09-13 Thread Chris Barker
On Thu, Sep 13, 2012 at 10:36 AM, Michael McCracken wrote: > FWIW, here's how I do something similar now, to avoid having many > copies of the Qt libraries. cool! Thanks for the description > There is one master app, and several sub-apps. > > * call setup() for each of the apps, generating full

Re: [Pythonmac-SIG] py2app unable to find cprocessors.so

2012-09-13 Thread Chris Barker
On Thu, Sep 13, 2012 at 1:53 AM, Ronald Oussoren wrote: > Yea exactly, I have some smaller apps which are used for specific separate > jobs (one has a simple gui and generates and gathers log files from the main > app and zips them up should the main app ever fail to open for instance), > the job

Re: [Pythonmac-SIG] Py2app error

2012-08-03 Thread Chris Barker
On Thu, Aug 2, 2012 at 8:32 PM, Ned Deily wrote: >> These are what they seem to be -- though I think you got tripped up by >> "for Mac OS X 10.3 through 10.6" -- actually, that should be "10.3 + >> " -- 10.7 didn't exist when that was built. > > Actually, "10.3 through 10.6" is intentional. If

Re: [Pythonmac-SIG] Py2app error

2012-08-02 Thread Chris Barker
On Wed, Aug 1, 2012 at 10:39 PM, Mark Livingstone wrote: > OK, taking Chris' advice, I installed on a Snow Leopard machine: now that you've named, me, I feel compelled to contiue to help.. ;-) > cheyenne:dist marklivingstone$ ls ~/Downloads/ > About Downloads.lpdf > numpy-1.6.2-py2.7-python.org

Re: [Pythonmac-SIG] py2app: works for me on 10.6, not 10.7

2012-07-31 Thread Chris Barker
On Tue, Jul 31, 2012 at 7:47 AM, Michael McCracken wrote: > Hi, my py2app setup script is working fine if I run it on 10.6, but on > 10.7 I've run into some problems. > > I want a standalone app, and on 10.6 I didn't specify semi_standalone: > False in the options, and it worked fine. > On 10.7, i

Re: [Pythonmac-SIG] Question about py2app packages and includes options

2012-07-18 Thread Chris Barker
On Tue, Jul 17, 2012 at 3:49 PM, Michael McCracken wrote: > That makes sense - but as you mention, it seems like there's some > missing functionality. I think so, yes, but it can get the job done. > However, it's no fun if you have a lot of subpackages to add that way. nope -- but for the most

Re: [Pythonmac-SIG] Py2app error

2012-07-17 Thread Chris Barker
On Mon, Jul 16, 2012 at 10:49 PM, Ronald Oussoren wrote > I guess I'll have to download EPD to test this, but it looks like EPD has a > Python.framework where the framework version is different from the Python > version, and parts of py2app assume they are the same (which it why copying > pyco

Re: [Pythonmac-SIG] Question about py2app packages and includes options

2012-07-17 Thread Chris Barker
On Tue, Jul 17, 2012 at 11:03 AM, Michael McCracken > My question is: why does 'packages' copy the package recursively, but > not into the .zip, because there are packages that don't work right if zipped -- so this gets around that. > while 'includes' only gets single modules? I suspect it's be

Re: [Pythonmac-SIG] Problem Running App built with Py2App

2012-07-10 Thread Chris Barker
running the app results in the same error. yup -- weird, if Console.app doesn't give you any more hints, you'll need to start from a small minimal app and work your way up... -Chris > > Mike > > > On 7/9/2012 10:40 AM, Chris Barker wrote: >> >> On Sat, Jul 7,

Re: [Pythonmac-SIG] py2app bug with argv_emulation=True

2012-05-26 Thread Chris Barker
On Fri, May 25, 2012 at 5:34 PM, Michael O'Donnell wrote: > He found that if you set argv_emulation to False, the program > worked as expected. > > NOW, I need argv_emulation, since a user might open my application by > double clicking on a document associated with my program.  I don't want to > l

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
(dont' forget to include pythonmac-sig -- it's not doen with a standard reply.) On Mon, Apr 30, 2012 at 2:07 PM, Charlie Clark wrote: >> That's a setuptools (or distribute) feature, and should be in the >> primary setup.py that the main developer uses on other platforms. > > Well, where should i

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
On Mon, Apr 30, 2012 at 10:20 AM, Charlie Clark >>> tried to break out the py2app part into a separate script. I'd go farther with this... >> I don't know that py2app reslies on setuptools for anything. > > Maybe it doesn't but I got an error when I moved the relevant part of > setup.py over to

Re: [Pythonmac-SIG] Help with Py2app

2012-04-30 Thread Chris Barker
On Mon, Apr 30, 2012 at 4:26 AM, Charlie Clark > I'm trying to update the setup script for the LinkChecker project > http://linkchecker.sourceforge.net/ because it no longer builds the app and > does not work reliably in a virtualenv. darn... > I am hoping to build a standalone > app and package

Re: [Pythonmac-SIG] py2app and nested packages

2012-04-24 Thread Chris Barker
On Tue, Apr 24, 2012 at 4:29 AM, Ronald Oussoren >> example: the "pubsub" package is delivered with wxPython, so it is >> commonly imported thusly: >> >> from wx.lib.pubsub import Publisher > > wx.lib.pubsub is a bad example, it manipulates __path__ which causes problems > with py2app because it

Re: [Pythonmac-SIG] py2app and nested packages

2012-04-23 Thread Chris Barker
ecipe includes it, excludes doesn't remove it. -Chris On Mon, Apr 23, 2012 at 11:42 AM, Chris Barker wrote: > Folks, > > py2app doesn't seem to do "the right thing" with nested packages. > However, it's not entirely clear what it should do... > >

[Pythonmac-SIG] py2app and nested packages

2012-04-23 Thread Chris Barker
Folks, py2app doesn't seem to do "the right thing" with nested packages. However, it's not entirely clear what it should do... example: the "pubsub" package is delivered with wxPython, so it is commonly imported thusly: from wx.lib.pubsub import Publisher However, in wx.lib.pubsub, there is som

Re: [Pythonmac-SIG] New unofficial binary installers

2012-04-20 Thread Chris Barker
Russell, Thanks for doing these (and the others you've done) It seems to me that there is still a need for an "official" location for such binaries. Bob Ippolito used to have such a site back in the day, and while it's less necessary now (more package developers provide their own binaries), there

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-14 Thread Chris Barker
ng a look. -Chris > Carlos > > On Wed, Mar 14, 2012 at 17:46, Chris Barker wrote: >> >> Nothing to do with your issue (I don't think) but: >> >> >> On Tue, Mar 13, 2012 at 5:17 PM, Carlos Grohmann > *** using recipe: >> virtualenv *** >> >

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-14 Thread Chris Barker
Nothing to do with your issue (I don't think) but: On Tue, Mar 13, 2012 at 5:17 PM, Carlos Grohmann > *** using recipe: virtualenv *** > *** using recipe: sip *** > *** using recipe: matplotlib *** > *** using recipe: numpy *** > *** using recipe: wx *** recipe sip is usually used for PyQT (as s

Re: [Pythonmac-SIG] PyCon..

2012-03-11 Thread Chris Barker
icle <20120311020302.ga31...@illinois.edu>, >> Nicholas Riley wrote: >>> On Sat, Mar 10, 2012 at 04:56:26PM -0800, Ronald Oussoren wrote: >>>> On 10 Mar, 2012, at 15:05, Chris Barker wrote: >>>>> On Tue, Feb 14, 2012 at 7:23 AM, Ned Deily wrote: >>>>

Re: [Pythonmac-SIG] PyCon..

2012-03-10 Thread Chris Barker
On Tue, Feb 14, 2012 at 7:23 AM, Ned Deily wrote: > I'm planning to sprint through Thursday.   I've added a > Mac OS X Support > project to the PyCon sprint page.  Feel free to add topics and add > yourself.  Hope to see you all there! I"ve seen neither you nor Ronald yet... I'm here(there) Mon

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-10 Thread Chris Barker
On Fri, Mar 9, 2012 at 7:22 AM, Ronald Oussoren > Py2app will never be able to do everything, but I'd prefer to get closer than > we're currently. A laudable goal, for sure -- and we much appreciate your work on py2app. > Are there things you have to do every time that could > (easily) be expres

Re: [Pythonmac-SIG] shrink app bundle size (removing unused stuff)?

2012-03-08 Thread Chris Barker
> The only editra I could find was which is an editor, I > don't know why that gets copied into your application. How did you install > Editra, did you use the binary DMG on the website, or did you install from > source? Editra is shipped with wxPython -- so it may have snu

Re: [Pythonmac-SIG] (re)newbie py2app question

2012-03-06 Thread Chris Barker
On Sun, Mar 4, 2012 at 7:28 PM, Charles Hartman wrote: >  My wxPython ("classic," they call it, > for no clear reason; IN case you're curios -- "classic" refers to it being the latest version of the SWIG-based wrappers that have been around for years -- Robin is now working on an updated wxPython

[Pythonmac-SIG] PyCon..

2012-02-13 Thread Chris Barker
Hi folks, PyCon is in Santa Clara CA, USA in March this year. At least Ned and I will be there -- do we have enough Mac folks to do a MacPython sprint? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R            (206) 526-6959   voice 7600 Sand Poi

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-10 Thread Chris Barker
On Thu, Feb 9, 2012 at 1:30 PM, Chris Barker wrote: >>  If it is using C++ >> code, though, you may have to override that yourself since Python itself >> does not contain any C++ code and I don't think there is any special >> code in Distutils to override C++ stu

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
On Thu, Feb 9, 2012 at 12:55 PM, Ned Deily wrote: >> 1) I thought distutils took care of calling the "right" compliler to >> match what pyotn had been built with. I guess not. > > Distutils *does* try to call the right CC compiler (that is, the > compiler the Python itself was built with), unless

Re: [Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
On Thu, Feb 9, 2012 at 11:37 AM, Russell E. Owen wrote: > I suggest you try one of these things: > - Use gcc 4.0.1 to build extensions for 32-bit python.org python. That's > what I'm still doing. It requires XCode 3.x. Thanks -- I"ll try that. but: 1) I thought distutils took care of calling th

[Pythonmac-SIG] Fwd: distutils and stdarg.h

2012-02-09 Thread Chris Barker
darn, forgot to send to the list again -- I hate these defaults! -- Forwarded message -- From: Chris Barker Date: Thu, Feb 9, 2012 at 9:58 AM Subject: Re: [Pythonmac-SIG] distutils and stdarg.h To: Ronald Oussoren On Wed, Feb 8, 2012 at 11:33 PM, Ronald Oussoren wrote

[Pythonmac-SIG] distutils and stdard C++ headers..

2012-02-08 Thread Chris Barker
ome standard stuff. any ideas?? -Chris On Wed, Feb 8, 2012 at 12:14 PM, Chris Barker wrote: > HI folks, > > I'm trying to build the Enthought Tool Suite "Enable" package > > (http://code.enthought.com/projects/index.php) > >  against the python.org 32 bit Int

[Pythonmac-SIG] distutils and stdarg.h

2012-02-08 Thread Chris Barker
HI folks, I'm trying to build the Enthought Tool Suite "Enable" package (http://code.enthought.com/projects/index.php) against the python.org 32 bit Intel/PPC build of python 2.7 I'm getting a bunch of errors like: /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No

Re: [Pythonmac-SIG] [py2app] packaging an egg using pkg_resources

2011-10-20 Thread Chris Barker
On 10/20/2011 2:35 AM, Ronald Oussoren wrote: * py2app is not designed to use eggs That's corrrect. Py2app currently does not copy egg metadata into the application bundle. * pkg_resources requires a distribution format like eggs to have the required metadata to introspect a package.

Re: [Pythonmac-SIG] windll on Mac?

2011-10-02 Thread Chris Barker
above methods You may get help on this from the wx list, but on this list, you'll probably need to figure out what these functions actually do, and how the results are used, to know how you would accomplish the same thing on a Mac. -Chris On 10/1/11, Chris Barker wrote: On 10/1/11

Re: [Pythonmac-SIG] windll on Mac?

2011-10-01 Thread Chris Barker
On 10/1/11 7:28 AM, Alex Hall wrote: I just joined this list, so I am sorry if this is not the right place to ask. I have written an application in python, and one library I use relies on the ctypes.windll functions, specifically user32 and kernel32. I would like to use this library, but I also w

Re: [Pythonmac-SIG] py2app wx.lib.pubsub.Publisher problem

2011-09-17 Thread Chris Barker
On 9/16/11 8:37 PM, Hyeonseung I wrote: I`m trying to make an app bundle via py2app from a project using wxPython and it`s pub feature. But there is a problem whenever running the app. In my code, Publisher is imported as: from wx.lib.pubsub import Publisher as pub ... But when I run the ap

Re: [Pythonmac-SIG] Py2app zlib import error

2011-06-23 Thread Chris Barker
On 6/22/11 7:30 PM, Brian Zambrano wrote: Just bumping this. Does anyone have solution or some advice on how to proceed? The error is: 'import site' failed; use -v for traceback ... zipimport.ZipImportError: can't decompress data; zlib not available This looks like it has not

Re: [Pythonmac-SIG] Getting an Error When Running App built with Py2app

2011-06-07 Thread Chris Barker
On 6/7/11 7:38 PM, Mike wrote: Hi, I built my python program using Py2app, using the default setup.py script. I'm running Mac OSX Snow Leopard 64 bit. which python are you using? Py2app is really expected to work right with Apple's built-in python (it can't include python itself) ImportErro

Re: [Pythonmac-SIG] Loading Python on my Mac

2011-01-12 Thread Chris Barker
On 1/12/2011 7:06 PM, s...@pobox.com wrote: The resulting binary is in /usr/local/bin/python (non-framework version) /usr/local/bin/pythonw (framework version) I'm sure others more knowledgeable about Python-on-a-Mac will correct any mistakes I've made. That all looks right. Note a

Re: [Pythonmac-SIG] Python 2.7b2

2010-05-11 Thread Chris Barker
Ronald Oussoren wrote: As you might know the second beta of python 2.7 was released last weekend. This is the first beta with macosx installers, they can be downloaded from great!, thanks Ronald. There are two installers: one for OSX 10.3 or l

Re: [Pythonmac-SIG] Module Import Problem

2010-04-26 Thread Chris Barker
but it is free. Even if I did I think I'd need to bee running Snow Leopard and I'm running 10.5.5. Any ideas? You need the latest version that runs on 10.5 -- it's there if you dig a bit. -Chris - Original Message - From: "Chris Barker" To: "Mike&q

Re: [Pythonmac-SIG] Module Import Problem

2010-04-25 Thread Chris Barker
Mike wrote: I don't think I'm doing anything special really. Just running it with python zgp.py. It may be something the pyttsx package is doing... how did you install pyttsx ? -Chris - Original Message ----- From: "Chris Barker" To: Sent: Sunday, April 25, 2010

  1   2   3   >