compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
I'm trying to compile python 3.7.0 from source with a custom libffi
path and the compiler/linker doesn't seem to pick up the right
version. The system libffi doesn't have the development files so I've
installed the latest libffi (also from source) to /opt/custom but
still I get

INFO: Could not locate ffi libs and/or headers

Failed to build these modules:
_ctypes

Although I compile python with --prefix=/opt/custom because that's the
location I'd like to install it too. So how do I tell the build system
where to find my custom libffi?

Cheers,
Daniel



-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 10:48, Fetchinson . via Python-list wrote:
> I'm trying to compile python 3.7.0 from source with a custom libffi
> path and the compiler/linker doesn't seem to pick up the right
> version. The system libffi doesn't have the development files so I've
> installed the latest libffi (also from source) to /opt/custom but
> still I get
> 
> INFO: Could not locate ffi libs and/or headers

Apparently the configure script uses pkg-config to locate libffi.[1] You
should be able to get it to find your libffi by setting PKG_CONFIG_PATH
appropriately (probably to "/opt/custom/lib/pkgconfig" ?)

[1]: https://github.com/python/cpython/blob/v3.7.0/configure.ac#L2936

> 
> Failed to build these modules:
> _ctypes
> 
> Although I compile python with --prefix=/opt/custom because that's the
> location I'd like to install it too. So how do I tell the build system
> where to find my custom libffi?
> 
> Cheers,
> Daniel
> 
> 
> 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
>> I'm trying to compile python 3.7.0 from source with a custom libffi
>> path and the compiler/linker doesn't seem to pick up the right
>> version. The system libffi doesn't have the development files so I've
>> installed the latest libffi (also from source) to /opt/custom but
>> still I get
>>
>> INFO: Could not locate ffi libs and/or headers
>
> Apparently the configure script uses pkg-config to locate libffi.[1] You
> should be able to get it to find your libffi by setting PKG_CONFIG_PATH
> appropriately (probably to "/opt/custom/lib/pkgconfig" ?)
>
> [1]: https://github.com/python/cpython/blob/v3.7.0/configure.ac#L2936

Thanks, tried it, but still no luck, exact same error message.

Cheers,
Daniel



>>
>> Failed to build these modules:
>> _ctypes
>>
>> Although I compile python with --prefix=/opt/custom because that's the
>> location I'd like to install it too. So how do I tell the build system
>> where to find my custom libffi?
>>
>> Cheers,
>> Daniel
>>
>>
>>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Robin Becker

On 23/09/2018 15:45, Albert-Jan Roskam wrote:

*sigh*. I'm with Hettinger on this.

https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/

I am as well. Don't fix what is not broken. The semantics (in programming) might not be an exact match, but people have been using 
these sorts of terms for a long time without anyone objecting. This sort of language control is just thought control of the wrong 
sort.

--
Robin Becker

--
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 14:14, Fetchinson . via Python-list wrote:
>>> I'm trying to compile python 3.7.0 from source with a custom libffi
>>> path and the compiler/linker doesn't seem to pick up the right
>>> version. The system libffi doesn't have the development files so I've
>>> installed the latest libffi (also from source) to /opt/custom but
>>> still I get
>>>
>>> INFO: Could not locate ffi libs and/or headers
>>
>> Apparently the configure script uses pkg-config to locate libffi.[1] You
>> should be able to get it to find your libffi by setting PKG_CONFIG_PATH
>> appropriately (probably to "/opt/custom/lib/pkgconfig" ?)
>>
>> [1]: https://github.com/python/cpython/blob/v3.7.0/configure.ac#L2936
> 
> Thanks, tried it, but still no luck, exact same error message.

Is there a .pc file for libffi? Can you run pkg-config manually, to
check if it works, and finds libffi in your environment?

> 
> Cheers,
> Daniel
> 
> 
> 
>>>
>>> Failed to build these modules:
>>> _ctypes
>>>
>>> Although I compile python with --prefix=/opt/custom because that's the
>>> location I'd like to install it too. So how do I tell the build system
>>> where to find my custom libffi?
>>>
>>> Cheers,
>>> Daniel
>>>
>>>
>>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
> 
> 
-- 
https://mail.python.org/mailman/listinfo/python-list


