Re: [Pythonmac-SIG] Moving to python3.12 on M3 Max

2024-09-17 Thread Georg Seifert via Pythonmac-SIG
> Am 16.09.2024 um 22:04 schrieb jack.jansen--- via Pythonmac-SIG > : > > The big advantage of the Homebrew install is that it allows multiple version > of Python to co-exist peacefully. I have python.org 3.8 to 3.13 installed and it works just fine (don’t ask why). You can access each vers

Re: [Pythonmac-SIG] Building plans .....

2020-03-16 Thread Georg Seifert
python interpreter? OR if you are using XCode as your IDE for > developing a Python App? > I’m using that in my app (written in ObjectiveC) to be able to run python scripts inside the app and to load plugins that are written in python but don’t bring ther

[Pythonmac-SIG] custom framework with bridgesupport file

2011-04-19 Thread Georg Seifert
Hi, I have an app written in cocoa and run python scripts from within the app using "PyRun_SimpleString" (I asked about that a couple of times and got great help). My problem now is that I want to use some c functions from within a custom framework that is embedded in my app. The only way I cou

Re: [Pythonmac-SIG] lists and accessors

2010-07-16 Thread Georg Seifert
Hi Ronald, This works wonderfully. Many Thanks. Georg > > On 11 Jul, 2010, at 1:18, Georg Seifert wrote: > >> Hi Ronald, >> >> Thanks for your response. >> >> I did tried this: >> >> class PathNodesProxy (object): >>

Re: [Pythonmac-SIG] lists and accessors

2010-07-10 Thread Georg Seifert
ards Georg On 08.07.2010, at 23:16, Ronald Oussoren wrote: > > On 8 Jul, 2010, at 23:00, Georg Seifert wrote: > >> Hi, >> >> In my app I will access my cocoa data classes from a python script (run from >> within the app). This works fine, I can access

[Pythonmac-SIG] lists and accessors

2010-07-08 Thread Georg Seifert
Hi, In my app I will access my cocoa data classes from a python script (run from within the app). This works fine, I can access all the methods and properties. For some of the array properties I use dedicated getter and setter (getItemAtIndex: , setItemAtIndex: ...). I have a cocoa object: @i

Re: [Pythonmac-SIG] python plugins in Cocoa app.

2010-07-02 Thread Georg Seifert
s='GSToolTest', CFBundleIdentifier = "com.GlyphsTestPlugin.GlyphsExport", NSHumanReadableCopyright = "Copyright, Georg Seifert, 2010", ) setup( plugin = ['GlyphsToolTest.py'], options=dict(py2app=dict(

Re: [Pythonmac-SIG] python plugins in Cocoa app.

2010-07-02 Thread Georg Seifert
Hi, Thanks a lot. This did the trick. By the way. Is it save to use the "-A" option in my bundles if I ship the plugin to uses? Many Thanks Georg Seifert p.s. You can have a look at the app (it is an open BETA version) www.glyphsapp.com > >> Hi, >> >> I hav

[Pythonmac-SIG] python plugins in Cocoa app.

2010-07-02 Thread Georg Seifert
quot;); Py_Finalize(); In my app, I week link to python through OTHER_LDFLAGS = -weak_framework Python (This was needed to support both Leopard and Snow Leopard.) Can anyone shed some light on my problem? Best Regards Georg Seifert

[Pythonmac-SIG] shild App against crashes in call of PyRun_SimpleString

2010-01-22 Thread Georg Seifert
Hi, What is the best way to protect my app from crashes if something went wrong in a PyRun_SimpleString call. I get (very few) crash reports like the on below. Does someone know what is going on? This happened with 10.6.2. Thanks Georg Application Specific Information: Assertion failed: (au

Re: [Pythonmac-SIG] Link against Python Framework

2009-09-10 Thread Georg Seifert
If you want to make absolutely sure that Apple can't break you, you could bundle the version of Python.framework upon which you depend into your app. However, that's probably not necessary unless you want to use a newer version of Python than the system has (say, 3.0+, or 2.6 on Leopard)

[Pythonmac-SIG] Link against Python Framework

2009-09-09 Thread Georg Seifert
Hi, In my Cocoa app, I link agains the Python framework to be able to call "PyRun_SimpleString" and load bundles based on python. If I set the Base SDK to 10.5, it runs on 10.5 and 10.6. But if I set it to 10.6 and MACOSX_DEPLOYMENT_TARGET = 10.5 it complains in Leopard that it can’t find

[Pythonmac-SIG] scripting over Distributed Objects

2009-06-11 Thread Georg Seifert
Hi, I try to script me app using the JSTalk framework. My app i written in cocoa. I works nice with Javascript and if I use python from within my app with "PyRun_SimpleString" but if I use python over the DO connection I get problems. What the JSTalk framework does is it establishes a con

Re: [Pythonmac-SIG] Problem with Framework

2008-08-10 Thread Georg Seifert
is there a way to select witch framework to use? Georg On 9-Aug-2008, at 17:56 , Georg Seifert wrote: Dyld Error Message: Library not loaded: /Library/Frameworks/Python.framework/Versions/ 2.4/Python Referenced from: /Users/Tim/Desktop/Pantografer.app/Contents/MacOS/ Pantografer

[Pythonmac-SIG] Problem with Framework

2008-08-09 Thread Georg Seifert
Hello, I use some python code in my Cocoa app witch target Leopard. main.m: #import and: Py_Initialize(); in my code I use: PyRun_SimpleString(..) It works fine on my machine but on other machines it crashes on startup with: Date/Time: 2008-08-07 00:08:39.219 +0100 OS Version:

[Pythonmac-SIG] python Plugin conform to protocol

2008-06-23 Thread Georg Seifert
Hello, I have a Cocoa app with loads plugins. I want to use some python plugins but I have problems getting them to work. The Plugin implementation contains: myExport = objc.protocolNamed('myExportProtocol') class GSExporter(NSObject, myExport): def __init__(self): ... But if I do:

[Pythonmac-SIG] build Python Plugin in XCode

2008-06-05 Thread Georg Seifert
hello, is is possible, to build plugins (like the Cocoa Bundles) written in python? I could use py2app, but I have problems with it (as you can see in my last post). There are presets for python apps, but not for bundles. regards Georg ___ Python

[Pythonmac-SIG] plugin destroys python?

2008-06-03 Thread Georg Seifert
Hello once again me ;( I have an other problem: My program load some plugins with this code: for(NSString * currPath in bundlePaths) { currBundle = [NSBundle bundleWithPath:currPath]; if(currBundle) { currPr

[Pythonmac-SIG] extractClasses and NIB 3.0

2008-06-03 Thread Georg Seifert
Hello, I try to write a plugin to my app using py2app (the app itself is written in ObjectC). My program is targeted for Leopard only so my NIB- Files are version 3.x. it seems, that "NibClassBuilder.extractClasses()" cannot read this NIB files as I get the following when loading the bundl

[Pythonmac-SIG] what object I can assign to sys.stderr

2008-05-22 Thread Georg Seifert
hello, with your kind help my project develops very well. I want to redirect the output (stdout and stderr) to a NSTextView. I found out that I can assign a file object to sys.stdout. How does an ObjectC object needs to looks like that I could use it as a "file object"? Thanks in advance

Re: [Pythonmac-SIG] embed python in cocoa

2008-05-22 Thread Georg Seifert
ael On Mon, May 19, 2008 at 6:45 PM, Georg Seifert <[EMAIL PROTECTED]> wrote: It becomes a little trickier if you want your scripts to have access to instance variables. In that case, you must create a mechanism by which you can find them (I've used a Singleton pattern for this

Re: [Pythonmac-SIG] embed python in cocoa

2008-05-19 Thread Georg Seifert
I didn’t make myself clear what I want to do: I have a app written in ObjectC and want to embed python to be able to run scripts from within my app. The user should be abel to write his own scripts to modify the model data. So I need to expose the data- classes to python. for c++ it is des

[Pythonmac-SIG] embed python in cocoa

2008-05-18 Thread Georg Seifert
Hello, I want wo be able to make my program scriptable with python. My program is written in ObjectC in XCode 3 (target only for MacOSX 10.5). I want to embed it and use Py_Initialize(); PyRun_SimpleString(". Can anyone give me some advice how I wrap my cocoa classes to be able to ac