Re: Help! I broke python 3.9 installation on macOS

2020-10-09 Thread Elliott Roper
On 9 Oct 2020 at 02:29:05 BST, "Richard Damon" 
wrote:

> On 10/8/20 7:31 PM, Elliott Roper wrote:
>>  First problem: I can no longer say
>>  Obfuscated@MyMac ~ % python3 pip -m list
> 
> isn't that supposed to be python3 -m pip list

Oh! (insert embarrassed grin here)

Thank you, and Chris.

-- 
To de-mung my e-mail address:- fsnospam$elliott$$
PGP Fingerprint: 1A96 3CF7 637F 896B C810  E199 7E5C A9E4 8E59 E248


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


Re: Help! I broke python 3.9 installation on macOS

2020-10-09 Thread Chris Angelico
On Fri, Oct 9, 2020 at 9:11 PM Elliott Roper  wrote:
>
> On 9 Oct 2020 at 02:29:05 BST, "Richard Damon" 
> wrote:
>
> > On 10/8/20 7:31 PM, Elliott Roper wrote:
> >>  First problem: I can no longer say
> >>  Obfuscated@MyMac ~ % python3 pip -m list
> >
> > isn't that supposed to be python3 -m pip list
>
> Oh! (insert embarrassed grin here)
>
> Thank you, and Chris.
>

It's no shame to fail to spot things... we've all done it. Many times.
It's great to know that the solution was easy :)

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


Which Version Of Python Is Best To Install Now..

2020-10-09 Thread Muhammad Saad
    

    

   Sent from [1]Mail for Windows 10

   I Want To Reinstall Python Now Which Version I Install Now

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
-- 
https://mail.python.org/mailman/listinfo/python-list


Fwd: Python 3..9.0

2020-10-09 Thread Joe via Python-list

Hi,
I just downloaded the above for Windows but am unable to get it to run.  I have 
gone to the directory and double-clicked the "python.exe" file but that just 
brings me to the command prompt.
Any suggestions as to what I am doing wrong?
Thank you.
Joe
-- 
https://mail.python.org/mailman/listinfo/python-list


Crashing and opening problems

2020-10-09 Thread Jamie
   I’ve downloaded python and when I try to launch a application to use with
   python it opens then closes fast but when I double click it it opens the
   installer and not python, so I have to use “Open with”

    

    

   Sent from [1]Mail for Windows 10

    

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Crashing and opening problems

2020-10-09 Thread Mats Wichmann
On 10/9/20 4:23 AM, Jamie wrote:
>I’ve downloaded python and when I try to launch a application to use with
>python it opens then closes fast but when I double click it it opens the
>installer and not python, so I have to use “Open with”

The window opened on behalf of the program is no longer needed once the
program is done, so it closes once Python has exited.  That's the normal
behavior.  You can launch programs from a command shell (cmd or
powershell) and you'll see them running to completion without the shell
window closing.

"When I double click it" - double click what?  If the download saved the
installer to your desktop and that's what you're double-clicking, then
indeed, you're going to get the installer again.  You don't need the
installer any more, so you can get rid of it if it will reduce confusion.
Try launching it by finding it in the start menu - that should give you
the chance to launch a Python interactive shell, or IDLE, the included
IDE program.  Or start typing Python into the search/Cortana box, that
should give you another way to launch the actual interpreter.


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


Re: Which Version Of Python Is Best To Install Now..

2020-10-09 Thread Mats Wichmann
On 10/9/20 1:02 AM, Muhammad Saad wrote:
> 
> 
> 
> 
>Sent from [1]Mail for Windows 10
> 
>I Want To Reinstall Python Now Which Version I Install Now
> 
> References
> 
>Visible links
>1. https://go.microsoft.com/fwlink/?LinkId=550986
> 

The latest, 3.9, is as always considered the "best available" version.
But there is no need to upgrade immediately.  If you use lots of
installed modules you should check if they have "caught up" - if there
is actually a 3.9 version available.  Popular things like numpy have not
yet been released for 3.9.  If you do use such packages, you can go to
pypi.org and search for the modules you care about - click on Download
Files and if there are lots of what look like version/operating
system-encoded names like *-cp37-win_amd64.whl, *-cp38-win_amd64.whl,
etc. then make sure there are ones with 39 if you want to install 3.9.
If not, you'll want to stay with 3.8 for a while.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Issues installing python

2020-10-09 Thread Mats Wichmann
On 10/8/20 9:36 PM, Vedant Nichal wrote:
> Hello,
>
> I am an amateur python developer but I’m facing a lot of issues regarding
> python installation on windows 10...whenever I install python on my
> pc...irrespective of its version my scripts folder is always empty..

are you sure you're actually looking in the right place?  Python Windows
versions do all come with pip now.

Can you launch Python itself?

e.g. from a command shell:

py

(that assumes you installed the Python Launcher, which is a good idea if
you used the Windows installer from python.org).

If that works, then try:

py -m pip --version

if you get something comprehensible back, then you have pip installed
fine.  Invoke it that way, as "py -m pip" instead of using it as a
standalone command.
-- 
https://mail.python.org/mailman/listinfo/python-list


Reply: Re: Issues installing python

2020-10-09 Thread nichalvedant07
No when. I do anything of that sort it says that pip isn't recognised as an 
internal or external command and that's because it isn't installedI 
searched the internet and it asked me to check the scripts folder to see if I 
have pip and it wasn't there...and im pretty sure. That I checked in the 
correct folder...so after that I installed pip from pypi.org but after that 
when I ran pip I got an error saying
OS ERROR (ERRNO9): Bad file descriptor
Pls help me


