Integrating Python, was Re: The New Product

IT it at plastipol.com
Thu Nov 24 10:45:00 UTC 2022


Hi Phil,

I have it working.

I miss that opython3.u_xcomp requires python 3.10 installed and I had 3.9. After intalling version 3.10 the xcomp loads without error.

Thank you for your assistance.

regards

xavier

> El 20 oct 2022, a las 11:58, Phil (OmnisList) <phil at pgpotter.co.uk> escribió:
> 
> Xavier,
> 
> Did you get this working, or do you need further info from Stefan.
> 
> I was curious, so tried this also, and so far have not got passed the missing dylib message, whilst putting an alias where I thought it should go.
> 
> I was testing on Mac M1, with O$10.22, python3 xcomp built from the xcode project.
> 
> I was only curious, so doesn't matter to me if it works...
> 
> In the past I used python scripts to communicate to google calendars with oauth2, but these days you can do that within O$10.2 directly.
> 
> regards
> Phil Potter
> Based in Chester in the UK.
> 
> On 19/10/2022 18:11, Stefan Csomor wrote:
>> Hi Xavier
>> 
>> And this was fromhttps://www.python.org/downloads/  ? I'm right now linking against the 3.10 python release which gets installed into
>> 
>> /Library/Frameworks/Python.framework/Versions/3.10/Python
>> 
>> Best,
>> 
>> Stefan
>> 
>> Am 19.10.22, 18:31 schrieb "omnisdev-en im Auftrag von IT"<omnisdev-en-bounces at lists.omnis-dev.com im Auftrag von it at plastipol.com>:
>> 
>>     Hi,
>> 
>>     I have python 3 instaled on Intel Mac.
>> 
>>     xavier
>> 
>> 
>> 
>>     > El 19 oct 2022, a las 15:08, Stefan Csomor<csomor at advancedconcepts.ch>  escribió:
>>     >
>>     > Hi
>>     >
>>     > Yes, exactly. Did you already install Python 3 on that machine ? is it a Apple Silicon or Intel base mac ?
>>     >
>>     > Best,
>>     >
>>     > Stefan
>>     >
>>     > Am 19.10.22, 12:13 schrieb "omnisdev-en im Auftrag von Phil (OmnisList)"<omnisdev-en-bounces at lists.omnis-dev.com im Auftrag von phil at pgpotter.co.uk>:
>>     >
>>     >    Xavier,
>>     >
>>     >    xcomps report this when they can't find some dynamic libs or other such
>>     >    external libraries to run with.
>>     >
>>     >    I believe in this case you will need either libpython2.7.dylib or
>>     >    equivalent v3 version libpython3.7.dylib.
>>     >
>>     >    regards
>>     >    Phil Potter
>>     >    Based in Chester in the UK.
>>     >
>>     >    On 19/10/2022 07:23, IT wrote:
>>     >> Hi Stefan
>>     >>
>>     >> I’m getting the next error in Omnis trace log starting Omnis 10.2 31315
>>     >>
>>     >>  opython3.u_xcomp component couldn't be loaded because the  code fragment is missing.
>>     >>
>>     >> Any clues?
>>     >>
>>     >> xavier
>>     >>
>>     >>
>>     >>> El 29 may 2022, a las 17:15, Stefan Csomor<csomor at advancedconcepts.ch>   escribió:
>>     >>>
>>     >>> Hi
>>     >>>
>>     >>>>  But a good python integration literally opens up the whole of the python
>>     >>>>  extensions world to be available inside Omnis.
>>     >>> I've done a presentation of Python integration into Omnis in 2008, I've also pushed the code to github, updated for Python 3,https://github.com/advancedconcepts/opython   but this was rather for integrating Python into the main / GUI thread.
>>     >>>
>>     >>> The problem with background language workers using python is that CPython itself is not very well suited to profit from multiple cores when multithreading - there still is a global object GIL (Global Interpreter Lock) that each thread has to acquire when active, so in order to really profit from multi-core / multi-processor machines you'd have to use a multi-process solution, which is a little bit more complex. (When your python multi-threaded code is primarily IO bound or effectively wrapping a c-library that itself is benefitting from multiple cores then things are different of course).
>>     >>>
>>     >>> Just my 0.02$
>>     >>>
>>     >>> Best,
>>     >>>
>>     >>>
>>     >>> Stefan
>>     >>>
>>     >>> _____________________________________________________________
>>     >>> Manage your list subscriptions athttps://lists.omnis-dev.com
>>     >>> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com        >> _____________________________________________________________
>>     >> Manage your list subscriptions athttps://lists.omnis-dev.com
>>     >> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com        >    _____________________________________________________________
>>     >    Manage your list subscriptions athttps://lists.omnis-dev.com
>>     >    Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com       >
>>     > _____________________________________________________________
>>     > Manage your list subscriptions athttps://lists.omnis-dev.com
>>     > Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  
>>     _____________________________________________________________
>>     Manage your list subscriptions athttps://lists.omnis-dev.com
>>     Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  
>> _____________________________________________________________
>> Manage your list subscriptions athttps://lists.omnis-dev.com
>> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com  
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list