[Python-Dev] Advice / RTFM needed for tool setup to participate in python development from a Windows host

2020-12-16 Thread pjfarley3
Hello,

I hope this is the correct place to ask this question.  I have a desire to
participate in python development in a particular area from my Windows host
machine, but I am not finding any concise listing of the tool setup needed
to fully participate, nor any detailed guidance on how to proceed when
underlying code debugging is necessary.

I do know that some version of the MS VS20xx suite is necessary to begin.
My initial attempts using the VS2019 Community Edition have been less than
successful when it comes to debugging an underlying C library component when
the starting program is python because I have not figured out how to use the
VS2019 environment to do that.

So I would appreciate any RTFM / URL that can guide me in starting to
participate, especially for guidance on debugging procedures for underlying
C components when the initial program is a python script.

I have read most of the "Python Developers Guide" material, but there is not
any Window-specific tooling information that I have seen there yet.  What
other tooling do I need besides a VS20xx environment?

I do have good experience in C programming, but not much in using VS20xx
IDE's.

TIA for your gentle guidance in curing my ignorance.

Peter
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/LIGWZ43LHWQLEPLQ2A64SSHCGNH3XJPR/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Advice / RTFM needed for tool setup to participate in python development from a Windows host

2020-12-16 Thread pjfarley3
Yes, that is my specific issue.  I have a C DLL invoked by a python wrapper 
module using ctypes that has at least one issue (and likely more than one) so I 
need to be able to start a python test script and debug the lower-level DLL 
code.  The C test programs for the lower-level C DLL all seen to succeed, so I 
am suspecting something is wrong in the wrapper code.

If anyone has or knows of step-by-step instructions on how to set that debug 
environment up and start the outer-level script with debug breakpoints in the 
DLL I would greatly appreciate it.  I'm also doing my own searches for 
tutorials on debugging python with VS20xx, but have not read/viewed one of 
those yet.

I have in fact been able to re-compile cpython and the lower-level DLL using 
the VS2019 command line tools, but so far my only debugging capability has been 
to insert fprintf's to a trace file in the lower-level DLL code (or macros that 
result in such output) into the C code where I *think* the problem is 
happening, but I have not been able to nail it down yet.  Being able to start 
the process from the IDE and catch any C errors when they happen would be ideal.

My environment is Win10-64 and python 3.8.5.

Peter

> -Original Message-
> From: Paul Moore 
> Sent: Wednesday, December 16, 2020 2:20 PM
> To: pjfarl...@earthlink.net
> Cc: Python Dev 
> Subject: Re: [Python-Dev] Advice / RTFM needed for tool setup to participate 
> in
> python development from a Windows host
> 
> Personally, I just have Visual Studio and VS Code as my text editor. I
> rarely use Visual Studio directly, though, I mostly use the
> `build.bat` and similar scripts in the `PCBuild` directory.
> 
> Having said that, I'm not doing anything like debugging problems with
> DLLs, for which I imagine a decent C development environment is
> needed. You don't have much choice other than Visual Studio there (no
> other compiler is supported on Windows), though, so you'll probably
> need to learn that.
> 
> Paul
> 
> On Wed, 16 Dec 2020 at 18:28,  wrote:
> >
> > Hello,
> >
> > I hope this is the correct place to ask this question.  I have a desire to
> > participate in python development in a particular area from my Windows host
> > machine, but I am not finding any concise listing of the tool setup needed
> > to fully participate, nor any detailed guidance on how to proceed when
> > underlying code debugging is necessary.
> >
> > I do know that some version of the MS VS20xx suite is necessary to begin.
> > My initial attempts using the VS2019 Community Edition have been less than
> > successful when it comes to debugging an underlying C library component
> when
> > the starting program is python because I have not figured out how to use the
> > VS2019 environment to do that.
> >
> > So I would appreciate any RTFM / URL that can guide me in starting to
> > participate, especially for guidance on debugging procedures for underlying
> > C components when the initial program is a python script.
> >
> > I have read most of the "Python Developers Guide" material, but there is not
> > any Window-specific tooling information that I have seen there yet.  What
> > other tooling do I need besides a VS20xx environment?
> >
> > I do have good experience in C programming, but not much in using VS20xx
> > IDE's.
> >
> > TIA for your gentle guidance in curing my ignorance.
> >
> > Peter
--
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/H4MZYLFFB4EF6ZMMXE4FYH7KJRKNE3ZS/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Advice / RTFM needed for tool setup to participate in python development from a Windows host