Sent from vivo smartphone
> On 10/8/20 9:36 PM, Vedant Nichal wrote:
> > Hello,
> >
> > I am an amateur python developer but I’m facing a lot of issues regarding
> > python installation on windows 10...whenever I install python on my
> > pc...irrespective of its version my scripts folder is always empty..
>
> are you sure you're actually looking in the right place?  Python Windows
> versions do all come with pip now.
>
> Can you launch Python itself?
>
> e.g. from a command shell:
>
> py
>
> (that assumes you installed the Python Launcher, which is a good idea if
> you used the Windows installer from python.org).
>
> If that works, then try:
>
> py -m pip --version
>
> if you get something comprehensible back, then you have pip installed
> fine.  Invoke it that way, as "py -m pip" instead of using it as a
> standalone command.
> -- 
> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: Python 3..9.0

2020-10-09 Thread Sibylle Koczian

Am 08.10.2020 um 18:58 schrieb Joe via Python-list:


Hi,
I just downloaded the above for Windows but am unable to get it to run.  I have gone to 
the directory and double-clicked the "python.exe" file but that just brings me 
to the command prompt.
Any suggestions as to what I am doing wrong?
Thank you.
Joe



How does this command prompt look?

Like this, only with "Python 3.9.0", another date etc.?

Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

That would be exactly right: you have opened the interactive interpreter
where you can try out things - evaluate expressions, write short
functions and call them etc. At this point the official tutorial will
help further.

Or like this (other version number, other starting directory)?

Microsoft Windows [Version 10.0.19041.508]
(c) 2020 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Sibylle>

In that case something is really wrong: this would be the usual Windows
command prompt, nothing to do with Python.

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


Re: Embedding version in command-line program

2020-10-09 Thread Heinrich Kruger
‐‐‐ Original Message ‐‐‐
On Thursday, October 8, 2020 2:00 PM, Loris Bennett 
 wrote:

> Marco Sulla marco.sulla.pyt...@gmail.com writes:
>
> > On Wed, 7 Oct 2020 at 14:16, Loris Bennett loris.benn...@fu-berlin.de
> > wrote:
> >
> > > But the toml file isn't part of the distribution and so it won't be
> > > installed.
> > > I suppose I could write a separate program which parses the toml file
> > > and then just injects the version into init.py.
> >
> > Yes, I do not know poetry, but I suppose you can generate it in its
> > setup. I usually create a separate VERSION file and I read it in
> > init.py. Other people creates a version.py that is evaled inside
> > init.py
>
> I ended up using the module
>
> poetry_version
>
> which allows one to extract the version like this:
>
> import poetry_version
>
> version = poetry_version.extract(source_file=file)
>

It looks to me like that package also just reads the pyproject.toml file.

You could try using the "importlib.metadata" module 
(https://docs.python.org/3.8/library/importlib.metadata.html). If you're still 
using python 3.7 (or older) you can install importlib-metadata from PyPI 
(https://pypi.org/project/importlib-metadata/).

Try putting something like

```
from importlib import metadata

__version__ = metadata.version(__name__)
```
in your __init__.py file.

Then you can do something like:
```
from . import __version__

def main():
print(f"Version: {__version__}")
```

Bear in mind that this would only work if your package is installed (e.g. in  
virtual environment). Otherwise the `metadata.version(__name__)` call will fail 
with a `importlib.metadata.PackageNotFoundError` exception (of course you could 
catch that and fall back to trying to read the pyproject.toml file).

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


find command from command list by Python and natural language processing

2020-10-09 Thread reza
I want to build a speech recognition system so that when I give an instruction 
it can execute the command I want. I came and said the voice through the 
microphone and gave it to a model (speech to text ) to return the text. Now I 
want to know which command this text belongs to among the different commands.

for example : The command I said through the microphone: Shut down the system 
the system Shut down Shut down

Or another command Turn on the system

My command list:

command_list = ["open" ,"shut down " , "close " , "turn of " ,]

Can you tell me what code to write in Python and natural language processing?
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Python 3..9.0

2020-10-09 Thread Schachner, Joseph
You're not doing anything wrong, but clearly it's not what you want to do.  You 
are running the Python interpreter and not specifying any script to run, so it 
opens a command prompt and promptly closes it, I'll bet.  

What you want to do is open a development environment.  Try Idle, it's there in 
your Python installation.  Or download PyScripter, or Jetbrains' PyCharm, or 
Wing  (see recent new version announcement).   

--- Joseph S.

-Original Message-
From: jjall...@aol.com  
Sent: Thursday, October 8, 2020 12:59 PM
To: python-list@python.org
Subject: Fwd: Python 3..9.0


Hi,
I just downloaded the above for Windows but am unable to get it to run.  I have 
gone to the directory and double-clicked the "python.exe" file but that just 
brings me to the command prompt.
Any suggestions as to what I am doing wrong?
Thank you.
Joe
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: file to bits text and text containing bits to file

2020-10-09 Thread dn via Python-list

On 09/10/2020 19:27, Harshit Sharma wrote:

I want to read bits data of all file of any extention in 0s and 1s. And also 
want to do back means means construct file from bits text data how to do that 
tell with proof please. I am on a work of something like new sloot method but 
here I stuck.help everything else is done.


Which (Python) tool(s) are you currently using?
What (Python) research have you done?
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list