EuroPython 2019: Seeking venues

2018-09-24 Thread M.-A. Lemburg
Dear EuroPython'istas,

We are in preparations of our venue RFP for the EuroPython 2019
edition and are asking for your help in finding the right locations
for us to choose from.

If you know of a larger venue - hotel or conference center - that can
accommodate at least 1400 attendees, please send the venue details to
bo...@europython.eu. We will then make sure to include them in our RFP
once we send it out.

The more venues we gather to reach out to, the better of a selection
process we can guarantee, which in return, will ultimately result in a
better conference experience for everybody involved.

When sending us venue suggestions, please make sure to provide us with
the following: name and URL of the venue, country and city, as well as
the contact details of the sales person in charge of inquiries (full
name, email and phone).

We were planning to start the RFP process in the coming days, so
please make sure you send us your recommendations as soon as possible.


Help spread the word


Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !

Link to the blog post:

https://blog.europython.eu/post/178407491437/europython-2019-seeking-venues

Tweet:

https://twitter.com/europython/status/1044130171354316800


Thank you,
--
EuroPython Society
https://www.europython-society.org/

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Léo El Amri via Python-list
On 24/09/2018 14:52, Robin Becker wrote:
> On 23/09/2018 15:45, Albert-Jan Roskam wrote:
>> *sigh*. I'm with Hettinger on this.
>>
>> https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/
>>
>>
> I am as well. Don't fix what is not broken. The semantics (in
> programming) might not be an exact match, but people have been using
> these sorts of terms for a long time without anyone objecting. This sort
> of language control is just thought control of the wrong sort.

All receivable arguments have been told already, thanks to Terry,
Steven, Raymond and others, who all managed to keep their capability to
think rationally after the motive of this bug report.

Hopefully we have competent core devs.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans  wrote:
> On 2018-09-24 14:14, Fetchinson . via Python-list wrote:
 I'm trying to compile python 3.7.0 from source with a custom libffi
 path and the compiler/linker doesn't seem to pick up the right
 version. The system libffi doesn't have the development files so I've
 installed the latest libffi (also from source) to /opt/custom but
 still I get

 INFO: Could not locate ffi libs and/or headers
>>>
>>> Apparently the configure script uses pkg-config to locate libffi.[1] You
>>> should be able to get it to find your libffi by setting PKG_CONFIG_PATH
>>> appropriately (probably to "/opt/custom/lib/pkgconfig" ?)
>>>
>>> [1]: https://github.com/python/cpython/blob/v3.7.0/configure.ac#L2936
>>
>> Thanks, tried it, but still no luck, exact same error message.
>
> Is there a .pc file for libffi? Can you run pkg-config manually, to
> check if it works, and finds libffi in your environment?

Yes, there is a .pc for libffi and if I first

export PKG_CONFIG_PATH=/opt/custom

then pkg-config finds the necessary include path:

[fetch@fetch]$ pkg-config libffi --cflags-only-I
-I/opt/custom/lib/libffi-3.2.1/include

And of course this path is correct:

[fetch@fetch]$ ls /opt/custom/lib/libffi-3.2.1/include
ffi.h  ffitarget.h

And also the configure script correctly creates the Makefile:

[fetch@fetch]$ grep LIBFFI_INCLUDE Makefile
LIBFFI_INCLUDEDIR=  /opt/custom/lib/libffi-3.2.1/include

So I'd say everything should work but it doesn't, I reran ./configure
and also make of course.

Cheers,
Daniel











>>
>> Cheers,
>> Daniel
>>
>>
>>

 Failed to build these modules:
 _ctypes

 Although I compile python with --prefix=/opt/custom because that's the
 location I'd like to install it too. So how do I tell the build system
 where to find my custom libffi?

 Cheers,
 Daniel



>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
>>>
>>
>>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:

> On Sun, 23 Sep 2018 at 20:45, Gene Heskett  
wrote:
> > save the image and locate the centroid of that saved image.
> >
> > Is there code to do that centroid math in somebodies "bottom desk
> > drawer"? Something I could download and control with a bash script
> > which I'm fair at?
>
> This is easy enough to in OpenCV. The code at the top of this page
> does what you want:
>
> https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html

I take it that this is python-2.7? code? 

Searching thru the python3 results in synaptic, on a stretch install on 
the rock64, python3 has not a p3 version of numpy or cv2.

And I'd like to try and make it run on 3.5 since that seems to be the 
newest on stretch. That would tend to future-proof this past the final 
fixes and eventual demise of python-2.

Is there hope for things like numpy and cv2 being ported to python 3? Or 
can numpy and cv2 be used against 3.5 as is?

Thanks Oscar.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Chris Angelico
On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett  wrote:
>
> On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
>
> > On Sun, 23 Sep 2018 at 20:45, Gene Heskett 
> wrote:
> > > save the image and locate the centroid of that saved image.
> > >
> > > Is there code to do that centroid math in somebodies "bottom desk
> > > drawer"? Something I could download and control with a bash script
> > > which I'm fair at?
> >
> > This is easy enough to in OpenCV. The code at the top of this page
> > does what you want:
> >
> > https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html
>
> I take it that this is python-2.7? code?
>
> Searching thru the python3 results in synaptic, on a stretch install on
> the rock64, python3 has not a p3 version of numpy or cv2.
>
> And I'd like to try and make it run on 3.5 since that seems to be the
> newest on stretch. That would tend to future-proof this past the final
> fixes and eventual demise of python-2.
>
> Is there hope for things like numpy and cv2 being ported to python 3? Or
> can numpy and cv2 be used against 3.5 as is?

Dunno about cv2, but numpy is certainly available for Python 3.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 10:55:23 Chris Angelico wrote:

> On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett  
wrote:
> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett 
> >
> > wrote:
> > > > save the image and locate the centroid of that saved image.
> > > >
> > > > Is there code to do that centroid math in somebodies "bottom
> > > > desk drawer"? Something I could download and control with a bash
> > > > script which I'm fair at?
> > >
> > > This is easy enough to in OpenCV. The code at the top of this page
> > > does what you want:
> > >
> > > https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.
> > >html
> >
> > I take it that this is python-2.7? code?
> >
> > Searching thru the python3 results in synaptic, on a stretch install
> > on the rock64, python3 has not a p3 version of numpy or cv2.
> >
> > And I'd like to try and make it run on 3.5 since that seems to be
> > the newest on stretch. That would tend to future-proof this past the
> > final fixes and eventual demise of python-2.
> >
> > Is there hope for things like numpy and cv2 being ported to python
> > 3? Or can numpy and cv2 be used against 3.5 as is?
>
> Dunno about cv2, but numpy is certainly available for Python 3.

What do they call it in debian stretch for arm64?

> ChrisA

Thanks ChrisA

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Thomas Jollans
On 2018-09-24 16:52, Gene Heskett wrote:
> On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> 
>> On Sun, 23 Sep 2018 at 20:45, Gene Heskett  
> wrote:
>>> save the image and locate the centroid of that saved image.
>>>
>>> Is there code to do that centroid math in somebodies "bottom desk
>>> drawer"? Something I could download and control with a bash script
>>> which I'm fair at?
>>
>> This is easy enough to in OpenCV. The code at the top of this page
>> does what you want:
>>
>> https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html
> 
> I take it that this is python-2.7? code? 
> 
> Searching thru the python3 results in synaptic, on a stretch install on 
> the rock64, python3 has not a p3 version of numpy or cv2.
> 
> And I'd like to try and make it run on 3.5 since that seems to be the 
> newest on stretch. That would tend to future-proof this past the final 
> fixes and eventual demise of python-2.
> 
> Is there hope for things like numpy and cv2 being ported to python 3? Or 
> can numpy and cv2 be used against 3.5 as is?

