Difficulty getting started with Pipeclient.py

2020-09-10 Thread Steve
I downloaded the software and have been given a few test commands to use.
When I run it as it is, I get the request to enter the commands manually and
they work.

I do not see how to get the commands to work automatically. Somehow, I have
to bypass the "Enter command or 'Q' to quit"
How do I do this? Is it a batch file?

Commands given:
SelectTime:End="5" RelativeTo="ProjectStart" Start="5"
AddLabel:
SetLabel:Label="0" Text="Hello"
SelectTime:End="16" RelativeTo="ProjectStart" Start="15"
AddLabel:
SetLabel:Label="1" Text="World"  


==

Footnote:]
So a priest, a minister, and a rabbit walk into a bar and seat themselves at
the counter. The priest orders wine and the minister a glass of water. The
bartender turns to the rabbit and asks, "So what'll you have?"
"I dunno," the rabbit says with a shrug, "I'm only here because of
autocorrect."


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


[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Yury Selivanov


Yury Selivanov  added the comment:

Big +1 from me. This is something I always wanted to do myself (since the time 
of PEP 492 & 525 implementations) and I think this is a necessary change. It's 
great that this isn't just a C API UX improvement but also yields a big perf 
improvement.

--
nosy: +Mark.Shannon, lukasz.langa, vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-10 Thread Giordon Stark


Giordon Stark  added the comment:

This PR seems highly related: https://github.com/python/cpython/pull/18189. Not 
sure if it should be linked to this issue or not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41757] weakmethod's ref is deleted before weakref's garbage-collect callback is executed

2020-09-10 Thread Giordon Stark


New submission from Giordon Stark :

Hi, this is my first issue, so I hope to try my best to explain the problem. 
Unfortunately, I cannot get an easy minimum-reproducible-example of this 
because I can only seem to invoke this behavior using pytest (6.0.1) on two 
tests of our code. First, let me explain the issue.

AttributeError: 'NoneType' object has no attribute '_alive'
Exception ignored in: ._cb at 0x1696c2a70>
Traceback (most recent call last):
  File "/Users/kratsg/.virtualenvs/pyhf-dev/lib/python3.7/weakref.py", line 55, 
in _cb
if self._alive:

occurs sometimes. Not always (feels like a race condition) and occurs after 
pytest has finished, which indicates it must be hitting garbage-collect. The 
backtrace isn't as helpful as it seems to jump from our code straight to the 
callback (indicating a garbage-collect):

/Users/kratsg/pyhf/tests/test_validation.py(1082)test_optimizer_stitching()
-> pdf = pyhf.simplemodels.hepdata_like([50.0], [100.0], [10])
  /Users/kratsg/pyhf/src/pyhf/simplemodels.py(64)hepdata_like()
-> return Model(spec, batch_size=batch_size)
  /Users/kratsg/pyhf/src/pyhf/pdf.py(590)__init__()
-> config=self.config, batch_size=self.batch_size
  /Users/kratsg/pyhf/src/pyhf/pdf.py(339)__init__()
-> self.config.auxdata_order,
  /Users/kratsg/pyhf/src/pyhf/parameters/paramview.py(66)__init__()
-> self._precompute()
  /Users/kratsg/pyhf/src/pyhf/parameters/paramview.py(78)_precompute()
-> self.allpar_viewer, self.selected_viewer, self.all_indices
  /Users/kratsg/pyhf/src/pyhf/parameters/paramview.py(27)extract_index_access()
-> index_selection = baseviewer.split(indices, selection=subviewer.names)
  /Users/kratsg/pyhf/src/pyhf/tensor/common.py(59)split()
-> data = tensorlib.einsum('...j->j...', tensorlib.astensor(data))
  /Users/kratsg/pyhf/src/pyhf/tensor/numpy_backend.py(268)einsum()
-> return np.einsum(subscripts, *operands)
  <__array_function__ internals>(6)einsum()
> /Users/kratsg/.virtualenvs/pyhf-dev/lib/python3.7/weakref.py(56)_cb()
-> if self._alive:

Essentially, inside weakref.py's _cb(), I tried to figure out what "self" was:

(Pdb) self
(Pdb) !arg


and it seems like the evaluation of "self._alive" is doomed to fail as self is 
None. So meth comes in, we take it apart into obj and func, define an inner 
function _cb that closes over a weakref to a weakref to obj and registers that 
function to fire when the underlying object gets gc'd. However, there seems to 
be an assumption that "self" is not None by the time the callback is fired.

---

Steps to reproduce:

