[Numpy-discussion] help needed

2020-10-23 Thread Amardeep Singh
Hi All

I am a new joiner.Using macbook.
Can someone please guide me how to debug numpy using clion?
I am able to build not sure about debugging the c code.

ProductName: Mac OS X

ProductVersion: 10.15.7

BuildVersion: 19H2


thx
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] help needed

2020-10-23 Thread Amardeep Singh
How do you use the debug enabled cpython on mac.i guess we need it.
You build cpython from source?

this is mytest.py file

import numpy as np
x = np.arange(5)
np.empty_like(x)

i run this command

gdb --args python3 runtests.py -g --python3 mytest.py

i get this

Reading symbols from python3...
(No debugging symbols found in python3)
(gdb)

sh-3.2# which python3
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3
sh-3.2#








On Sat, Oct 24, 2020 at 2:09 AM Sebastian Berg 
wrote:

> On Sat, 2020-10-24 at 01:50 +0800, Amardeep Singh wrote:
> > Hi All
> >
> > I am a new joiner.Using macbook.
> > Can someone please guide me how to debug numpy using clion?
> > I am able to build not sure about debugging the c code.
> >
> > ProductName: Mac OS X
> >
> > ProductVersion: 10.15.7
> >
> > BuildVersion: 19H2
>
>
>
> Hi,
>
> I have set up an bogus `CMakeLists.txt` (actually using `python
> runtests.py` for compilation and running).  That should allow you to
> use debugging tools in editors relying on cmake normally.
>
> My current file is below. This is the opposite of polished or thought
> out, so happy to learn of a better solution. And for example recently I
> added `NULL=0` because I had issues without really digging into why and
> I am sure it lists many files multiple times:
>
>
>
> cmake_minimum_required(VERSION 3.13)
>
> #cmake_policy(SET CMP0074 NEW)
>
> project(NumPy-dummy)
>
>
> AUX_SOURCE_DIRECTORY(numpy/core/src/multiarray/ MULTIARRAY)
> AUX_SOURCE_DIRECTORY(numpy/core/src/umath/ UMATH)
> AUX_SOURCE_DIRECTORY(numpy/core/src/common/ COMMON)
> AUX_SOURCE_DIRECTORY(numpy/core/src/npymath/ NPYMATH)
> AUX_SOURCE_DIRECTORY(numpy/core/src/npysort/ NPYSORT)
>
> AUX_SOURCE_DIRECTORY(numpy/core/include/ NPYINCLUDE)
> AUX_SOURCE_DIRECTORY(numpy/core/include/numpy/ NPYINCLUDEFULL)
>
> AUX_SOURCE_DIRECTORY(build/testenv/lib/python3.8/site-packages/numpy/core/include/numpy/
> INSTALLED_NUMPY)
> AUX_SOURCE_DIRECTORY(build/src.linux-x86_64-3.8/numpy/core/src/multiarray/
> HELPER_FOR_C_SCR_FILES)
>
> set(
> SOURCE_FILES
> ${MULTIARRAY}
> ${UMATH}
> ${COMMON}
> ${NPYMATH}
> ${NPYSORT}
> numpy/core/src/multiarray/
> build/src.linux-x86_64-3.8/numpy/core/include/
> build/src.linux-x86_64-3.8/numpy/core/include/numpy/
>
> build/src.linux-x86_64-3.8/numpy/core/include/numpy/__multiarray_api.c
> build/src.linux-x86_64-3.8/numpy/core/src/common/
> build/src.linux-x86_64-3.8/numpy/core/src/umath/
> build/src.linux-x86_64-3.8/numpy/core/src/multiarray/
> build/src.linux-x86_64-3.8/numpy/core/src/npymath/
> build/src.linux-x86_64-3.8/numpy/core/src/npysort/
> numpy/core/src/common/
> numpy/core/include/)
>
> set(CMAKE_INCLUDE_PATH SOURCE_FILES)
>
> add_compile_definitions(NPY_INTERNAL_BUILD)
>
> add_compile_definitions([=[NPY_VISIBILITY_HIDDEN=__attribute__((visibility("hidden")))]=])
> # add_compile_definitions(NPY_VISIBILITY_HIDDEN=)
>
> add_compile_definitions(NULL=0)
> #add_compile_definitions(NPY_SIZEOF_SHORT=2)
> #add_compile_definitions(NPY_SIZEOF_INT=4)
> #add_compile_definitions(NPY_SIZEOF_LONG=8)
> #add_compile_definitions(NPY_SIZEOF_LONGLONG=8)
> #add_compile_definitions(NPY_SIZEOF_PY_INTPTR_T=8)
>
>
> # Find default python libraries and interpreter
> #find_package(PythonInterp 3 REQUIRED)
> #find_package(PythonLibs 3 REQUIRED)
>
> #include_directories(${SOURCE_FILES} ${PYTHON_INCLUDE_DIRS})  #
> PYTHON_INCLUDE_DIRS also picks up the wrong numpy files...
> # The "clean" version below is manually edited with numpy removed...
> # I manuall deleted sudo rm -rf /usr/include/numpy, but I do not think it
> should have been there?!
> #include_directories(${SOURCE_FILES}
> /home/sebastian/venvs/pydbg-clean/include/python3.8d)
> include_directories(${SOURCE_FILES} /usr/include/python3.8)
>
> add_executable(asdf
> build/src.linux-x86_64-3.8/numpy/core/include/numpy/__multiarray_api.c
> ${SOURCE_FILES})
>
>
>
>
> >
> >
> > thx
> > ___
> > NumPy-Discussion mailing list
> > NumPy-Discussion@python.org
> > https://mail.python.org/mailman/listinfo/numpy-discussion
>
>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] help needed