Sure it can. Just use pip. There are even binary manylinux wheels!
https://pypi.org/project/opencv-python/


There's a numpy in the stretch repos,
https://packages.debian.org/stretch/python3-numpy - but indeed, the
python3-opencv package doesn't arrive until buster.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Dan Purgert
Robin Becker wrote:
> [...] just thought control of the wrong sort..

Is there "thought control of the right sort"?


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Léo El Amri via Python-list
On 24/09/2018 18:30, Dan Purgert wrote:
> Robin Becker wrote:
>> [...] just thought control of the wrong sort..
> 
> Is there "thought control of the right sort"?

We may have to ask to Huxley
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Thomas Jollans
On 2018-09-24 16:30, Fetchinson . via Python-list wrote:
> [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile
> LIBFFI_INCLUDEDIR=  /opt/custom/lib/libffi-3.2.1/include
> 
> So I'd say everything should work but it doesn't, I reran ./configure
> and also make of course.

I'm confused. ./configure succeeds? Then where's the error?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans  wrote:
> On 2018-09-24 16:30, Fetchinson . via Python-list wrote:
>> [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile
>> LIBFFI_INCLUDEDIR=  /opt/custom/lib/libffi-3.2.1/include
>>
>> So I'd say everything should work but it doesn't, I reran ./configure
>> and also make of course.
>
> I'm confused. ./configure succeeds? Then where's the error?

Yes, ./configure succeeds, also make succeeds in general, so it
produces a usable python executable but _ctypes is not compiled so
_ctypes is not usable and can not be imported, libffi is only needed
for _ctypes AFAIK. The error, or better said INFO message, comes from
make:

INFO: Could not locate ffi libs and/or headers

Failed to build these modules:
_ctypes

But nevertheless make install also succeeds, the only thing is that
_ctypes does not work.

Cheers,
Daniel

-- 
Psss, psss, put it down! - http://www.cafepress.com/putitdown
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Thomas Jollans

On 24/09/2018 14:52, Robin Becker wrote:

On 23/09/2018 15:45, Albert-Jan Roskam wrote:

*sigh*. I'm with Hettinger on this.

https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/ 



I am as well. Don't fix what is not broken. The semantics (in 
programming) might not be an exact match, but people have been using 
these sorts of terms for a long time without anyone objecting. This sort 
of language control is just thought control of the wrong sort.


Never mind the justification and the overblown coverage in publications 
like the Register - if you look at the patches actually merged (mostly 
in https://github.com/python/cpython/pull/9101/files) they all look like 
entirely reasonable changes making docs, docstrings and comments clearer.



--
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Chris Angelico
On Tue, Sep 25, 2018 at 5:02 AM Thomas Jollans  wrote:
>
> On 24/09/2018 14:52, Robin Becker wrote:
> > On 23/09/2018 15:45, Albert-Jan Roskam wrote:
> >> *sigh*. I'm with Hettinger on this.
> >>
> >> https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/
> >>
> >>
> > I am as well. Don't fix what is not broken. The semantics (in
> > programming) might not be an exact match, but people have been using
> > these sorts of terms for a long time without anyone objecting. This sort
> > of language control is just thought control of the wrong sort.
>
> Never mind the justification and the overblown coverage in publications
> like the Register - if you look at the patches actually merged (mostly
> in https://github.com/python/cpython/pull/9101/files) they all look like
> entirely reasonable changes making docs, docstrings and comments clearer.
>
That particular PR is mostly non-controversial (there's some that are
under dispute, and dealt with elsewhere, and I'm ignoring those).
"Master process" is only one possible usage model so "parent process"
is more accurate anyway; "master and client" is mismatched; in fact,
the only one I'd even slightly disagree with is "buildslaves", since
that's a technically accurate term (they ARE slaved to the master
buildbot process), and that one has been changed upstream to
"workers", so there's no issues there.

The trouble is that making changes like this with a view to
eliminating the words "master" and "slave" from all docs and comments
(rather than making them to improve clarity and accuracy) opens up the
leverage that SJWs need. "Hey, you changed that because we hate
slavery - now you'd better eliminate all references to 'black' because
we hate racism". So clear boundaries need to be set.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Kirill Balunov
пн, 24 сент. 2018 г. в 22:46, Chris Angelico :

>
> The trouble is that making changes like this with a view to
> eliminating the words "master" and "slave" from all docs and comments
> (rather than making them to improve clarity and accuracy) opens up the
> leverage that SJWs need. "Hey, you changed that because we hate
> slavery - now you'd better eliminate all references to 'black' because
> we hate racism". So clear boundaries need to be set.
>
>
It seems to me that the word "black" has immunity in the next two Python
releases ;)  So do not worry so much!

But honestly, it's not pleasant to see how such holy things spread into the
world of OSS, and this is apparently only the beginning.

With kind regards,
-gdg
-- 
https://mail.python.org/mailman/listinfo/python-list


Recommended format for --log-level option

2018-09-24 Thread Victor Porton
What is the recommended format for --log-level (or --loglevel?) command line 
option?

Is it a number or NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL?

Or should I accept both numbers and these string constants?

-- 
Victor Porton - http://portonvictor.org
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: P = (2^N) - Q

2018-09-24 Thread Musatov
Sometimes the simplest things...

I am wondering about congruences/patterns in Q.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: P = (2^N) - Q

2018-09-24 Thread Lutz Horn
Hi,

> If P is the set of primes, how do I write a program ...

1. Do you plan to write this in Python?
2. What have you tried so far?
3. Does it work?

Lutz

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [OT] master/slave debate in Python

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 16:40:22 Kirill Balunov wrote:

> пн, 24 сент. 2018 г. в 22:46, Chris Angelico :
> > The trouble is that making changes like this with a view to
> > eliminating the words "master" and "slave" from all docs and
> > comments (rather than making them to improve clarity and accuracy)
> > opens up the leverage that SJWs need. "Hey, you changed that because
> > we hate slavery - now you'd better eliminate all references to
> > 'black' because we hate racism". So clear boundaries need to be set.
>
At least forty Rogers on that. No one should get their political panties 
jammed in the crack over terminology thats likely older than they are. 
And anybody that does is nothing but a troublemaker, and probably should 
be /gently/ treated as such.

> It seems to me that the word "black" has immunity in the next two
> Python releases ;)  So do not worry so much!
>
> But honestly, it's not pleasant to see how such holy things spread
> into the world of OSS, and this is apparently only the beginning.

