pyobjc-dev Mailing List for PyObjC (Page 10)
Brought to you by:
ronaldoussoren
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
(30) |
May
(18) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2002 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
|
Sep
(23) |
Oct
(180) |
Nov
(291) |
Dec
(95) |
2003 |
Jan
(338) |
Feb
(352) |
Mar
(97) |
Apr
(46) |
May
(226) |
Jun
(184) |
Jul
(145) |
Aug
(141) |
Sep
(69) |
Oct
(161) |
Nov
(96) |
Dec
(90) |
2004 |
Jan
(66) |
Feb
(87) |
Mar
(98) |
Apr
(132) |
May
(115) |
Jun
(68) |
Jul
(150) |
Aug
(92) |
Sep
(59) |
Oct
(52) |
Nov
(17) |
Dec
(75) |
2005 |
Jan
(84) |
Feb
(191) |
Mar
(133) |
Apr
(114) |
May
(158) |
Jun
(185) |
Jul
(62) |
Aug
(28) |
Sep
(36) |
Oct
(88) |
Nov
(65) |
Dec
(43) |
2006 |
Jan
(85) |
Feb
(62) |
Mar
(92) |
Apr
(75) |
May
(68) |
Jun
(101) |
Jul
(73) |
Aug
(37) |
Sep
(91) |
Oct
(65) |
Nov
(30) |
Dec
(39) |
2007 |
Jan
(24) |
Feb
(28) |
Mar
(10) |
Apr
(2) |
May
(18) |
Jun
(16) |
Jul
(21) |
Aug
(6) |
Sep
(30) |
Oct
(31) |
Nov
(153) |
Dec
(31) |
2008 |
Jan
(63) |
Feb
(70) |
Mar
(47) |
Apr
(24) |
May
(59) |
Jun
(22) |
Jul
(12) |
Aug
(7) |
Sep
(14) |
Oct
(26) |
Nov
(5) |
Dec
(5) |
2009 |
Jan
(10) |
Feb
(41) |
Mar
(70) |
Apr
(88) |
May
(49) |
Jun
(62) |
Jul
(34) |
Aug
(15) |
Sep
(55) |
Oct
(40) |
Nov
(67) |
Dec
(21) |
2010 |
Jan
(60) |
Feb
(17) |
Mar
(26) |
Apr
(26) |
May
(29) |
Jun
(4) |
Jul
(21) |
Aug
(21) |
Sep
(10) |
Oct
(12) |
Nov
(3) |
Dec
(19) |
2011 |
Jan
(3) |
Feb
(13) |
Mar
(8) |
Apr
(8) |
May
(17) |
Jun
(20) |
Jul
(21) |
Aug
(7) |
Sep
|
Oct
|
Nov
(9) |
Dec
(11) |
2012 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
(4) |
Jun
(14) |
Jul
(5) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(23) |
Dec
(1) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
(5) |
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(12) |
Nov
(10) |
Dec
(3) |
2014 |
Jan
(7) |
Feb
(14) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(11) |
Jul
(10) |
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(2) |
2015 |
Jan
(9) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(7) |
Jun
|
Jul
(5) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2016 |
Jan
(1) |
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(6) |
Aug
(8) |
Sep
(21) |
Oct
(17) |
Nov
|
Dec
(36) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(6) |
2018 |
Jan
(2) |
Feb
(3) |
Mar
(3) |
Apr
(14) |
May
(2) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
(6) |
2019 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(1) |
2021 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2025 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ronald O. <ron...@ma...> - 2015-11-26 09:21:37
|
PyObjC is not supported on iOS. AFAIK there is or used to be a port to iOS, but I have no idea if that still exists or how well it works. Ronald > On 17 Nov 2015, at 05:45, Anu P <tek...@gm...> wrote: > > Hello, > > Please help me to get answer. > > Anu > > On Sun, Nov 15, 2015 at 6:11 PM, Anu P <tek...@gm... <mailto:tek...@gm...>> wrote: > Hello, > > I am an iOS/android programmer. I have recently created an iOS framework with a number of APIs. > I would provide this API to other developers so that they will create iOS apps based on my framework file. > I thought to verify APIs implementation through automation as I might update APIs implementation frequently. > I thought to create Python scripts for my tests and call my iOS framework APIs. I came across pyObjc and thought that I pyObjc can help here. > > Is there a way to automate my iOS APIs testing using pyObjC? > > Any help is highly appreciated. > > Thanks in advance. > > Thanks, > Anu > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Anu P <tek...@gm...> - 2015-11-17 04:45:29
|
Hello, Please help me to get answer. Anu On Sun, Nov 15, 2015 at 6:11 PM, Anu P <tek...@gm...> wrote: > Hello, > > I am an iOS/android programmer. I have recently created an iOS framework > with a number of APIs. > I would provide this API to other developers so that they will create iOS > apps based on my framework file. > I thought to verify APIs implementation through automation as I might > update APIs implementation frequently. > I thought to create Python scripts for my tests and call my iOS framework > APIs. I came across pyObjc and thought that I pyObjc can help here. > > Is there a way to automate my iOS APIs testing using pyObjC? > > Any help is highly appreciated. > > Thanks in advance. > > Thanks, > Anu > |
From: Anu P <tek...@gm...> - 2015-11-16 02:11:48
|
Hello, I am an iOS/android programmer. I have recently created an iOS framework with a number of APIs. I would provide this API to other developers so that they will create iOS apps based on my framework file. I thought to verify APIs implementation through automation as I might update APIs implementation frequently. I thought to create Python scripts for my tests and call my iOS framework APIs. I came across pyObjc and thought that I pyObjc can help here. Is there a way to automate my iOS APIs testing using pyObjC? Any help is highly appreciated. Thanks in advance. Thanks, Anu |
From: Georg S. <geo...@gm...> - 2015-10-05 07:34:50
|
Hi, I’m just trying to get a plugins I use for my app to use Python3. I installed Python 3.5 (standard installer) and pyobjc (python3.5 -m easy_install -U pyobjc). Then I make a plugin bundle with `python3.5 setup.py py2app`. When I then load the plugin I get a zipimport.ZipImportError: can't decompress data; zlib not available Can someone help me with this? Thanks Georg |
From: Georg S. <geo...@gm...> - 2015-08-31 14:08:56
|
Hi, I have and ObjC app that embeds some python scripting using PyRun_SimpleString(). This all works fine. For simple scripts it is easy to catch exceptions, just wrap the PyRun_SimpleString() call in a @try/@catch. But if a script adds some UI and throws an exception in a button callback, it is outside of the try block and crashes the app. Is there a way to attach an exception handler to the python environment? And what is the best way to extract the most information from the exception (traceback...) from outside of the python environment? For now I added a try block in [NSApplication sentEvent:] but that gives me only the "error message" but not the python back trace. Thanks in advance. Georg |
From: Robert K. <rob...@gm...> - 2015-08-24 06:52:13
|
Ronald Oussoren <ron...@ma...> wrote on Thu Aug 20 2015 at 21:38:55: > Could you file a ticket at my bitbucket repository? I want to provide wrappers for all frameworks, but that takes a lot of time and a ticket helps me to prioritise. Done: https://bitbucket.org/ronaldoussoren/pyobjc/issues/135/wrap-security-frameworks <https://bitbucket.org/ronaldoussoren/pyobjc/issues/135/wrap-security-frameworks> – robert |
From: Ronald O. <ron...@ma...> - 2015-08-20 19:37:42
|
> On 19 Aug 2015, at 09:00, Robert Klep <rob...@gm...> wrote: > > All, > > My goal is to call [SFAuthorization authorizationWithFlags:rights:environment:] <https://developer.apple.com/library/prerelease/mac/documentation/Security/Reference/SecurityFoundationFramework/Classes/SFAuthorization_Class/index.html#//apple_ref/occ/clm/SFAuthorization/authorizationWithFlags:rights:environment:> from PyObjC. My main issue is with the `rights` argument, a pointer to AuthorizationRights <https://developer.apple.com/library/prerelease/mac/documentation/Security/Reference/authorization_ref/index.html#//apple_ref/swift/tdef/c:@T@AuthorizationRights>. The rights argument is a pass by reference argument. The easiest way to use them is to tell this to PyObjC, something like: objc.registerMetadataForSelector(b’SFAuthorization’, b’authorizationWithFlags:rights:environment:’, { ‘arguments’: { 3: { ‘type_modifier’: b’n’ }, 4: { ‘type_modifier’: b’n’ }, } }) That said, AuthorizationRights is an alias for AuthorisationItemSet and that is a struct with an embedded pointer to a buffer and that’s something that PyObjC doesn’t really support at the moment. Could you file a ticket at my bitbucket repository? I want to provide wrappers for all frameworks, but that takes a lot of time and a ticket helps me to prioritise. Ronald > > I initially found this issue: Add ctypes support <https://bitbucket.org/ronaldoussoren/pyobjc/issues/23/add-ctypes-support>, which uses ctypes to create AuthorizationRights. However, even though the issue was solved, I have no idea how to get it working (PyObjC 3.0.4 on OSX 10.10.4). > > Specifically, I'm using this: > > auth = SFAuthorization.authorizationWithFlags_rights_environment_( > 19, > ctypes.pointer(authorization_rights), > None) > > Which results in an error similar to the one mentioned in the issue: > > ValueError: depythonifying 'pointer', got 'LP_AuthorizationRights' > > I also looked at objc.createStructType() <https://pythonhosted.org/pyobjc/metadata/manual.html#objc.createStructType> to use instead of ctypes, but got stuck on the `typestr` argument (I can't find any documentation on it; I assumed it might be similar to Objective-C method signatures, but those aren't very well documented either). > > Any help would be greatly appreciated! > > – robert > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Robert K. <rob...@gm...> - 2015-08-19 07:22:01
|
All, My goal is to call [SFAuthorization authorizationWithFlags:rights:environment:] <https://developer.apple.com/library/prerelease/mac/documentation/Security/Reference/SecurityFoundationFramework/Classes/SFAuthorization_Class/index.html#//apple_ref/occ/clm/SFAuthorization/authorizationWithFlags:rights:environment:> from PyObjC. My main issue is with the `rights` argument, a pointer to AuthorizationRights <https://developer.apple.com/library/prerelease/mac/documentation/Security/Reference/authorization_ref/index.html#//apple_ref/swift/tdef/c:@T@AuthorizationRights>. I initially found this issue: Add ctypes support <https://bitbucket.org/ronaldoussoren/pyobjc/issues/23/add-ctypes-support>, which uses ctypes to create AuthorizationRights. However, even though the issue was solved, I have no idea how to get it working (PyObjC 3.0.4 on OSX 10.10.4). Specifically, I'm using this: auth = SFAuthorization.authorizationWithFlags_rights_environment_( 19, ctypes.pointer(authorization_rights), None) Which results in an error similar to the one mentioned in the issue: ValueError: depythonifying 'pointer', got 'LP_AuthorizationRights' I also looked at objc.createStructType() <https://pythonhosted.org/pyobjc/metadata/manual.html#objc.createStructType> to use instead of ctypes, but got stuck on the `typestr` argument (I can't find any documentation on it; I assumed it might be similar to Objective-C method signatures, but those aren't very well documented either). Any help would be greatly appreciated! – robert |
From: Diez B. R. <de...@we...> - 2015-08-10 10:17:53
|
This isn’t a pyobjc-issue, but a pip/SSL setup thing. Here you find a few possible solutions: http://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi <http://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi> HTH, Diez > On 05 Aug 2015, at 16:55, Danny Rubin <dan...@ic...> wrote: > > I am running MacOS 10.10.3 > I downloaded pyobjc-3.0.4 > When I try to install using ‘sudo python setup.py install’ I get the following errors: > > > Download error on https://pypi.python.org/simple/pyobjc-framework-StoreKit/: <https://pypi.python.org/simple/pyobjc-framework-StoreKit/:> [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found! > Couldn't find index page for 'pyobjc-framework-StoreKit' (maybe misspelled?) > Scanning index of all packages (this may take a while) > Reading https://pypi.python.org/simple/ <https://pypi.python.org/simple/> > Download error on https://pypi.python.org/simple/: <https://pypi.python.org/simple/:> [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found! > No local packages or download links found for pyobjc-framework-StoreKit==3.0.4 > error: Could not find suitable distribution for Requirement.parse('pyobjc-framework-StoreKit==3.0.4') > > Any idea what might be causing this error and how I can fix it? > thank you in advance > Danny > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Danny R. <dan...@ic...> - 2015-08-05 14:56:08
|
I am running MacOS 10.10.3 I downloaded pyobjc-3.0.4 When I try to install using ‘sudo python setup.py install’ I get the following errors: Download error on https://pypi.python.org/simple/pyobjc-framework-StoreKit/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found! Couldn't find index page for 'pyobjc-framework-StoreKit' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581) -- Some packages may not be found! No local packages or download links found for pyobjc-framework-StoreKit==3.0.4 error: Could not find suitable distribution for Requirement.parse('pyobjc-framework-StoreKit==3.0.4') Any idea what might be causing this error and how I can fix it? thank you in advance Danny |
From: Ronald O. <ron...@ma...> - 2015-07-24 14:32:42
|
I have thought about this (or rather, about just patching the SDK headers directly) and this might work, but I don’t know how much crap I’d run into with this. I have to do manual work anyway to verify the extracted information and write test cases, and for now I’ll just do everything by hand. To limit the amount of work I’ve started a local Mercurial repository containing the current SDK headers, I’ll use that to detect changes and update the metadata. To be honest the metadata extractor tools haven’t brought what I’d hoped: I basically end up having to do a lot of work between OSX releases just to keep those tools working and would have had to spent less time if I just had started with manually maintained bindings in the first place. I don’t really like this because I’ll have to do a lot of boring grunt work, but working on the tooling sucks as well. I still hope to have finished the work on the 10.11 bindings by the time 10.11 is released, and hopefully can start doing more fun work afterwards (such as hacking on asyncio support in PyObjC). Ronald > On 23 Jul 2015, at 19:10, Ian McCullough <ip...@po...> wrote: > > Just curious, have you considered making a deep copy of the headers and simply find/replacing all the nonnull stuff out of it, and then using the resulting headers? > > Ian > > > On Thu, Jul 23, 2015 at 9:14 AM, Ronald Oussoren <ron...@ma... <mailto:ron...@ma...>> wrote: > > > On 21 Jul 2015, at 18:31, Ronald Oussoren <ron...@ma... <mailto:ron...@ma...>> wrote: > > > > > >> On 21 Jul 2015, at 17:01, Ronald Oussoren <ron...@ma... <mailto:ron...@ma...>> wrote: > >> > >> Hi, > >> > >> I was stupid enough to start working on the framework bindings for OSX 10.11, and guess what: the tool for generating the metadata doesn’t work with the 10.11 headers due to unexpected breakage in libclang (for some reason the type attribute of some nodes no longer revers to the actual type but some “UNEXPOSED” node instead). The headers for 10.10 work fine with the same compiler… Sigh…. > >> > >> I’ll see if I can work around this problem, but this does mean that generating the 10.11 bindings will take longer than I had hoped. And that’s already way longer than it should be, but I have plans to reduce the amount of work needed. > >> > >> Back to fighting with tools, > > > > I have found why I run into problems, but haven’t found a solution yet. The problem is that there are implicit __nonnull attributes on values (or types) and that attribute type is not exposed through libclang (or maybe there’s just a problem with the python bindings to libclang, but the former seems more likely). > > > > Now just to find a way around this… > > I haven’t found a way around this and have decided not to spent more time fighting libclang for now. For now I’ll just maintain the bindings completely by hand. I’ve done some restructuring on my machine that should make this easier, at least once I’ve done a pass through the beta3 headers for all frameworks that already have bindings. > > This sucks, but I don’t think I’ll find a better solution without hacking on libclang and that’s not something I’m willing to do at the moment (and even then it wouldn’t help, I could only use the result when the resulting patch would be used in the libclang that shipped with Xcode). > > Maybe I should “just” write my own Objective-C parser in Python later on ;-) > > Ronald > > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... <mailto:Pyo...@li...> > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev <https://lists.sourceforge.net/lists/listinfo/pyobjc-dev> > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Ian M. <ip...@po...> - 2015-07-23 17:19:21
|
Just curious, have you considered making a deep copy of the headers and simply find/replacing all the nonnull stuff out of it, and then using the resulting headers? Ian On Thu, Jul 23, 2015 at 9:14 AM, Ronald Oussoren <ron...@ma...> wrote: > > > On 21 Jul 2015, at 18:31, Ronald Oussoren <ron...@ma...> > wrote: > > > > > >> On 21 Jul 2015, at 17:01, Ronald Oussoren <ron...@ma...> > wrote: > >> > >> Hi, > >> > >> I was stupid enough to start working on the framework bindings for OSX > 10.11, and guess what: the tool for generating the metadata doesn’t work > with the 10.11 headers due to unexpected breakage in libclang (for some > reason the type attribute of some nodes no longer revers to the actual type > but some “UNEXPOSED” node instead). The headers for 10.10 work fine with > the same compiler… Sigh…. > >> > >> I’ll see if I can work around this problem, but this does mean that > generating the 10.11 bindings will take longer than I had hoped. And that’s > already way longer than it should be, but I have plans to reduce the amount > of work needed. > >> > >> Back to fighting with tools, > > > > I have found why I run into problems, but haven’t found a solution yet. > The problem is that there are implicit __nonnull attributes on values (or > types) and that attribute type is not exposed through libclang (or maybe > there’s just a problem with the python bindings to libclang, but the former > seems more likely). > > > > Now just to find a way around this… > > I haven’t found a way around this and have decided not to spent more time > fighting libclang for now. For now I’ll just maintain the bindings > completely by hand. I’ve done some restructuring on my machine that should > make this easier, at least once I’ve done a pass through the beta3 headers > for all frameworks that already have bindings. > > This sucks, but I don’t think I’ll find a better solution without hacking > on libclang and that’s not something I’m willing to do at the moment (and > even then it wouldn’t help, I could only use the result when the resulting > patch would be used in the libclang that shipped with Xcode). > > Maybe I should “just” write my own Objective-C parser in Python later on > ;-) > > Ronald > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Ronald O. <ron...@ma...> - 2015-07-23 13:14:28
|
> On 21 Jul 2015, at 18:31, Ronald Oussoren <ron...@ma...> wrote: > > >> On 21 Jul 2015, at 17:01, Ronald Oussoren <ron...@ma...> wrote: >> >> Hi, >> >> I was stupid enough to start working on the framework bindings for OSX 10.11, and guess what: the tool for generating the metadata doesn’t work with the 10.11 headers due to unexpected breakage in libclang (for some reason the type attribute of some nodes no longer revers to the actual type but some “UNEXPOSED” node instead). The headers for 10.10 work fine with the same compiler… Sigh…. >> >> I’ll see if I can work around this problem, but this does mean that generating the 10.11 bindings will take longer than I had hoped. And that’s already way longer than it should be, but I have plans to reduce the amount of work needed. >> >> Back to fighting with tools, > > I have found why I run into problems, but haven’t found a solution yet. The problem is that there are implicit __nonnull attributes on values (or types) and that attribute type is not exposed through libclang (or maybe there’s just a problem with the python bindings to libclang, but the former seems more likely). > > Now just to find a way around this… I haven’t found a way around this and have decided not to spent more time fighting libclang for now. For now I’ll just maintain the bindings completely by hand. I’ve done some restructuring on my machine that should make this easier, at least once I’ve done a pass through the beta3 headers for all frameworks that already have bindings. This sucks, but I don’t think I’ll find a better solution without hacking on libclang and that’s not something I’m willing to do at the moment (and even then it wouldn’t help, I could only use the result when the resulting patch would be used in the libclang that shipped with Xcode). Maybe I should “just” write my own Objective-C parser in Python later on ;-) Ronald |
From: Ronald O. <ron...@ma...> - 2015-07-22 09:32:22
|
> On 21 Jul 2015, at 17:01, Ronald Oussoren <ron...@ma...> wrote: > > Hi, > > I was stupid enough to start working on the framework bindings for OSX 10.11, and guess what: the tool for generating the metadata doesn’t work with the 10.11 headers due to unexpected breakage in libclang (for some reason the type attribute of some nodes no longer revers to the actual type but some “UNEXPOSED” node instead). The headers for 10.10 work fine with the same compiler… Sigh…. > > I’ll see if I can work around this problem, but this does mean that generating the 10.11 bindings will take longer than I had hoped. And that’s already way longer than it should be, but I have plans to reduce the amount of work needed. > > Back to fighting with tools, I have found why I run into problems, but haven’t found a solution yet. The problem is that there are implicit __nonnull attributes on values (or types) and that attribute type is not exposed through libclang (or maybe there’s just a problem with the python bindings to libclang, but the former seems more likely). Now just to find a way around this... Ronald |
From: Ronald O. <ron...@ma...> - 2015-07-22 01:16:18
|
Hi, In issue #124 <https://bitbucket.org/ronaldoussoren/pyobjc/issues/124/odd-crash-when-deallocating-oc_pythonarray <https://bitbucket.org/ronaldoussoren/pyobjc/issues/124/odd-crash-when-deallocating-oc_pythonarray>> it appears that there is a race condition when cleanly existing an application. The application launching stub basically does: Py_Initialize(); PyRun_….(); /* Actually run the main python script which starts a (Cocoa) eventloop */ Py_Finalize(); The race condition occurs during (or after) the last line: some background process of the Cocoa frameworks still has a reference to a Python object and tries to use it. When you’re unlucky this happens when the interpreter is already marked as unitialized and you get a crash when PyObjC tries to call into the interpreter. Does anyone know of a way to run code *after* Cocoa’s house keeping code is idle? The alternative would be to not call Py_Finalize(), but then the interpreter doesn’t shut down cleanly and that can have unwanted side effects as well (such as files not being closed cleanly, which might leave buffers unflushed). Ronald |
From: Georg S. <geo...@gm...> - 2015-05-06 19:10:23
|
Hi I usually use NSClassFromString(). Georg > Am 06.05.2015 um 12:42 schrieb Ronald Oussoren <ron...@ma...>: > > >> On 06 May 2015, at 10:06, Robert Klep <rob...@gm...> wrote: >> >> Hey Eric, >> >> I think that MVMailBundle is implemented by the Mail application itself, so you can only look it up within that context (ie running as a plug-in inside Mail). It's not clear to me if you're doing that. >> >> FWIW, my Mail plug-in actually uses `objc.runtime.MVMailBundle` instead of using `objc.lookUpClass()` for that particular class (can't remember why; at some point I switched from using lookUpClass() to using objc.runtime), although I do look up other (Mail-only) classes using it. > > objc.runtime is deprecated, and IIRC I removed it in PyObjC 3.0 > > Ronald > >> >> – robert >> >> Eric Fernance <er...@di...> wrote on Wed May 06 2015 at 09:13:25: >>> Hi Folks, >>> >>> I feel like I’ve been banging my head against a wall and looking for a couple of pointers. >>> >>> I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass. For some reason I seem completely unable to get this to work. >>> >>> I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc). When I try to load the MVMailBundle class using: >>> >>> objc.lookUpClass('MVMailBundle’) >>> >>> I receive an error: objc.nosuchclass_error: MVMailBundle >>> >>> System details are: Mac OSX 10.10.2 >>> Python: 2.7 >>> PyObjC: PyObjC 3.0.4 >>> >>> Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks? >>> >>> Any guidance would be really appreciated. >>> >>> Cheers, >>> Eric. >>> >>> ------------------------------------------------------------------------------ >>> One dashboard for servers and applications across Physical-Virtual-Cloud >>> Widest out-of-the-box monitoring support with 50+ applications >>> Performance metrics, stats and reports that give you Actionable Insights >>> Deep dive visibility with transaction tracing using APM Insight. >>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ >>> Pyobjc-dev mailing list >>> Pyo...@li... >>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Robert K. <rob...@gm...> - 2015-05-06 12:28:22
|
Ronald Oussoren <ron...@ma...> wrote on Wed May 06 2015 at 13:07:26: >> FWIW, my Mail plug-in actually uses `objc.runtime.MVMailBundle` instead of using `objc.lookUpClass()` for that particular class (can't remember why; at some point I switched from using lookUpClass() to using objc.runtime), although I do look up other (Mail-only) classes using it. > > objc.runtime is deprecated, and IIRC I removed it in PyObjC 3.0 Good to know, thanks. – robert |
From: Ronald O. <ron...@ma...> - 2015-05-06 11:07:13
|
> On 06 May 2015, at 10:06, Robert Klep <rob...@gm...> wrote: > > Hey Eric, > > I think that MVMailBundle is implemented by the Mail application itself, so you can only look it up within that context (ie running as a plug-in inside Mail). It's not clear to me if you're doing that. > > FWIW, my Mail plug-in actually uses `objc.runtime.MVMailBundle` instead of using `objc.lookUpClass()` for that particular class (can't remember why; at some point I switched from using lookUpClass() to using objc.runtime), although I do look up other (Mail-only) classes using it. objc.runtime is deprecated, and IIRC I removed it in PyObjC 3.0 Ronald > > – robert > > Eric Fernance <er...@di... <mailto:er...@di...>> wrote on Wed May 06 2015 at 09:13:25: >> Hi Folks, >> >> I feel like I’ve been banging my head against a wall and looking for a couple of pointers. >> >> I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass. For some reason I seem completely unable to get this to work. >> >> I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc). When I try to load the MVMailBundle class using: >> >> objc.lookUpClass('MVMailBundle’) >> >> I receive an error: objc.nosuchclass_error: MVMailBundle >> >> System details are: Mac OSX 10.10.2 >> Python: 2.7 >> PyObjC: PyObjC 3.0.4 >> >> Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks? >> >> Any guidance would be really appreciated. >> >> Cheers, >> Eric. >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________> >> Pyobjc-dev mailing list >> Pyo...@li... >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Ronald O. <ron...@ma...> - 2015-05-06 11:06:17
|
> On 06 May 2015, at 08:11, Eric Fernance <er...@di...> wrote: > > Hi Folks, > > I feel like I’ve been banging my head against a wall and looking for a couple of pointers. > > I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass. For some reason I seem completely unable to get this to work. > > I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc). When I try to load the MVMailBundle class using: > > objc.lookUpClass('MVMailBundle’) > > I receive an error: objc.nosuchclass_error: MVMailBundle > > System details are: Mac OSX 10.10.2 > Python: 2.7 > PyObjC: PyObjC 3.0.4 > > Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks? You need to ensure that the private framework is loaded, otherwise the class won’t be available. Ronald > > Any guidance would be really appreciated. > > Cheers, > Eric. > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Robert K. <rob...@gm...> - 2015-05-06 08:27:09
|
Hey Eric, I think that MVMailBundle is implemented by the Mail application itself, so you can only look it up within that context (ie running as a plug-in inside Mail). It's not clear to me if you're doing that. FWIW, my Mail plug-in actually uses `objc.runtime.MVMailBundle` instead of using `objc.lookUpClass()` for that particular class (can't remember why; at some point I switched from using lookUpClass() to using objc.runtime), although I do look up other (Mail-only) classes using it. – robert Eric Fernance <er...@di...> wrote on Wed May 06 2015 at 09:13:25: > Hi Folks, > > I feel like I’ve been banging my head against a wall and looking for a couple of pointers. > > I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass. For some reason I seem completely unable to get this to work. > > I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc). When I try to load the MVMailBundle class using: > > objc.lookUpClass('MVMailBundle’) > > I receive an error: objc.nosuchclass_error: MVMailBundle > > System details are: Mac OSX 10.10.2 > Python: 2.7 > PyObjC: PyObjC 3.0.4 > > Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks? > > Any guidance would be really appreciated. > > Cheers, > Eric. > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Eric F. <er...@di...> - 2015-05-06 07:09:02
|
Hi Folks, I feel like I’ve been banging my head against a wall and looking for a couple of pointers. I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass. For some reason I seem completely unable to get this to work. I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc). When I try to load the MVMailBundle class using: objc.lookUpClass('MVMailBundle’) I receive an error: objc.nosuchclass_error: MVMailBundle System details are: Mac OSX 10.10.2 Python: 2.7 PyObjC: PyObjC 3.0.4 Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks? Any guidance would be really appreciated. Cheers, Eric. |
From: Ronald O. <ron...@ma...> - 2015-05-05 16:16:11
|
> On 23 Mar 2015, at 13:38, Karsten Wolf <kar...@go...> wrote: > > Hello, > > is it now possible to create pyobjc/py2app applications for system versions lower than the compiling system? > > The problem is that customer A (who needs the py2app programs) is on 10.6 and customer B urges me to upgrade to 10.7 for vpn/network reasons. > > Is that solvable without maintaining (and permanently rebooting) 2 systems? It is, although you still have to test to be sure. Providing tested binaries for PyObjC is on my wishlist, and has been for quite some time. With those binaries it would be a trivial task. In general it should be possible to build an application needs to be deployed on on older OSX release by setting the deployment target appropriately[1] when building the C code. The hard part is making sure that the build process doesn’t pick up unwanted dependencies, especially when using autoconf. PyObjC, and Python itself, should be safe in that regard. Ronald [1] Ignoring PPC, Apple’s toolchain doesn’t support that with recent enough releases of Xcode. > > -karsten > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |
From: Karsten W. <kar...@go...> - 2015-03-23 12:38:08
|
Hello, is it now possible to create pyobjc/py2app applications for system versions lower than the compiling system? The problem is that customer A (who needs the py2app programs) is on 10.6 and customer B urges me to upgrade to 10.7 for vpn/network reasons. Is that solvable without maintaining (and permanently rebooting) 2 systems? -karsten |
From: Ian M. <ip...@po...> - 2015-02-04 18:45:07
|
So I had an idea, and I wanted to see if anyone else had any thoughts on it: I use PyCharm for all my python development. It has pretty good code completion for the core python API and has what's called "skeletons" for other, external modules. These skeletons are discussed in limited detail here: https://www.jetbrains.com/pycharm/help/using-python-skeletons.html In short, these skeletons are valid python files with stubs for all the functions in the module, and ideally, with type annotations for parameters and return types. This facilitates not only code completion, but allows for a useful (if not complete) amount of static analysis. Within the libraries for which skeletons exist, they have proven to be incredible productivity accelerators. For me, working with PyObjC has been harder than working with other python modules because (I assume because of the lazy nature of PyObjC modules) PyCharm doesn't have, and doesn't seem to generate skeletons for PyObjC modules. It looks like their generator looks for exported symbols in the modules, and since it seems that everything for PyObjC is handled dynamically, the generator doesn't find anything. That roadblock aside, it seems like with the rich metadata already required for the bridge, it should be possible to generate skeletons from the PyObjC modules that would facilitate code-completion and static analysis in IDEs that support it. I was planning to hack on this for a little while over my impending vacation, but I figured I'd put out this message to see if anyone else had looked into this, or had thoughts on the subject. Sure would be nice to be able to work with code completion and static analysis for PyObjC modules. Regards, Ian |
From: Greg E. <gre...@ca...> - 2015-02-02 23:39:49
|
Ronald Oussoren wrote: > > A site like kickstarter also appears to > require you to work on a specific product (a gadget, new software, …) > and not ongoing development of an existing project. Patreon might be a better option for something like PyObjC: https://www.patreon.com/ -- Greg |