2020-12-16 Thread pjfarley3
Thank you Emily!  That may allow me to do what I need to do to find the 
error(s) lurking there.

 

No multi-processing is involved in my current project, so it should be more 
straightforward to accomplish the debugging I need to do.

 

Peter

 

From: Emily Bowman  
Sent: Wednesday, December 16, 2020 8:11 PM
To: pjfarl...@earthlink.net
Cc: Python Dev 
Subject: Re: [Python-Dev] Re: Advice / RTFM needed for tool setup to 
participate in python development from a Windows host

 

Even if Python itself is the standard distribution, you should be able to debug 
your outside DLL module in VS just by putting a breakpoint on your favorite 
line and setting "/path/to/python.exe -m yourmodule" as the command path under 
debugging in your project properties, or whatever commandline accomplishes 
whatever initialization you need to test. Multiprocessing might be something 
else entirely, I don't know, I've only debugged DLLs in-process. As soon as 
your breakpoint is hit, it'll stop as you'd expect, even though you started 
something else entirely.

 

-Em

 

On Wed, Dec 16, 2020 at 4:56 PM mailto:pjfarl...@earthlink.net> > wrote:

Yes, that is my specific issue.  I have a C DLL invoked by a python wrapper 
module using ctypes that has at least one issue (and likely more than one) so I 
need to be able to start a python test script and debug the lower-level DLL 
code.  The C test programs for the lower-level C DLL all seen to succeed, so I 
am suspecting something is wrong in the wrapper code.

If anyone has or knows of step-by-step instructions on how to set that debug 
environment up and start the outer-level script with debug breakpoints in the 
DLL I would greatly appreciate it.  I'm also doing my own searches for 
tutorials on debugging python with VS20xx, but have not read/viewed one of 
those yet.

I have in fact been able to re-compile cpython and the lower-level DLL using 
the VS2019 command line tools, but so far my only debugging capability has been 
to insert fprintf's to a trace file in the lower-level DLL code (or macros that 
result in such output) into the C code where I *think* the problem is 
happening, but I have not been able to nail it down yet.  Being able to start 
the process from the IDE and catch any C errors when they happen would be ideal.

My environment is Win10-64 and python 3.8.5.

Peter

> -Original Message-
> From: Paul Moore mailto:p.f.mo...@gmail.com> >
> Sent: Wednesday, December 16, 2020 2:20 PM
> To: pjfarl...@earthlink.net  
> Cc: Python Dev mailto:python-dev@python.org> >
> Subject: Re: [Python-Dev] Advice / RTFM needed for tool setup to participate 
> in
> python development from a Windows host
> 
> Personally, I just have Visual Studio and VS Code as my text editor. I
> rarely use Visual Studio directly, though, I mostly use the
> `build.bat` and similar scripts in the `PCBuild` directory.
> 
> Having said that, I'm not doing anything like debugging problems with
> DLLs, for which I imagine a decent C development environment is
> needed. You don't have much choice other than Visual Studio there (no
> other compiler is supported on Windows), though, so you'll probably
> need to learn that.
> 
> Paul
> 
> On Wed, 16 Dec 2020 at 18:28,   > wrote:
> >
> > Hello,
> >
> > I hope this is the correct place to ask this question.  I have a desire to
> > participate in python development in a particular area from my Windows host
> > machine, but I am not finding any concise listing of the tool setup needed
> > to fully participate, nor any detailed guidance on how to proceed when
> > underlying code debugging is necessary.
> >
> > I do know that some version of the MS VS20xx suite is necessary to begin.
> > My initial attempts using the VS2019 Community Edition have been less than
> > successful when it comes to debugging an underlying C library component
> when
> > the starting program is python because I have not figured out how to use the
> > VS2019 environment to do that.
> >
> > So I would appreciate any RTFM / URL that can guide me in starting to
> > participate, especially for guidance on debugging procedures for underlying
> > C components when the initial program is a python script.
> >
> > I have read most of the "Python Developers Guide" material, but there is not
> > any Window-specific tooling information that I have seen there yet.  What
> > other tooling do I need besides a VS20xx environment?
> >
> > I do have good experience in C programming, but not much in using VS20xx
> > IDE's.
> >
> > TIA for your gentle guidance in curing my ignorance.
> >
> > Peter
--
___
Python-Dev mailing list -- python-dev@python.org  
To unsubscribe send an email to python-dev-le...@python.org 
 
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archive