Yes except the beginning was years, even many decades ago, the only thing 
really changed is the names we use to describe it. Each generation seems 
to be bent on makeing a bigger stink than their parents made. It isn't 
pretty, and is best handled by turning down ones hearing aid. Sometimes 
they are smart enough to realize they are being ignored and will adjust 
their attitude.

> With kind regards,
> -gdg


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 18:47:08 Dennis Lee Bieber wrote:

> On Mon, 24 Sep 2018 12:06:19 -0400, Gene Heskett
> 
>
> declaimed the following:
> >On Monday 24 September 2018 10:55:23 Chris Angelico wrote:
> >> On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett
> >> 
> >
> >wrote:
> >> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> >> > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett
> >> > > 
> >> >
> >> > wrote:
> >> > > > save the image and locate the centroid of that saved image.
> >> > > >
> >> > > > Is there code to do that centroid math in somebodies "bottom
> >> > > > desk drawer"? Something I could download and control with a
> >> > > > bash script which I'm fair at?
> >> > >
> >> > > This is easy enough to in OpenCV. The code at the top of this
> >> > > page does what you want:
> >> > >
> >> > > https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_featur
> >> > >es. html
> >> >
> >> > I take it that this is python-2.7? code?
> >> >
> >> > Searching thru the python3 results in synaptic, on a stretch
> >> > install on the rock64, python3 has not a p3 version of numpy or
> >> > cv2.
> >> >
> >> > And I'd like to try and make it run on 3.5 since that seems to be
> >> > the newest on stretch. That would tend to future-proof this past
> >> > the final fixes and eventual demise of python-2.
> >> >
> >> > Is there hope for things like numpy and cv2 being ported to
> >> > python 3? Or can numpy and cv2 be used against 3.5 as is?
> >>
> >> Dunno about cv2, but numpy is certainly available for Python 3.
> >
> >What do they call it in debian stretch for arm64?
>
>   Well, in Raspbian they show up as...
>
>
> Linux raspberrypi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
> armv7l
>
Thats a 32 bit kernel, the rt version has been tried and found wanting, 
very high throwaway percentages for keyboard and mouse events.

