Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All, I was able to fix it but one thing i am not getting. it is building with python 2. I need python 3 enabled gdb. ./configure --with-python. --> how to make it to use python 3 installed on my machine? thx On Tue, Dec 29, 2020 at 1:55 PM Amardeep Singh wrote: > Hi All, > > I am try

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All when i. try to use python3 installed on my macbook i get this. checking for libmpfr... no configure: WARNING: MPFR is missing or unusable; some features may be unavailable. checking whether to use python... /usr/local/bin/python3 checking for python... no configure: error: no usable py

[Numpy-discussion] proposal for NumPy sponsorship guidelines (NEP 46)

2020-12-29 Thread Ralf Gommers
Hi all, I just opened https://github.com/numpy/numpy/pull/18084, "NumPy Sponsorship Guidelines". Below are the most important parts for review (for Related Work, References, etc. see the PR). Please bring up broader points here, and small/textual feedback on the PR. Cheers, Ralf Abstract -

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi All I was able to fix. >import sys >print(sys.version_info) >end sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0) (gdb) quit https://github.com/crosstool-ng/crosstool-ng/issues/1308 this was the issue. The solution is to open /gdb/python/python-config.py

Re: [Numpy-discussion] Help needed GDB

2020-12-29 Thread Amardeep Singh
Hi Apologies Once last issue is pending.Any pointers are helpful. I am following the below docs. Next you need to write a Python script that invokes the C code whose execution you want to debug. For instance mytest.py: import numpy as npx = np.arange(5)np.empty_like(x) Now, you can run: $ g

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 171, Issue 39

2020-12-29 Thread Brian Soto
do I debug C code inside NumPy??. > First, ensure that you have gdb installed on your system with the Python > extensions (often the default on Linux). You can see which version of > Python is running inside gdb to verify your setup: > > (gdb) python>import > sys>print(sy

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 171, Issue 39

2020-12-29 Thread Robert Kern
On Tue, Dec 29, 2020 at 5:35 PM Brian Soto wrote: > I'm still learning proper mailing list etiquette so I'm not sure if this > is where I should respond. > FWIW, if you want to reply to conversations regularly, it's more ergonomic all around to subscribe regularly and not use the digests. But if