[Python-Dev] Re: Advice / RTFM needed for tool setup to participate in python development from a Windows host

2020-12-17 Thread pjfarley3
Thanks for that link Steve.  I will read it and see what it can help me do.  It 
does seem like it is pretty much on target for the scenario I have, which is a 
C DLL project that is invoked by python wrapper functions invoked from a python 
script.

Peter

> -Original Message-
> From: Steve Dower 
> Sent: Thursday, December 17, 2020 5:22 AM
> To: pjfarl...@earthlink.net; 'Python Dev' 
> Subject: Re: [Python-Dev] Re: Advice / RTFM needed for tool setup to
> participate in python development from a Windows host
> 
> On 16Dec2020 2114, pjfarl...@earthlink.net wrote:
> > If anyone has or knows of step-by-step instructions on how to set that debug
> environment up and start the outer-level script with debug breakpoints in the
> DLL I would greatly appreciate it.  I'm also doing my own searches for 
> tutorials
> on debugging python with VS20xx, but have not read/viewed one of those yet.
> 
> Hi Peter
> 
> Hopefully this document is able to help you get set up:
> https://docs.microsoft.com/en-us/visualstudio/python/debugging-mixed-mode-
> c-cpp-python-in-visual-studio?view=vs-2019
> 
> It gives you a few options, depending on whether you've created a Python
> project, a C++ project, or are attaching to a running process. Hopefully
> one of those will suit you. There are some videos out there as well, but
> they're a little older. (If you don't see Python projects, you'll need
> to go back to the Visual Studio installer, select the Python workload
> and the Python Native Development option.)
> 
> If you run into problems, there's a "Report a problem" (under Help/Send
> Feedback) inside VS that will get directly to the team, though most
> people are on vacation for the next few weeks. (And yes, "the official
> docs aren't good enough for me to follow" is a problem ;) )
> 
> Cheers,
> Steve
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YKHNFDUNIWGCOSEUWEKI66PYVEVI2WBT/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] How to attract developer attention to issue tracker items?

2021-04-06 Thread pjfarley3
Hi developers,

What should / shouldn't I do to attract any python developer response to
issue tracker items?  I am unsure of the proper procedure to follow so I am
asking here first.

I have filed two issues on the python issue tracker for python curses
issues:

1.  # 43715, a documentation update request (suggested additional
documentation file uploaded)
2.  # 43716, a possible ABI issue for the curses.pair_number() function
return value in a Windows environment

With respect to the documentation issue, I would appreciate any review of
whether the suggested documentation addition that I uploaded as a text file
is acceptable as-is or whether further refinement or correction is needed.

In the case of the possible ABI issue I am uncertain whether the issue is in
the python interface code or in the underlying curses implementation library
(windows-curses V2.2.0 using PDCurses).  I would appreciate it if anyone
knowledgeable of the python curses interfacing code could advise me whether
I need to pursue the issue with the third party library provider or with the
python development team.  At the moment all that I know is that the
"workaround" that I discovered corrects the issue under Windows but is not
necessary under linux / ncurses (in my testing I used Ubuntu 20.04 WSL2 to
confirm that fact).

TIA for your patience with my ignorance of the proper procedures and
channels.

My environment:

Windows 10 Pro 64 (latest version)
Python 3.8.9 (tags/v3.8.9:a743f81, Apr  6 2021, 14:02:34) [MSC v.1928 64 bit
(AMD64)]
Windows-curses V2.2.0

Peter
--

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/RBGBZOJ267YUTTZ3JO5XUJBEG66MKL2W/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: How to attract developer attention to issue tracker items?

