Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The unfacts, did we have them, are too imprecisely few to warrant our certitude.


devel / comp.lang.ada / Re: components_4_64 Test_Python fails on Mac Monterey

SubjectAuthor
* components_4_64 Test_Python fails on Mac MontereyRoger Mc
`* Re: components_4_64 Test_Python fails on Mac MontereyDmitry A. Kazakov
 `* Re: components_4_64 Test_Python fails on Mac MontereyRoger Mc
  `* Re: components_4_64 Test_Python fails on Mac MontereyDmitry A. Kazakov
   `* Re: components_4_64 Test_Python fails on Mac MontereySimon Wright
    `* Re: components_4_64 Test_Python fails on Mac MontereyDmitry A. Kazakov
     `* Re: components_4_64 Test_Python fails on Mac MontereySimon Wright
      `- Re: components_4_64 Test_Python fails on Mac MontereyDmitry A. Kazakov

1
components_4_64 Test_Python fails on Mac Monterey

<e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8935&group=comp.lang.ada#8935

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:2018:b0:6ee:a96:3c9e with SMTP id c24-20020a05620a201800b006ee0a963c9emr11825816qka.18.1666317527109;
Thu, 20 Oct 2022 18:58:47 -0700 (PDT)
X-Received: by 2002:ae9:eb8a:0:b0:6ec:61a0:9a19 with SMTP id
b132-20020ae9eb8a000000b006ec61a09a19mr11715669qkg.596.1666317526936; Thu, 20
Oct 2022 18:58:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 20 Oct 2022 18:58:46 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=203.214.47.204; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 203.214.47.204
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
Subject: components_4_64 Test_Python fails on Mac Monterey
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Fri, 21 Oct 2022 01:58:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1122
 by: Roger Mc - Fri, 21 Oct 2022 01:58 UTC

Test_Python builds Ok but execution fails with:
Execution terminated by abort of environment task
with no other output.

Re: components_4_64 Test_Python fails on Mac Monterey

<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8936&group=comp.lang.ada#8936

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 09:05:14 +0200
Organization: Aioe.org NNTP Server
Message-ID: <313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="39121"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 07:05 UTC

On 2022-10-21 03:58, Roger Mc wrote:
> Test_Python builds Ok but execution fails with:
> Execution terminated by abort of environment task
> with no other output.

[I never tested it under BSD]

1. Does the main test work? (components-python-test_python.gpr)

2. What are the scenarios, you use when building:

arch
Atomic_Access
Target_OS

Depending on that a version of py-load_python_library.adb is selected
which is responsible for loading the Python library.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: components_4_64 Test_Python fails on Mac Monterey

<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8937&group=comp.lang.ada#8937

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:5902:0:b0:39c:e440:6adb with SMTP id 2-20020ac85902000000b0039ce4406adbmr15622155qty.18.1666350772570;
Fri, 21 Oct 2022 04:12:52 -0700 (PDT)
X-Received: by 2002:a0c:aa9a:0:b0:4b1:82b4:4934 with SMTP id
f26-20020a0caa9a000000b004b182b44934mr16012041qvb.58.1666350772228; Fri, 21
Oct 2022 04:12:52 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 21 Oct 2022 04:12:51 -0700 (PDT)
In-Reply-To: <313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
Injection-Info: google-groups.googlegroups.com; posting-host=118.208.181.89; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 118.208.181.89
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com> <313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Fri, 21 Oct 2022 11:12:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2051
 by: Roger Mc - Fri, 21 Oct 2022 11:12 UTC

On Friday, October 21, 2022 at 6:05:17 PM UTC+11, Dmitry A. Kazakov wrote:
> On 2022-10-21 03:58, Roger Mc wrote:
> > Test_Python builds Ok but execution fails with:
> > Execution terminated by abort of environment task
> > with no other output.
> [I never tested it under BSD]
>
> 1. Does the main test work? (components-python-test_python.gpr)
>
> 2. What are the scenarios, you use when building:
>
> arch
> Atomic_Access
> Target_OS
>
> Depending on that a version of py-load_python_library.adb is selected
> which is responsible for loading the Python library.
>
> --
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

Thanks Dmitry
components-python-test_python builds but execution fails with
Execution terminated by abort of environment task

arch x86-64
Atomic_Access auto
Target_OS OSX

Re: components_4_64 Test_Python fails on Mac Monterey

<tiu4an$8he$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8939&group=comp.lang.ada#8939

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 14:46:16 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tiu4an$8he$1@gioia.aioe.org>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="8750"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 12:46 UTC

On 2022-10-21 13:12, Roger Mc wrote:
> On Friday, October 21, 2022 at 6:05:17 PM UTC+11, Dmitry A. Kazakov wrote:
>> On 2022-10-21 03:58, Roger Mc wrote:
>>> Test_Python builds Ok but execution fails with:
>>> Execution terminated by abort of environment task
>>> with no other output.
>> [I never tested it under BSD]
>>
>> 1. Does the main test work? (components-python-test_python.gpr)
>>
>> 2. What are the scenarios, you use when building:
>>
>> arch
>> Atomic_Access
>> Target_OS
>>
>> Depending on that a version of py-load_python_library.adb is selected
>> which is responsible for loading the Python library.
>>
> components-python-test_python builds but execution fails with
> Execution terminated by abort of environment task
>
> arch x86-64
> Atomic_Access auto
> Target_OS OSX

This selects py-load_python_library.adb from os/pthread which is just a
copy of os/linux. Likely there are differences between Linux and OSX. If
you have time I could fix it by tracing locations causing the problem on
your target. Mail me, if you want.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: components_4_64 Test_Python fails on Mac Monterey

<ly35bhp0p6.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8943&group=comp.lang.ada#8943

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Yr2L9qaRshuL+yFKTxsDBA.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 18:04:53 +0100
Organization: Aioe.org NNTP Server
Message-ID: <ly35bhp0p6.fsf@pushface.org>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
<tiu4an$8he$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="58912"; posting-host="Yr2L9qaRshuL+yFKTxsDBA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
Cancel-Lock: sha1:uNFFVeoq6fFhk4Ep6CzA+HBxfCA=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Simon Wright - Fri, 21 Oct 2022 17:04 UTC

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> This selects py-load_python_library.adb from os/pthread which is just
> a copy of os/linux. Likely there are differences between Linux and
> OSX.

dlopen() would need to see e.g.

$FRAMEWORKS/Python.framework/Python/Versions/3.8/lib/libpython3.8.dylib

where $FRAMEWORKS would normally be /Library/Frameworks but, in Roger's
case (running Homebrew), would be $HOMEBREW_PREFIX/Frameworks (Roger
might have frameworks scattered bewtween the two places, for added fun).

Re: components_4_64 Test_Python fails on Mac Monterey

<tiuog9$90f$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8944&group=comp.lang.ada#8944

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 20:30:35 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tiuog9$90f$1@gioia.aioe.org>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
<tiu4an$8he$1@gioia.aioe.org> <ly35bhp0p6.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="9231"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 18:30 UTC

On 2022-10-21 19:04, Simon Wright wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
>> This selects py-load_python_library.adb from os/pthread which is just
>> a copy of os/linux. Likely there are differences between Linux and
>> OSX.
>
> dlopen() would need to see e.g.
>
> $FRAMEWORKS/Python.framework/Python/Versions/3.8/lib/libpython3.8.dylib
>
> where $FRAMEWORKS would normally be /Library/Frameworks but, in Roger's
> case (running Homebrew), would be $HOMEBREW_PREFIX/Frameworks (Roger
> might have frameworks scattered bewtween the two places, for added fun).

Thanks Simon.

Is the variable $FRAMEWORKS set or I have to search a whole set of
subdirectories?

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Re: components_4_64 Test_Python fails on Mac Monterey

<lyy1t9nevu.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8947&group=comp.lang.ada#8947

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!Yr2L9qaRshuL+yFKTxsDBA.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 20:41:25 +0100
Organization: Aioe.org NNTP Server
Message-ID: <lyy1t9nevu.fsf@pushface.org>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
<tiu4an$8he$1@gioia.aioe.org> <ly35bhp0p6.fsf@pushface.org>
<tiuog9$90f$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="9521"; posting-host="Yr2L9qaRshuL+yFKTxsDBA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
X-Notice: Filtered by postfilter v. 0.9.2
Cancel-Lock: sha1:GO6+HyUowAHW7f8x+pPRji5iPr4=
 by: Simon Wright - Fri, 21 Oct 2022 19:41 UTC

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> On 2022-10-21 19:04, Simon Wright wrote:
>> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>>
>>> This selects py-load_python_library.adb from os/pthread which is just
>>> a copy of os/linux. Likely there are differences between Linux and
>>> OSX.
>> dlopen() would need to see e.g.
>> $FRAMEWORKS/Python.framework/Python/Versions/3.8/lib/libpython3.8.dylib
>> where $FRAMEWORKS would normally be /Library/Frameworks but, in
>> Roger's
>> case (running Homebrew), would be $HOMEBREW_PREFIX/Frameworks (Roger
>> might have frameworks scattered bewtween the two places, for added fun).
>
> Thanks Simon.
>
> Is the variable $FRAMEWORKS set or I have to search a whole set of
> subdirectories?

It's not set; I'm not sure what the Homebrew version would look like,
but it's probably like /Library/Frameworks. And I left out Current,
which chooses between e.g. 3.8, 3.9.

libpython := '';
find_libpython:
for top in $HOMEBREW_PREFIX/Frameworks, /Library/Frameworks loop
if exists $top/Python then
libpython := $top/Python/Versions/Current/lib/libpython*.dylib;
exit find_libpython;
end if;
end loop find_libpython;
fail if libpython is still ''

==========

There is another macOS package manager, MacPorts, but I've settled on
Homebrew.

Re: components_4_64 Test_Python fails on Mac Monterey

<tiutoe$q1q$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=8949&group=comp.lang.ada#8949

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!lYnhq7byp2KtY/MFJZaCTw.user.46.165.242.91.POSTED!not-for-mail
From: mailbox@dmitry-kazakov.de (Dmitry A. Kazakov)
Newsgroups: comp.lang.ada
Subject: Re: components_4_64 Test_Python fails on Mac Monterey
Date: Fri, 21 Oct 2022 22:00:16 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tiutoe$q1q$1@gioia.aioe.org>
References: <e51a0c21-8e0e-4813-8f49-86f9fd80c852n@googlegroups.com>
<313fb3bf-8158-32fd-910d-2fbc9c257ac9@dmitry-kazakov.de>
<984400a0-754f-46b9-9a5e-ee2df7bbdd37n@googlegroups.com>
<tiu4an$8he$1@gioia.aioe.org> <ly35bhp0p6.fsf@pushface.org>
<tiuog9$90f$1@gioia.aioe.org> <lyy1t9nevu.fsf@pushface.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="26682"; posting-host="lYnhq7byp2KtY/MFJZaCTw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Dmitry A. Kazakov - Fri, 21 Oct 2022 20:00 UTC

On 2022-10-21 21:41, Simon Wright wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
>> On 2022-10-21 19:04, Simon Wright wrote:
>>> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>>>
>>>> This selects py-load_python_library.adb from os/pthread which is just
>>>> a copy of os/linux. Likely there are differences between Linux and
>>>> OSX.
>>> dlopen() would need to see e.g.
>>> $FRAMEWORKS/Python.framework/Python/Versions/3.8/lib/libpython3.8.dylib
>>> where $FRAMEWORKS would normally be /Library/Frameworks but, in
>>> Roger's
>>> case (running Homebrew), would be $HOMEBREW_PREFIX/Frameworks (Roger
>>> might have frameworks scattered bewtween the two places, for added fun).
>>
>> Thanks Simon.
>>
>> Is the variable $FRAMEWORKS set or I have to search a whole set of
>> subdirectories?
>
> It's not set; I'm not sure what the Homebrew version would look like,
> but it's probably like /Library/Frameworks. And I left out Current,
> which chooses between e.g. 3.8, 3.9.
>
> libpython := '';
> find_libpython:
> for top in $HOMEBREW_PREFIX/Frameworks, /Library/Frameworks loop
> if exists $top/Python then
> libpython := $top/Python/Versions/Current/lib/libpython*.dylib;
> exit find_libpython;
> end if;
> end loop find_libpython;
> fail if libpython is still ''
>
> ==========
>
> There is another macOS package manager, MacPorts, but I've settled on
> Homebrew.

I researched a little bit. Mac's Python is even more messy than Windows'
one. That is an achievement of its own! (:-))

So far I come to the list

/usr/lib
/Library/Frameworks/Python.framework/Versions
/sw/lib
/opt/lib
/opt/homebrew/lib

each to be searched recursively for the name:

libpython3.*.dylib

P.S. It seems that I must check Julia bindings as well. So far it looks
so that nobody ever used them on Mac.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


devel / comp.lang.ada / Re: components_4_64 Test_Python fails on Mac Monterey

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor