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


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


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: 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


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


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


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


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: 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: 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


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