Clone: https://github.com/scikit-hep/pyhf
Set up virtual env/install: python3 -m pip install -e .[complete]
Run pytest: pytest tests/test_validation.py - -k 
"test_optimizer_stitching[scipy-numpy or test_optimizer_stitching[minuit-numpy" 
-s

--
components: macOS
messages: 376699
nosy: kratsg, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: weakmethod's ref is deleted before weakref's garbage-collect callback is 
executed
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev


Change by Vladimir Matveev :


--
keywords: +patch
pull_requests: +21255
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22196

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41756] Do not always use exceptions to return result from coroutine

2020-09-10 Thread Vladimir Matveev


New submission from Vladimir Matveev :

Currently async functions are more expensive to use comparing to their sync 
counterparts. A simple microbenchmark shows that difference could be quite 
significant:
```
import time

def f(a):
if a == 0:
return 0
return f(a - 1)

async def g(a):
if a == 0:
return 0
return await g(a - 1)

N = 10
C = 200

t0 = time.time()
for _ in range(N):
f(C)
t1 = time.time()
for _ in range(N):
try:
g(C).send(None)
except StopIteration:
pass
t2 = time.time()

print(f"Sync functions: {t1 - t0} s")
print(f"Coroutines: {t2 - t1} s")
```
Results from master on my machine:

Sync functions: 2.8642687797546387 s
Coroutines: 9.172159910202026 s

NOTE: Due to viral nature of async functions their number in codebase could 
become quite significant so having hundreds of them in a single call stack is 
not something uncommon.

One of reasons of such performance gap is that async functions always return 
its results via raising StopIteration exception which is not cheap. This can be 
avoided if in addition to `_PyGen_Send` always return result via exception we 
could have another function that will allow us to distinguish whether value 
that was returned from generator is a final result (return case) of whether 
this is yielded value.
In linked PR I've added function `_PyGen_SendNoStopIteration` with this 
behavior and updated ceval.c and _asynciomodule.c to use it instead of 
`_PyGen_Send` which resulted in a measurable difference:

Sync functions: 2.8861589431762695 s
Coroutines: 5.730362176895142 s

--
messages: 376698
nosy: v2m, yselivanov
priority: normal
severity: normal
status: open
title: Do not always use exceptions to return result from coroutine
type: performance
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Your confirmation is required to join the Python-list mailing list

2020-09-10 Thread Michael Torrie
On 9/10/20 10:48 AM, LZ Lian wrote:
> Dear Python Team,
> 
> I've subscribed as requested. I've attached the subscription email
> for your reference too
> 
> Now, for the issue I’ve tried to download and install the latest
> version of Python software a few times. However, each time I run the
> application, the window showing “Modify / Repair / uninstall” will
> pop out. I’ve tried all the options on that pop-up and nothing works.
> I’ve tried googling for solutions and none are really helpful. Pls
> assist. Thanks

Did you read the documentation at
https://docs.python.org/3/using/windows.html?  Is there something in
this document that is lacking?  Seems like this identical question comes
up on a weekly basis.
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-10 Thread Steve Dower


Steve Dower  added the comment:

Thanks! Just need a NEWS file (click Details next to the failed check for the 
helper app). Something like "Fixes automatic import of props file when using 
the Nuget package" would be good.

(Also posted on the PR)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-10 Thread Steve Dower


Steve Dower  added the comment:

We'd CreateFile the file and then immediately pass it to _open_osfhandle, which 
would keep the semantics the same apart from the share flags.

I'm not entirely against getting rid of O_TEXT support, but haven't taken the 
time to think through the implications.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



RE: Audacity and pipe_test.py

2020-09-10 Thread Steve
PS: and YES I got the track name to happen.
Sooo cool

=
Yes, certainly loving the progress now...
Great learning curve.

Your line worked except that I used copy/paste to place it in the program.
I kept on getting something like "improper indentation or tab" and pointing
to the end of that line.  I guess hidden characters were imbedded and when I
deleted all spaces before and after the paste, then placed them in again,
those hiddens went away.

Also, this language certainly does not like spaces at all except where IT
wants them. The values for ThisList[T] entries were two words, words with
spaces between. No go  I removed spaces and replaced them with - where I
wanted them, and it is working really nicely.

My time.sleep(60) or the do_command("'Start Time'=0, 'End Time'=150")  lines
do not seem to work unless they are immediately after the Record1stChoice
instruction.  This means that placement of the labels happen after the track
is recorded and before the recording is stopped.  I can live with that

Now I am going to see if I can name the label track and the recording
Track...

Steve





FootNote:
If money does not grow on trees, then why do banks have branches?