2020-10-24 Thread Amardeep Singh
Hi All,

Thx.Debug enabled build worked fine on windows10.Also python for macos does
not give option to install debug enabled build .
I was able to build and debug via clion on windows not on mac.
lldb did not work for me on mac.Not sure why.seems gdb has some version
issues with macos even after code signing.

thx


On Sat, Oct 24, 2020 at 5:38 AM Amardeep Singh  wrote:

> How do you use the debug enabled cpython on mac.i guess we need it.
> You build cpython from source?
>
> this is mytest.py file
>
> import numpy as np
> x = np.arange(5)
> np.empty_like(x)
>
> i run this command
>
> gdb --args python3 runtests.py -g --python3 mytest.py
>
> i get this
>
> Reading symbols from python3...
> (No debugging symbols found in python3)
> (gdb)
>
> sh-3.2# which python3
> /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
> sh-3.2#
>
>
>
>
>
>
>
>
> On Sat, Oct 24, 2020 at 2:09 AM Sebastian Berg 
> wrote:
>
>> On Sat, 2020-10-24 at 01:50 +0800, Amardeep Singh wrote:
>> > Hi All
>> >
>> > I am a new joiner.Using macbook.
>> > Can someone please guide me how to debug numpy using clion?
>> > I am able to build not sure about debugging the c code.
>> >
>> > ProductName: Mac OS X
>> >
>> > ProductVersion: 10.15.7
>> >
>> > BuildVersion: 19H2
>>
>>
>>
>> Hi,
>>
>> I have set up an bogus `CMakeLists.txt` (actually using `python
>> runtests.py` for compilation and running).  That should allow you to
>> use debugging tools in editors relying on cmake normally.
>>
>> My current file is below. This is the opposite of polished or thought
>> out, so happy to learn of a better solution. And for example recently I
>> added `NULL=0` because I had issues without really digging into why and
>> I am sure it lists many files multiple times:
>>
>>
>>
>> cmake_minimum_required(VERSION 3.13)
>>
>> #cmake_policy(SET CMP0074 NEW)
>>
>> project(NumPy-dummy)
>>
>>
>> AUX_SOURCE_DIRECTORY(numpy/core/src/multiarray/ MULTIARRAY)
>> AUX_SOURCE_DIRECTORY(numpy/core/src/umath/ UMATH)
>> AUX_SOURCE_DIRECTORY(numpy/core/src/common/ COMMON)
>> AUX_SOURCE_DIRECTORY(numpy/core/src/npymath/ NPYMATH)
>> AUX_SOURCE_DIRECTORY(numpy/core/src/npysort/ NPYSORT)
>>
>> AUX_SOURCE_DIRECTORY(numpy/core/include/ NPYINCLUDE)
>> AUX_SOURCE_DIRECTORY(numpy/core/include/numpy/ NPYINCLUDEFULL)
>>
>> AUX_SOURCE_DIRECTORY(build/testenv/lib/python3.8/site-packages/numpy/core/include/numpy/
>> INSTALLED_NUMPY)
>> AUX_SOURCE_DIRECTORY(build/src.linux-x86_64-3.8/numpy/core/src/multiarray/
>> HELPER_FOR_C_SCR_FILES)
>>
>> set(
>> SOURCE_FILES
>> ${MULTIARRAY}
>> ${UMATH}
>> ${COMMON}
>> ${NPYMATH}
>> ${NPYSORT}
>> numpy/core/src/multiarray/
>> build/src.linux-x86_64-3.8/numpy/core/include/
>> build/src.linux-x86_64-3.8/numpy/core/include/numpy/
>>
>> build/src.linux-x86_64-3.8/numpy/core/include/numpy/__multiarray_api.c
>> build/src.linux-x86_64-3.8/numpy/core/src/common/
>> build/src.linux-x86_64-3.8/numpy/core/src/umath/
>> build/src.linux-x86_64-3.8/numpy/core/src/multiarray/
>> build/src.linux-x86_64-3.8/numpy/core/src/npymath/
>> build/src.linux-x86_64-3.8/numpy/core/src/npysort/
>> numpy/core/src/common/
>> numpy/core/include/)
>>
>> set(CMAKE_INCLUDE_PATH SOURCE_FILES)
>>
>> add_compile_definitions(NPY_INTERNAL_BUILD)
>>
>> add_compile_definitions([=[NPY_VISIBILITY_HIDDEN=__attribute__((visibility("hidden")))]=])
>> # add_compile_definitions(NPY_VISIBILITY_HIDDEN=)
>>
>> add_compile_definitions(NULL=0)
>> #add_compile_definitions(NPY_SIZEOF_SHORT=2)
>> #add_compile_definitions(NPY_SIZEOF_INT=4)
>> #add_compile_definitions(NPY_SIZEOF_LONG=8)
>> #add_compile_definitions(NPY_SIZEOF_LONGLONG=8)
>> #add_compile_definitions(NPY_SIZEOF_PY_INTPTR_T=8)
>>
>>
>> # Find default python libraries and interpreter
>> #find_package(PythonInterp 3 REQUIRED)
>> #find_package(PythonLibs 3 REQUIRED)
>>
>> #include_directories(${SOURCE_FILES} ${PYTHON_INCLUDE_DIRS})  #
>> PYTHON_INCLUDE_DIRS also picks up the wrong numpy files...
>> # The "clean" version below is manually edited with numpy removed...
>> # I manuall deleted sudo rm -rf /usr/include/numpy, but I do not think it
>> should have been there?!
>> #include_directories(${SOURCE_FILES}
>> /home/sebastian/venvs/pydbg-clean/include/python3.8d)
>> include_directories(${SOURCE_FILES} /usr/include/python3.8)
>>
>> add_executable(asdf
>> build/src.linux-x86_64-3.8/numpy/core/include/numpy/__multiarray_api.c
>> ${SOURCE_FILES})
>>
>>
>>
>>
>> >
>> >
>> > thx
>> > ___
>> > NumPy-Discussion mailing list
>> > NumPy-Discussion@python.org
>> > https://mail.python.org/mailman/listinfo/numpy-discussion
>>
>>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Help needed GDB