> The programs included with the Debian GNU/Linux system are free
> software; the exact distribution terms for each program are described
> in the individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> Last login: Fri Sep 14 12:36:56 2018 from
> fe80::c932:bd85:577:9922%eth0 pi@raspberrypi:~$ python3 --version
> Python 3.5.3
> pi@raspberrypi:~$ python3
> Python 3.5.3 (default, Jan 19 2017, 14:11:04)
> [GCC 6.3.0 20170124] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import numpy
>
>   I don't remember installing numpy -- it just seems to be there...
>
> pi@raspberrypi:~$ sudo apt search numpy
> Sorting... Done
> Full Text Search... Done
>
>   
>
>
> python3-bottleneck/stable 1.2.0-6 armhf
>   Fast NumPy array functions written in C - Python 3
>
>   
>
> python3-numexpr/stable 2.6.1-4 armhf
>   Fast numerical array expression evaluator for Python 3 and NumPy
>
> python3-numexpr-dbg/stable 2.6.1-4 armhf
>   Fast numerical array expression evaluator for Python 3 and NumPy
> (debug ext)
>
> python3-numpy/stable,now 1:1.12.1-3 armhf [installed]
>   Fast array facility to the Python 3 language
>
> python3-numpy-dbg/stable 1:1.12.1-3 armhf
>   Fast array facility to the Python 3 language (debug extension)
>
> python3-numpydoc/stable 0.6.0+ds1-1 all
>   Sphinx extension to support docstrings in Numpy format -- Python3
>
>   
>
> python3-rasterio/stable 0.36.0-1+b2 armhf
>   Python 3 API for using geospatial raster data with Numpy
>
> python3-scipy/stable 0.18.1-2 armhf
>   scientific tools for Python 3
>
> python3-scipy-dbg/stable 0.18.1-2 armhf
>   scientific tools for Python 3 - debugging symbols
>
> python3-seaborn/stable 0.7.1-4 all
>   statistical visualization library
>
> python3-snuggs/stable 1.4.1-1 all
>   S-expressions for numpy - Python 3 version
>
>   
>
>
>   Only hits for cv2 are Java
>
> pi@raspberrypi:~$ sudo apt search cv2
> Sorting... Done
> Full Text Search... Done
> libcv2.4/stable 2.4.9.1+dfsg1-2 all
>   computer vision library - libcv* translation package
>
> libopencv2.4-java/stable 2.4.9.1+dfsg1-2 all
>   Java bindings for the computer vision library
>
> libopencv2.4-jni/stable 2.4.9.1+dfsg1-2 armhf
>   Java jni library for the computer vision library
>
> pi@raspberrypi:~$
>
>   However, Raspbian is 32-bit Debian-based. I don't know what would be
> needed to configure/install a pure 64-bit Debian on the RPi-3.
>
In all likelyhood, it won't be running on the pi-3b, but on a rock64, 
which is arm64.  So its called armbian.
>
>
> --
>   Wulfraed Dennis Lee Bieber AF6VN
>   wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/

On the rock64, python has numpy but not cv2, python3 has neither.

And doesn't have pip or pip3 in the repo's.

But on a swag, it did install python-cv2*, so maybe it will run this 
stuff after all. But despite a "sudo apt install cv2" pulling in 30 some 
packages, cv2 is not available to import, at least not by that name..

I might have