-Original Message-
From: Python-list  On
Behalf Of Dennis Lee Bieber
Sent: Thursday, September 10, 2020 1:51 PM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py


CORRECTION

On Thu, 10 Sep 2020 03:55:46 -0400, "Steve"  declaimed
the following:


>One thing I would really appreciate is getting the line as follows to work:
> do_command("SetLabel:Label=T Text=ThisList[T] ") which it a total 
>violation of what I described previously. (-:

Forgot the ' quotes...

do_command("SetLabel:Label=%s Text='%s'" % (T, ThisList[T]))



-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/

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

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


RE: Audacity and pipe_test.py

2020-09-10 Thread Steve


Yes, certainly loving the progress now...
Great learning curve.

Your line worked except that I used copy/paste to place it in the program.
I kept on getting something like "improper indentation or tab" and pointing
to the end of that line.  I guess hidden characters were imbedded and when I
deleted all spaces before and after the paste, then placed them in again,
those hiddens went away.

Also, this language certainly does not like spaces at all except where IT
wants them. The values for ThisList[T] entries were two words, words with
spaces between. No go  I removed spaces and replaced them with - where I
wanted them, and it is working really nicely.

My time.sleep(60) or the do_command("'Start Time'=0, 'End Time'=150")  lines
do not seem to work unless they are immediately after the Record1stChoice
instruction.  This means that placement of the labels happen after the track
is recorded and before the recording is stopped.  I can live with that

Now I am going to see if I can name the label track and the recording
Track...

Steve





FootNote:
If money does not grow on trees, then why do banks have branches?

-Original Message-
From: Python-list  On
Behalf Of Dennis Lee Bieber
Sent: Thursday, September 10, 2020 1:51 PM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py


CORRECTION

On Thu, 10 Sep 2020 03:55:46 -0400, "Steve"  declaimed
the following:


>One thing I would really appreciate is getting the line as follows to work:
> do_command("SetLabel:Label=T Text=ThisList[T] ") which it a total 
>violation of what I described previously. (-:

Forgot the ' quotes...

do_command("SetLabel:Label=%s Text='%s'" % (T, ThisList[T]))



-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/

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

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


Re: [SOLVED] Module exists and cannot be found

2020-09-10 Thread James Moe via Python-list
On 9/8/20 10:35 PM, James Moe wrote:

> Module PyQt5 is most definitely installed. Apparently there is more to getting
> modules loaded than there used to be.
>
  Cause: Operator Error
  The python installation had become rather messy resulting in the errors I
showed. After installing python correctly, the errors disappeared and the app is
performing as expected.

  Thank you all for your replies.

-- 
James Moe
jmm-list at sohnen-moe dot com
Think.
-- 
https://mail.python.org/mailman/listinfo/python-list


Wing Python ID 7.2.5 has been released

2020-09-10 Thread Wingware
Wing 7.2.5 enhances the accuracy of some types of code warnings, 
improves Debug I/O process management, streamlines new virtualenv 
creation, implements vi mode :[range]y, and makes a number of usability 
improvements.


Details:  https://wingware.com/news/2020-09-09
Downloads:   https://wingware.com/downloads

== About Wing ==

Wing is a light-weight but full-featured Python IDE designed 
specifically for Python, with powerful editing, code inspection, 
testing, and debugging capabilities. Wing's deep code analysis provides 
auto-completion, auto-editing, and refactoring that speed up 
development. Its top notch debugger works with any Python code, locally 
or on a remote host. Wing also supports test-driven development, version 
control, UI color and layout customization, and includes extensive 
documentation and support.


Wing is available in three product levels:  Wing Pro is the 
full-featured Python IDE for professional developers, Wing Personal is a 
free Python IDE for students and hobbyists (omits some features), and 
Wing 101 is a very simplified free Python IDE for beginners (omits many 
features).


Learn more at https://wingware.com/

___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


ANN: Wing Python IDE version 7.2.5 has been released

2020-09-10 Thread Wingware
Wing 7.2.5 enhances the accuracy of some types of code warnings, 
improves Debug I/O process management, streamlines new virtualenv 
creation, implements vi mode :[range]y, and makes a number of usability 
improvements.


Details:  https://wingware.com/news/2020-09-09
Downloads:   https://wingware.com/downloads

== About Wing ==

Wing is a light-weight but full-featured Python IDE designed 
specifically for Python, with powerful editing, code inspection, 
testing, and debugging capabilities. Wing's deep code analysis provides 
auto-completion, auto-editing, and refactoring that speed up 
development. Its top notch debugger works with any Python code, locally 
or on a remote host. Wing also supports test-driven development, version 
control, UI color and layout customization, and includes extensive 
documentation and support.


Wing is available in three product levels:  Wing Pro is the 
full-featured Python IDE for professional developers, Wing Personal is a 
free Python IDE for students and hobbyists (omits some features), and 
Wing 101 is a very simplified free Python IDE for beginners (omits many 
features).


Learn more at https://wingware.com/

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


[issue41755] Docs: Please remove `from distutils.core import setup`

2020-09-10 Thread Thomas Guettler


New submission from Thomas Guettler :

Please remove this page or at least the code snippet 
containing `from distutils.core import setup`
on this page: https://docs.python.org/3/distutils/setupscript.html

There is the more up to date doc here: 
https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py

Quoting Zen o Py: There should be one-- and preferably only one --obvious way 
to do it.

Thank you very much!

--
messages: 376695
nosy: guettli
priority: normal
severity: normal
status: open
title: Docs: Please remove `from distutils.core import setup`

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The tkdocs pages load in less than a second rather than in several seconds, 
have the obsolete link lined out, and include a short explanatory note.  So I 
made the replacement.

Ned, please backport to 3.7 and 3.6 if still built nightly.

--
resolution:  -> fixed
stage: patch review -> resolved
versions: +Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 8a30bdd21dff6d1957df135c9d0b9983a0f61228 by Miss Islington (bot) 
in branch '3.8':
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188) 
(#22193)
https://github.com/python/cpython/commit/8a30bdd21dff6d1957df135c9d0b9983a0f61228


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington


miss-islington  added the comment:


New changeset 1b4bdb4cd71df6339da3f247516e0c642f40c37e by Miss Islington (bot) 
in branch '3.9':
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188)
https://github.com/python/cpython/commit/1b4bdb4cd71df6339da3f247516e0c642f40c37e


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



ANN: Support for Python, Flask and Django in oso.

2020-09-10 Thread Stephanie Glaser
ANN: Support for Python, Flask and Django in oso.

Hey everyone -

We built an open source policy engine for authorization that's embedded in
your application, called oso . oso works in any Python
application. We also have flask-oso and django-oso, integrations for using
oso with Flask and Django apps.

You write policies using the oso policy language to determine who can do
what in your application, then you integrate them with a few lines of
Python code using our library.

Roles are a common pattern to reach for when setting up permissions, but
we've found that they're limited and can get clunky, so oso provides a
language (called Polar) that's purpose-built for representing common domain
concepts that can be useful like data ownership, hierarchies,
relationships, etc.

We're continuing to improve oso and add features, so please share any
feedback or questions you have.

*Some useful links:*

Quickstart & Install: https://docs.osohq.com/getting-started/quickstart.html

Python library docs:
https://docs.osohq.com/using/libraries/python/index.html

Django docs: https://docs.osohq.com/using/frameworks/django.html

Flask docs: https://docs.osohq.com/using/frameworks/flask.html

Source code: https://github.com/osohq/oso/tree/main/languages/python/oso

Feel free to join us on Slack for any questions: join-slack.osohq.com
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21254
pull_request: https://github.com/python/cpython/pull/22193

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21253
pull_request: https://github.com/python/cpython/pull/22192

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30 by Mark Roseman in 
branch 'master':
bpo-37149: Change Shipman tkinter link from archive.org to TkDocs (GH-22188)
https://github.com/python/cpython/commit/06d0b8b67e8aebd8fe4c34e97d6915c11f4afa30


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



NumPy 1.19.2 released

2020-09-10 Thread Charles R Harris
Hi All,

On behalf of the NumPy team I am pleased to announce that NumPy 1.19.2 has
been released. This release fixes several bugs, prepares for the upcoming
Cython 3.x release. and pins setuptools to keep distutils working while
upstream modifications are ongoing. The aarch64 wheels are built with the
latest manylinux2014 release
that fixes the problem of differing page sizes used by different Linux
distros.

There is a known problem with Windows 10 version=2004 and OpenBLAS svd that
we are trying to debug. If you are running that Windows version you should
use a NumPy version that links to the MKL library, earlier Windows versions
are fine.

This release supports Python 3.6-3.8. Downstream developers should use
Cython >= 0.29.21 when building for Python 3.9 and Cython >= 0.29.16 when
building for Python 3.8. OpenBLAS >= 3.7 is needed to avoid wrong results
on the Skylake architecture. The NumPy Wheels for this release can be
downloaded from PyPI , source
archives, release notes, and wheel hashes are available from Github
. Linux users will
need pip >= 0.19.3 in order to install manylinux2010 and manylinux2014
wheels.

*Contributors*

A total of 8 people contributed to this release.  People with a "+" by their
names contributed a patch for the first time.

   - Charles Harris
   - Matti Picus
   - Pauli Virtanen
   - Philippe Ombredanne +
   - Sebastian Berg
   - Stefan Behnel +
   - Stephan Loyd +
   - Zac Hatfield-Dodds

*Pull requests merged*

A total of 9 pull requests were merged for this release.

   - #16959: TST: Change aarch64 to arm64 in travis.yml.
   - #16998: MAINT: Configure hypothesis in ``np.test()`` for
   determinism,...
   - #17000: BLD: pin setuptools < 49.2.0
   - #17015: ENH: Add NumPy declarations to be used by Cython 3.0+
   - #17125: BUG: Remove non-threadsafe sigint handling from fft calculation
   - #17243: BUG: core: fix ilp64 blas dot/vdot/... for strides > int32 max
   - #17244: DOC: Use SPDX license expressions with correct license
   - #17245: DOC: Fix the link to the quick-start in the old API functions
   - #17272: BUG: fix pickling of arrays larger than 2GiB

Cheers,

Charles Harris
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-10 Thread Skip Montanaro


Skip Montanaro  added the comment:

@Vladyslav.Bondar I can't tell where you are suggesting MinProtocol should be 
set. I don't see that particular string in any .c, .h or .py file in the Python 
source.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Your confirmation is required to join the Python-list mailing list

2020-09-10 Thread Richard Damon
On 9/10/20 12:48 PM, LZ Lian wrote:
> Dear Python Team,
>
> I've subscribed as requested. I've attached the subscription email for your 
> reference too
>
> Now, for the issue I’ve tried to download and install the latest version 
> of Python software a few times. However, each time I run the application, the 
> window showing “Modify / Repair / uninstall” will pop out. I’ve tried all the 
> options on that pop-up and nothing works. I’ve tried googling for solutions 
> and none are really helpful. Pls assist. Thanks
>
> Warmest Regards,
> Jovial Lian
>
Sounds like you keep re-running the installer rather than the installed
version of python.

-- 
Richard Damon

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


Re: Your confirmation is required to join the Python-list mailing list

2020-09-10 Thread LZ Lian
Dear Python Team,

I've subscribed as requested. I've attached the subscription email for your 
reference too

Now, for the issue I’ve tried to download and install the latest version of 
Python software a few times. However, each time I run the application, the 
window showing “Modify / Repair / uninstall” will pop out. I’ve tried all the 
options on that pop-up and nothing works. I’ve tried googling for solutions and 
none are really helpful. Pls assist. Thanks

Warmest Regards,
Jovial Lian


Sent from Mail for Windows 10


Get Outlook for Android


From: Python-list  on 
behalf of 
python-list-confirm+b649e785f0d9b368d0a61c736e9b5b6a5ff7f...@python.org 

Sent: Friday, September 11, 2020 12:44:50 AM
To: lizhenlia...@gmail.com 
Subject: Your confirmation is required to join the Python-list mailing list

Mailing list subscription confirmation notice for mailing list
Python-list

We have received a request from 223.25.79.105 for subscription of your
email address, "lizhenlia...@gmail.com", to the python-list@python.org
mailing list.  To confirm that you want to be added to this mailing
list, simply reply to this message, keeping the Subject: header
intact.  Or visit this web page:


https://mail.python.org/mailman/confirm/python-list/b649e785f0d9b368d0a61c736e9b5b6a5ff7fad9


Or include the following line -- and only the following line -- in a
message to python-list-requ...@python.org:

confirm b649e785f0d9b368d0a61c736e9b5b6a5ff7fad9

Note that simply sending a `reply' to this message should work from
most mail readers, since that usually leaves the Subject: line in the
right form (additional "Re:" text in the Subject: is okay).

If you do not wish to be subscribed to this list, please simply
disregard this message.  If you think you are being maliciously
subscribed to the list, or have any other questions, send them to
python-list-ow...@python.org.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: newbie

2020-09-10 Thread edmondo . giovannozzi
You can also have a look at www.scipy.org where you can find some packages used 
for scientific programming like numpy, scipy, matplotlib.
The last one is a graphic package that may be useful to make some initial plots.


Il giorno martedì 8 settembre 2020 22:57:36 UTC+2, Don Edwards ha scritto:
> Purchased the book python-basics-2020-05-18.pdf a few days ago.
> To direct my learning I have a project in mind as per below;
> 
> Just started learning python 3.8. At 76 I will be a bit slow but
> fortunately decades ago l learnt pascal. I am not asking programming help
> just guidance toward package(s) I may need. My aim is to write a program
> that simulates croquet - 2 balls colliding with the strikers (cue) ball
> going into the hoop (pocket), not the target ball. I want to be able to
> move the balls around and draw trajectory lines to evaluate different
> positions. Is there a package for this or maybe one to draw and one to
> move? Any help much appreciated.
> 
> -- 
> Regards, Don Edwards
> I aim to live forever - or die in the attempt. So far so good!
> Perth Western Australia

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


[issue17254] add thai encoding aliases to encodings.aliases

2020-09-10 Thread Benjamin Wood


Benjamin Wood  added the comment:

Bumping this again.

I'd like to try and understand why this change can not or has not been approved.

I added the technical info here to the github PR.

Is there a shortage of reviewers? What can I do to help speed up the process?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2020-09-10 Thread pmp-p


Change by pmp-p :


--
pull_requests: +21251
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22190

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-09-10 Thread Vladyslav Bondar


Vladyslav Bondar  added the comment:

This will help to solve it

https://stackoverflow.com/questions/61568215/openssl-v1-1-1-ubuntu-20-tlsv1-no-protocols-available

But in my case I've defined:
MinProtocol = None

--
nosy: +Vladyslav.Bondar

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2020-09-10 Thread pmp-p


Change by pmp-p :


--
versions: +Python 3.6, Python 3.7, Python 3.8, Python 3.9 -Python 2.6, Python 
2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39107] Upgrade tcl/tk to 8.6.10 (Windows and maxOS)

2020-09-10 Thread Mark Roseman


Change by Mark Roseman :


--
nosy: +markroseman

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41052] Opt out serialization/deserialization for heap type

2020-09-10 Thread Dong-hee Na


Change by Dong-hee Na :


--
pull_requests: +21250
pull_request: https://github.com/python/cpython/pull/22189

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-09-10 Thread Mark Roseman


Change by Mark Roseman :


--
pull_requests: +21249
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22188

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



PyCon India 2020 Keynote: S Anand

2020-09-10 Thread ABHISHEK MISHRA
Hi everyone,

We are happy to announce S Anand as the fourth Keynote speaker of
PyCon India 2020.

About Anand
---
Anand is the co-founder of Gramener, a data science company. He is
recognized as one of India's top 10 data scientists. He leads a team
that automates insights from data and narrates these as visual data
stories.

You can find him on Twitter: @sanand0

Please retweet the announcement to reach to all the interested parties
https://twitter.com/pyconindia/status/1304020252271849472

--
Abhishek Mishra
On behalf of PyCon India 2020 Team
https://in.pycon.org/2020/
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


PyCon India 2020 Keynote: James Powell

2020-09-10 Thread ABHISHEK MISHRA
Hi everyone,

We are pleased to announce James Powell as the third Keynote Speaker
of PyCon India 2020.

About James
---

James Powell is a professional Python programmer and enthusiast. He
started working with Python in the finance industry building reporting
and analysis systems for prop trading front offices. He currently
works as a consultant building data engineering and scientific
computing platforms for a wide-range of clients using cutting-edge
open source tools like Python and React. He also offers a variety of
corporate training courses and coaching sessions in all areas of
Python.

In his spare time, he serves on the board of NumFOCUS as co-Chairman
and Vice President. NumFOCUS is the 501(c)(3) non-profit that supports
all the major tools in the Python data analysis ecosystem (incl.
pandas, numpy, jupyter, matplotlib, and others.) At NumFOCUS, he helps
build global open source communities for data scientists, data
engineers, and business analysis. He helps NumFOCUS run the PyData
conference series and has sat on speaker selection and organizing
committees for over two dozen conferences. James is also a prolific
speaker: since 2013, he has given over seventy conference talks at
over fifty Python events worldwide.

You can find him on Twitter @dontusethiscode.

Please retweet the announcement to reach to all the interested parties
https://twitter.com/pyconindia/status/1303657849688530944

--
Abhishek Mishra
On behalf of PyCon India 2020 Team
https://in.pycon.org/2020/
___
Python-announce-list mailing list -- python-announce-list@python.org
To unsubscribe send an email to python-announce-list-le...@python.org
https://mail.python.org/mailman3/lists/python-announce-list.python.org/
Member address: arch...@mail-archive.com


[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-09-10 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset f76d894dc5d5facce1a6c1b71637f6a2b3f9fd2b by Mohamed Koubaa in 
branch 'master':
bpo-1635741: Port cmath to multi-phase init (PEP 489) (GH-22165)
https://github.com/python/cpython/commit/f76d894dc5d5facce1a6c1b71637f6a2b3f9fd2b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

2020-09-10 Thread STINNER Victor


STINNER Victor  added the comment:

About subinterpreters. In Python 3.8, _ast.AST type is a static type:

static PyTypeObject AST_type = {...};

In Python 3.9, it's now a heap type:

static PyType_Spec AST_type_spec = {...};
state->AST_type = PyType_FromSpec(_type_spec);

In Python 3.8, the same _ast.AST type was shared by all interpreters. With my 
PR 21961, the _ast.AST type is a heap type but it is also shared by all 
interpreters.

Compared to Python 3.8, PR 21961 has no regression related to subinterpreters. 
It's not better nor worse. The minor benefit is that _ast.AST is cleared at 
Python exit (see _PyAST_Fini()).

While I would be nice to make _ast.AST per interpreter, it would be an 
*enhancement*. I consider that it can wait for Python 3.10.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread mohamed koubaa


mohamed koubaa  added the comment:

Something like this?

```
static PyObject *def;

PyMODINIT_FUNC
PyInit_mymod(void)
{
if (def == NULL) {
   def = PyModuleDef_Init();
}
return def;
}
```

Then add a flag to PyModuleDef to indicate it is already exec?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2020-09-10 Thread Eryk Sun


Eryk Sun  added the comment:

> we'd have to reimplement the UCRT function using the system API. 

Could the implementation drop support for os.O_TEXT? I think Python 3 should 
have removed both os.O_TEXT and os.O_BINARY. 3.x has no need for the C 
runtime's ANSI text mode, with its Ctrl+Z behavior inherited from MS-DOS. I'd 
prefer that os.open always used _O_BINARY and raised a ValueError if passed any 
of the C runtime's text modes, including _O_TEXT, _O_WTEXT, _O_U16TEXT, and 
_O_U8TEXT.

If _O_TEXT is supported, then we have to copy the C runtime's behavior, which 
truncates a Ctrl+Z from the end of the file if it's opened with read-write 
access. If Unicode text modes are supported, then we have to read the BOM, 
which can involve opening the file twice if the caller doesn't request read 
access.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41716] SyntaxError: EOL while scanning string literal

2020-09-10 Thread Larry Hastings


Change by Larry Hastings :


--
components: +Interpreter Core -Argument Clinic
nosy:  -larry

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

Can any core reviewer review the PR?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41716] SyntaxError: EOL while scanning string literal

2020-09-10 Thread chen-y0y0


chen-y0y0  added the comment:

Yep.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19521] Parallel build race condition on AIX since python-2.7

2020-09-10 Thread Stefan Krah


Stefan Krah  added the comment:

I have been asked to backport this to 3.8. There's a very small window
of opportunity:

3.8.6: Monday, 2020-09-21
3.8.7rc1: Monday, 2020-11-02
3.8.7: Monday, 2020-11-16 (final version!)


Backporting procedures since 3.8 are unclear and a source of
constant friction, so most core developers seem to have stopped
doing any backports at all.  It is not a battle I'll choose, but
if you get a second core dev to review this trivial patch I'll
commit it.

There's a simple solution for 3.8: Do not use the parallel build,
the regular build takes around 4 min.


For the buildbots you can ask the operator for a custom command
line.

--
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21248

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +21248
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21247

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

All tests have passed. Now it's time to merge!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

@epaine The doc (https://docs.python.org/3/library/tkinter.tix.html) states 
"This Tk extension is unmaintained and should not be used in new code.".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +21247
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21245

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
pull_requests: +21246
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
nosy: +wyz23x2
nosy_count: 6.0 -> 7.0
pull_requests: +21245
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41744] NuGet python.props only works in python nuget, not other variants

2020-09-10 Thread Vaclav Slavik


Vaclav Slavik  added the comment:

Thank you, I didn't consider that situation. I forced-pushed an update to the 
PR now. 

I opted for duplicate file rather than including, because I think it imposes 
the least maintenance burden on keeping compatibility: the other alternative 
would mean
- one more file
- either a more complicated logic or the primary file including the compat one 
(so "normal" path slightly more convoluted)
- tiny, but not 100% trivial difference between python nuget and the other ones.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread E. Paine


E. Paine  added the comment:

As I believe planning for removal (including the version this should occur in) 
is better suited to #31371, I think it would be best to remain non-committal 
about the version. I would personally prefer something a little more vague 
(such as below), though as I keep saying, this is just my opinion.

DeprecationWarning: the tkinter.tix module is deprecated in favour of 
tkinter.ttk and is set to be removed in the near-future

It *may* also be nice to clarify in the docs why Tix is deprecated (i.e. 
unmaintained), though I will leave this (like the deprecation message) at your 
discretion.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread STINNER Victor


STINNER Victor  added the comment:

One option is to get the behavior before multi-phase initialization. We store 
extensions in a list. Once it's load, it cannot be unloaded before we exit 
Python. See _PyState_AddModule() and _PyState_AddModule().

Calling PyInit_xxx() the second time would simply return the existing module 
object.

When we exit Python, the clear and/or free function of the module is called.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

OK. What should the message be? "tkinter.tix is deprecated (and will be removed 
in Python 3.x), use tkinter.ttk instead"?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40600] Add option to disallow > 1 instance of an extension module

2020-09-10 Thread Dong-hee Na


Dong-hee Na  added the comment:

One of my opinions is that

Since module object supports detecting error during Py_mod_exec,
The only thing we have to do is return -1 when the module has already existed.

we should define new exception type and don't have to define new slots.
The pros of this method is that we don't have to modify module object and no 
needs to write the new PEP

but the cons of this method is that we should promise the standard exception 
when try to create multiple instances which is not allowed.

ref: 
https://github.com/python/cpython/blob/788b79fa7b6184221e68d4f1a3fbe0b3270693f6/Objects/moduleobject.c#L399

On the other side, defining a Py_mod_exec_once that supports execution for just 
once can be a way.
Although the usage is little, it will be fine because the use case will exist.

Please point out what I missed :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



RE: Audacity and pipe_test.py

2020-09-10 Thread Steve
I used the line you supplied but trying it again, I began to solve the
problem through a series of accidents and errors. As it is, apparently the
Pipe_Test.py has some peculiar features.

>The first is that it will not tell you anything about errors, even whether
or not there is one.
>The commands are space-delimited so Text=Hello is not the same as Text =
Hello even if you have the quotes.
>It tolerates no variables. Label=X, if you have X in a loop, will always
have the value of text X and not a changing number.  As a matter of fact,
since Label has to have a numeric value, and seeing X will place the value
of label to be the default of 0.

So, yes, placing the 1 in the line and no spaces, it worked. I was able to
send text to the Label.

One thing I would really appreciate is getting the line as follows to work:
 do_command("SetLabel:Label=T Text=ThisList[T] ")
which it a total violation of what I described previously. (-:

The object is to pull the text out of ThisList and increment by looping on T
to populate the labels.

Unfortunately, road bump may well put the kibosh on my project
But I can dream, can't I?






FootNote:
If money does not grow on trees, then why do banks have branches?

-Original Message-
From: Python-list  On
Behalf Of Dennis Lee Bieber
Sent: Wednesday, September 9, 2020 11:17 AM
To: python-list@python.org
Subject: Re: Audacity and pipe_test.py

On Wed, 9 Sep 2020 03:12:59 -0400, "Steve"  declaimed
the following:


>But not this one:
>do_command("SetLabel:Label='1' Text='Hello' ")
>
>This is supposed to place "Hello" into the label.

As I interpret
https://manual.audacityteam.org/man/scripting.html#Using_Scripting the label
is identified by an integer, not a string. Try

do_command("SetLabel: Label=1 Text='Hello'")


-- 
Wulfraed Dennis Lee Bieber AF6VN
wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/

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

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


[issue40288] [subinterpreters] atexit module should not be loaded more than once per interpreter

2020-09-10 Thread STINNER Victor


STINNER Victor  added the comment:

I would prefer a more generic solution, if possible:

> bpo-40600: "Add an option to disallow creating more than one instance of a 
> module".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-09-10 Thread Tony DiLoreto


New submission from Tony DiLoreto :

The following code does not work on many OSX installations of Python via 
homebrew:

>>> import webbrowser
>>> webbrowser.open("http://www.google.com;)

And throws the following error stack trace:

  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/webbrowser.py",
 line 26, in register
register_standard_browsers()
  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/webbrowser.py",
 line 551, in register_standard_browsers
raw_result = subprocess.check_output(cmd, stderr=subprocess.DEVNULL)
  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 489, in run
with Popen(*popenargs, **kwargs) as process:
  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
  File 
"/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: 'xdg-settings'



The only workaround right now is to modify webbrowser.py via the instructions 
here: https://github.com/jupyter/notebook/issues/3746#issuecomment-489259515.

Thank you for resolving.

--
components: Library (Lib), macOS
messages: 376672
nosy: ned.deily, ronaldoussoren, tony.diloreto
priority: normal
severity: normal
status: open
title: Webbrowser Module Cannot Find xdg-settings on OSX
type: crash
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com