2020-12-28 Thread Amardeep Singh
Hi All,

I am trying to debug c code of numpy via gdb.Can someone help me with this?
i am getting " Python scripting is not supported in this copy of GDB". How
to install python supported gdb on win10?


https://numpy.org/doc/stable/dev/development_environment.html

I am following the steps in the docs. machine is windows 10.

Debugging


Another frequently asked question is “How 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(sys.version_info)>endsys.version_info(major=3, minor=7,
micro=0, releaselevel='final', serial=0)




$ gdb -v
GNU gdb (GDB) 7.6.1
This GDB was configured as "mingw32".

$ gdb
(gdb) python
>import sys
>print(sys.version_info)
>end
(gdb) Python scripting is not supported in this copy of GDB.
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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 trying to debug c code of numpy via gdb.Can someone help me with this?
> i am getting " Python scripting is not supported in this copy of GDB". How
> to install python supported gdb on win10?
>
>
> https://numpy.org/doc/stable/dev/development_environment.html
>
> I am following the steps in the docs. machine is windows 10.
>
> Debugging
> <https://numpy.org/doc/stable/dev/development_environment.html#debugging>
>
> Another frequently asked question is “How 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(sys.version_info)>endsys.version_info(major=3, 
> minor=7, micro=0, releaselevel='final', serial=0)
>
>
>
>
> $ gdb -v
> GNU gdb (GDB) 7.6.1
> This GDB was configured as "mingw32".
>
> $ gdb
> (gdb) python
> >import sys
> >print(sys.version_info)
> >end
> (gdb) Python scripting is not supported in this copy of GDB.
>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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 python found at /usr/local/bin/python3