2021-04-08 Thread pjfarley3
Thanks Brett.  I guess I will just have to wait and see.

 

Peter

 

From: Brett Cannon  
Sent: Wednesday, April 7, 2021 4:37 PM
To: pjfarl...@earthlink.net
Cc: python-dev 
Subject: Re: [Python-Dev] How to attract developer attention to issue tracker 
items?

 

 

 

On Tue, Apr 6, 2021 at 11:22 PM mailto:pjfarl...@earthlink.net> > wrote:

Hi developers,

What should / shouldn't I do to attract any python developer response to
issue tracker items?  I am unsure of the proper procedure to follow so I am
asking here first.

 

What you're doing here is probably your best bet. Unfortunately the lack of 
response might stem from no core devs being interested in curses (but if any 
are then hopefully this email will spark their interest).

 

-Brett

 


I have filed two issues on the python issue tracker for python curses
issues:

1.  # 43715, a documentation update request (suggested additional
documentation file uploaded)
2.  # 43716, a possible ABI issue for the curses.pair_number() function
return value in a Windows environment

With respect to the documentation issue, I would appreciate any review of
whether the suggested documentation addition that I uploaded as a text file
is acceptable as-is or whether further refinement or correction is needed.

In the case of the possible ABI issue I am uncertain whether the issue is in
the python interface code or in the underlying curses implementation library
(windows-curses V2.2.0 using PDCurses).  I would appreciate it if anyone
knowledgeable of the python curses interfacing code could advise me whether
I need to pursue the issue with the third party library provider or with the
python development team.  At the moment all that I know is that the
"workaround" that I discovered corrects the issue under Windows but is not
necessary under linux / ncurses (in my testing I used Ubuntu 20.04 WSL2 to
confirm that fact).

TIA for your patience with my ignorance of the proper procedures and
channels.

My environment:

Windows 10 Pro 64 (latest version)
Python 3.8.9 (tags/v3.8.9:a743f81, Apr  6 2021, 14:02:34) [MSC v.1928 64 bit
(AMD64)]
Windows-curses V2.2.0

Peter
--

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/7BQV7KOTMUJUDNYCWVAP64T6ZQYBLXDO/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Question for potential python development contributions on Windows

2021-05-19 Thread pjfarley3
The Python Developers Guide specifically states to get VS2017 for developing
or enhancing python on a Windows system.

 

Is it still correct to specifically use VS2017 , or is VS2019 also
acceptable?

 

I ask this because I know that the *.vcproj files and other
build-environment files have changed format pretty dramatically over the
many releases of VS.  If a potential new contribution targeted for current
and future python will require new build environment files, I wouldn't want
to have to "down release" those files (or expect core dev's to do it) at or
after submission to the community for approval.  Much better to use the same
setup as core dev's use than to introduce up-level differences in the build
environment.

 

IOW, for new releases on Windows are core dev's still using VS2017 and so
potential contributors should also use that version, or has the core dev's
process for Windows releases been updated to use VS2019?

 

Peter

--

 

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/AFHJ2GWCINPKAV7DMMIRZBTAB6AXCMNK/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: Question for potential python development contributions on Windows

2021-05-24 Thread pjfarley3
> From: Łukasz Langa  
> Sent: Monday, May 24, 2021 4:37 AM
> To: pjfarl...@earthlink.net
> Cc: python-dev@python.org
> Subject: Re: [Python-Dev] Question for potential python development 
> contributions on Windows
>
> > On 20 May 2021, at 07:03, mailto:pjfarl...@earthlink.net wrote:
> > 
> > The Python Developers Guide specifically states to get VS2017 for 
> > developing or enhancing python on a Windows system.
> >  
> > Is it still correct to specifically use VS2017 , or is VS2019 also 
> > acceptable?
>
> We have to update the devguide. VS 2019 is supported, probably even 
> recommended, as long as the C++ tools are v14.x.

Thank you Łukasz, I was hoping that would be the answer.

How does one verify whether the C++ tools are 14.x, or is that just the usual 
for recent versions of VS2019?

Peter

___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/N2U67KQBBTZSPK6TDXHM25DRJRKFAIQN/
Code of Conduct: http://python.org/psf/codeofconduct/