These are the commands i ran


1) /Users/amardeepsingh/Downloads/gdb-9.2/configure
--with-python=/usr/local/bin/python3


2) make




my mac


 % which python3


/Library/Frameworks/Python.framework/Versions/3.9/bin/python3

% ls -lrt /usr/local/bin/python3

lrwxr-xr-x  1 root  wheel  69 Dec 29 14:37 /usr/local/bin/python3 ->
../../../Library/Frameworks/Python.framework/Versions/3.9/bin/python3








On Tue, Dec 29, 2020 at 4:04 PM Amardeep Singh  wrote:

> 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 trying to debug c code of numpy via gdb.Can someone help me with
>> this?
>> i am getting " Python scripting is not supported in this copy of GDB".
>> How to install python supported gdb on win10?
>>
>>
>> https://numpy.org/doc/stable/dev/development_environment.html
>>
>> I am following the steps in the docs. machine is windows 10.
>>
>> Debugging
>> <https://numpy.org/doc/stable/dev/development_environment.html#debugging>
>>
>> Another frequently asked question is “How 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(sys.version_info)>endsys.version_info(major=3, 
>> minor=7, micro=0, releaselevel='final', serial=0)
>>
>>
>>
>>
>> $ gdb -v
>> GNU gdb (GDB) 7.6.1
>> This GDB was configured as "mingw32".
>>
>> $ gdb
>> (gdb) python
>> >import sys
>> >print(sys.version_info)
>> >end
>> (gdb) Python scripting is not supported in this copy of GDB.
>>
>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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 and comment out these
two lines:

 if getvar('LINKFORSHARED') is not None:
  libs.extend(getvar('LINKFORSHARED').split())










On Tue, Dec 29, 2020 at 4:27 PM Amardeep Singh  wrote:

> 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 python found at /usr/local/bin/python3
>
>
>
> These are the commands i ran
>
>
> 1) /Users/amardeepsingh/Downloads/gdb-9.2/configure
> --with-python=/usr/local/bin/python3
>
>
> 2) make
>
>
>
>
> my mac
>
>
>  % which python3
>
>
> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
>
> % ls -lrt /usr/local/bin/python3
>
> lrwxr-xr-x  1 root  wheel  69 Dec 29 14:37 /usr/local/bin/python3 ->
> ../../../Library/Frameworks/Python.framework/Versions/3.9/bin/python3
>
>
>
>
>
>
>
>
> On Tue, Dec 29, 2020 at 4:04 PM Amardeep Singh 
> wrote:
>
>> 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 trying to debug c code of numpy via gdb.Can someone help me with
>>> this?
>>> i am getting " Python scripting is not supported in this copy of GDB".
>>> How to install python supported gdb on win10?
>>>
>>>
>>> https://numpy.org/doc/stable/dev/development_environment.html
>>>
>>> I am following the steps in the docs. machine is windows 10.
>>>
>>> Debugging
>>> <https://numpy.org/doc/stable/dev/development_environment.html#debugging>
>>>
>>> Another frequently asked question is “How 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(sys.version_info)>endsys.version_info(major=3, minor=7, micro=0, 
>>> releaselevel='final', serial=0)
>>>
>>>
>>>
>>>
>>> $ gdb -v
>>> GNU gdb (GDB) 7.6.1
>>> This GDB was configured as "mingw32".
>>>
>>> $ gdb
>>> (gdb) python
>>> >import sys
>>> >print(sys.version_info)
>>> >end
>>> (gdb) Python scripting is not supported in this copy of GDB.
>>>
>>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


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:

$ gdb --args python runtests.py -g --python mytest.py

And then in the debugger:

(gdb) break array_empty_like(gdb) run.  --> once i type run and enter
nothing happens it just gets struck up there.


Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (array_empty_like) pending.

(gdb) run

Starting program: /usr/bin/python mytest.py

[New Thread 0x1e03 of process 16513]

[New Thread 0x2303 of process 16513]




thx



On Tue, Dec 29, 2020 at 9:38 PM Amardeep Singh  wrote:

> 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 and comment out these
> two lines:
>
>  if getvar('LINKFORSHARED') is not None:
>   libs.extend(getvar('LINKFORSHARED').split())
>
>
>
>
>
>
>
>
>
>
> On Tue, Dec 29, 2020 at 4:27 PM Amardeep Singh 
> wrote:
>
>> 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 python found at /usr/local/bin/python3
>>
>>
>>
>> These are the commands i ran
>>
>>
>> 1) /Users/amardeepsingh/Downloads/gdb-9.2/configure
>> --with-python=/usr/local/bin/python3
>>
>>
>> 2) make
>>
>>
>>
>>
>> my mac
>>
>>
>>  % which python3
>>
>>
>> /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
>>
>> % ls -lrt /usr/local/bin/python3
>>
>> lrwxr-xr-x  1 root  wheel  69 Dec 29 14:37 /usr/local/bin/python3 ->
>> ../../../Library/Frameworks/Python.framework/Versions/3.9/bin/python3
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 29, 2020 at 4:04 PM Amardeep Singh 
>> wrote:
>>
>>> 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 trying to debug c code of numpy via gdb.Can someone help me with
>>>> this?
>>>> i am getting " Python scripting is not supported in this copy of GDB".
>>>> How to install python supported gdb on win10?
>>>>
>>>>
>>>> https://numpy.org/doc/stable/dev/development_environment.html
>>>>
>>>> I am following the steps in the docs. machine is windows 10.
>>>>
>>>> Debugging
>>>> <https://numpy.org/doc/stable/dev/development_environment.html#debugging>
>>>>
>>>> Another frequently asked question is “How 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(sys.version_info)>endsys.version_info(major=3, minor=7, micro=0, 
>>>> releaselevel='final', serial=0)
>>>>
>>>>
>>>>
>>>>
>>>> $ gdb -v
>>>> GNU gdb (GDB) 7.6.1
>>>> This GDB was configured as "mingw32".
>>>>
>>>> $ gdb
>>>> (gdb) python
>>>> >import sys
>>>> >print(sys.version_info)
>>>> >end
>>>> (gdb) Python scripting is not supported in this copy of GDB.
>>>>
>>>
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Help Regarding Debugging Cython Code

2021-09-05 Thread Amardeep Singh
Hi Team

If some one has setup to debug cython code can  you please share
the details.
I am using ubuntu 20.4 .
Not sure why gdb not picking up breakpoints.

I am able to debug c extensions but not cython code.

Thx
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] Off Topic Question :Career Advice Needed

2022-03-20 Thread Amardeep Singh
Hi All

I am a Tech Lead based in Singapore.
I have got 140k offer in Toronto.
Just wanted to understand how is the job market for python,c++ roles in
Canada for perm and contract roles.
Suppose i join now and get permanent residency after 2 years is it easy to
make 200k per year or  is it something extremely rare.
Any one in this list based in Canada?How is the job market in Canada.?

You may reply me on amardee...@gmail.com  with your personal experience( if
any) since numpy email id is not meant for this purpose.

Thanks
Amardeep
___
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com