Christoph Gohlke and compiled packages

2023-04-10 Thread Mike Dewhirst
It seems Christoph Gohlke has been cut adrift and his extremely valuable 
web page ...


https://www.lfd.uci.edu/~gohlke/pythonlibs/

... turned into an archive getting staler by the day.

What does the Python Software Foundation and the community think about this?

Cheers

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


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Cameron Simpson

On 10Apr2023 13:10, Chris Green  wrote:

command:
ffprobe -v warning -i "input.mp4" -show_streams -of json
python:
Popen(command, stderr=STDOUT, stdout=PIPE, encoding='utf8')
json:
json.loads(''.join(p.stdout.readlines()))

It's easy to find a version of ffmpeg/ffprobe for every platform.


Thank you, that worked straight away, ffprobe is installed on my
systems already and I can probably just grep for the tag I want as all
I'm looking for is the date of its creation which appears (twice) with
the tag "creation_time".

This is just to handle the occasional MP4 that a python program which
basically manages JPEGs can't handle.  It throws an exception so I can
just get that to run a simple bash script to get the creation date.


Yes, ffprobe is great, particularly the JSON output mode, very parsable.

If you want to get into the knitty gritty you could try my `cs.iso14496` 
package, which has a full MP4/MOV parser and a hook for getting the 
metadata.


Not as convenient as ffprobe, but if you care about the innards...

Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin

On 4/10/2023 2:19 AM, Yogesh Tirthkar wrote:

Hello,

Thank you for your response.

May I know how to uninstall it from user A profile – if user A is no longer 
available.

Is there any means - where I can use local admin account to uninstall the app 
(installed in User A profile, without user A’s intervention)


If user A is no longer available, then an administrator can change the 
password for User A and then, logged into the A account, perform the 
un-install.




From: Sravan Kumar Chitikesi 
Sent: Monday, April 10, 2023 2:17 PM
To: Yogesh Tirthkar 
Cc: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[cid:image001.png@01D96BB7.7B62F3D0]

If Python was installed by user A in their own profile folder, it is likely 
that it was installed just for that user. In this case, you may need to log in 
as user A to uninstall Python from their profile. Have you tried logging in as 
user A and uninstalling Python from there?

Regards,
Sravan Chitikesi
AWS Solutions Architect - Associate


On Tue, Mar 28, 2023 at 11:30 AM Yogesh Tirthkar 
mailto:yogeshtirthkar-ven...@gic.com.sg>> 
wrote:
Hi Team,

Could you please advise on the scenario in windows 10 machine : Where we need 
to uninstall/remove python from user profile A (installed by user A in its own 
profile folder) - via an admin user or system account.

Currently when we try to uninstall it via admin/system account - it displays 
that the python product is not installed for this user (admin/system).



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


Re: Need help please

2023-04-10 Thread Thomas Passin

On 4/10/2023 9:59 AM, Jack Gilbert wrote:

I D/L 3.11.3, I can see it in CMD

running W10 64bit

I have IDL on my desktop,

HOW do I get 3.11.3 on my desktop?


If you mean "How can I create a shortcut to Python 3.11.3 on my desktop 
that opens an interactive Python session", here is one way:


1. Find where your Python 3.11.3 program has been installed.  On the 
command line in a console, type:


py -c "import sys; print(sys.executable)"

You will get a response like this:

C:\Users\tom\AppData\Local\Programs\Python\Python311\python.exe

NOTE:  If the "py" command is not on your computer or does not open 
Python 3.11, then open a python 3.11 session and type the same commands:


import sys
print(sys.executable)

2. Open the Windows file browser ("Windows Explorer") and navigate to 
that directory.  On my computer this is


C:\Users\tom\AppData\Local\Programs\Python\Python311

3. Press and hold both the CTRL and SHIFT keys down at the same time, 
and with the mouse drag the icon for "python.exe" to a blank space on 
the desktop.  This will not drag the program itself but will create a 
shortcut and drag that.


4. Test the new shortcut by double-clicking on it and seeing that a new 
console window opens with the Python interpreter running in it.


If you do not like the size, shape, or font of this new console, change 
them by clicking on the icon in the upper left, then selecting 
"Properties", and making changes in the dialog box that opens.  The new 
choices will be used whenever you use this shortcut again.


5. The new shortcut will probably be named "python.ex".  I suggest that 
you rename it to "Python 3.11".  This way you can create other python 
shortcuts without having their names conflict.

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


Re: Need help please

2023-04-10 Thread Sravan Kumar Chitikesi
use where cmd to find out the path of the binary and create a shortcut to
that file on desktop

Regards,
*Sravan Chitikesi*
AWS Solutions Architect - Associate


On Mon, Apr 10, 2023 at 10:03 AM Jack Gilbert <00jhen...@gmail.com> wrote:

> I D/L 3.11.3, I can see it in CMD
>
> running W10 64bit
>
> I have IDL on my desktop,
>
> HOW do I get 3.11.3 on my desktop?
>
> Thanks
>
> Jack g
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[Python-announce] Pyparsing 3.1.0b1 released

2023-04-10 Thread Paul McGuire
I just pushed release 3.1.0b1 of pyparsing. 3.1.0 will include support for 
python 3.12, and will be the last release to support 3.6 and 3.7.

If your project uses pyparsing, *please* download this beta release (using "pip 
install -U pyparsing==3.1.0b1") and open any compatibility issues you might 
have at the pyparsing GitHub repo (https://github.com/pyparsing/pyparsing).

You can view the changes here: 
https://github.com/pyparsing/pyparsing/blob/master/CHANGES
___
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


Need help please

2023-04-10 Thread Jack Gilbert
I D/L 3.11.3, I can see it in CMD

running W10 64bit

I have IDL on my desktop,

HOW do I get 3.11.3 on my desktop?

Thanks

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


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak  wrote:
> Chris Green ha scritto:
> > jak  wrote:
> >> rbowman ha scritto:
> >>> On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:
> >>>
>  I'm looking for a Python (3) library to access (read only at present)
>  the metadata in MP4 video files, in particular I want to get at dates
>  and times.
> 
>  What's available to do this?  Ideally something available in the Ubuntu
>  repositories but I can install with PIP if necessary.
> >>>
> >>> https://mutagen.readthedocs.io/en/latest/
> >>>
> >>
> >> I thought it only dealt about audio.
> > 
> > That's why I hadn't thought it would help me as I'm after getting
> > metadata from an MP4 video file but I guess the metadata format may be
> > the same regardless of whether it's video or audio.
> > 
> 
> Easiest way I found was run ffprobe command via popen. It can output the
> information you need in json format which is easily readable with the
> json library.
> 
> command:
> ffprobe -v warning -i "input.mp4" -show_streams -of json
> python:
> Popen(command, stderr=STDOUT, stdout=PIPE, encoding='utf8')
> json:
> json.loads(''.join(p.stdout.readlines()))
> 
> It's easy to find a version of ffmpeg/ffprobe for every platform.

Thank you, that worked straight away, ffprobe is installed on my
systems already and I can probably just grep for the tag I want as all
I'm looking for is the date of its creation which appears (twice) with
the tag "creation_time". 

This is just to handle the occasional MP4 that a python program which
basically manages JPEGs can't handle.  It throws an exception so I can
just get that to run a simple bash script to get the creation date.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Sravan Kumar Chitikesi
If Python was installed by user A in their own profile folder, it is likely
that it was installed just for that user. In this case, you may need to log
in as user A to uninstall Python from their profile. Have you tried logging
in as user A and uninstalling Python from there?

Regards,
*Sravan Chitikesi*
AWS Solutions Architect - Associate


On Tue, Mar 28, 2023 at 11:30 AM Yogesh Tirthkar <
yogeshtirthkar-ven...@gic.com.sg> wrote:

> Hi Team,
>
> Could you please advise on the scenario in windows 10 machine : Where we
> need to uninstall/remove python from user profile A (installed by user A in
> its own profile folder) - via an admin user or system account.
>
> Currently when we try to uninstall it via admin/system account - it
> displays that the python product is not installed for this user
> (admin/system).
>
> Appreciate your assistance.
>
>
> Regards,
> Yogesh.
>
> _
> Technology Group | GIC Private Limited | 168 Robinson Road, #37-01,
> Capital Tower, Singapore 068912
>
>
> This email from GIC may contain confidential information. Unauthorised
> communication and disclosure of any information in this email is
> prohibited. If you are not the intended recipient, please notify the sender
> and delete this email immediately.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 20:19:37 +0100, Chris Green wrote:

> That's why I hadn't thought it would help me as I'm after getting
> metadata from an MP4 video file but I guess the metadata format may be
> the same regardless of whether it's video or audio.

If yuo chase back through the various ISOs you tend to wind up at Apple's 
QuickTime container format as the parent. The compression methods for the 
media etc will differ but at least the structure of the file is 
documented.  It's tedious but you can walk through the atoms (chunks, 
blocks, boxes)  and find the metadata.

There is the disclaimer

https://mutagen.readthedocs.io/en/latest/user/mp4.html

so it may not work for your intended purposes, particularly for modifying 
the data. That gets tricky since it may change the size of the chunk. 

https://pypi.org/project/tinytag/

is another one but it's only for reading the metadata.

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


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak

rbowman ha scritto:

On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:


I'm looking for a Python (3) library to access (read only at present)
the metadata in MP4 video files, in particular I want to get at dates
and times.

What's available to do this?  Ideally something available in the Ubuntu
repositories but I can install with PIP if necessary.


https://mutagen.readthedocs.io/en/latest/



I thought it only dealt about audio.
--
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread jak

Chris Green ha scritto:

jak  wrote:

rbowman ha scritto:

On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:


I'm looking for a Python (3) library to access (read only at present)
the metadata in MP4 video files, in particular I want to get at dates
and times.

What's available to do this?  Ideally something available in the Ubuntu
repositories but I can install with PIP if necessary.


https://mutagen.readthedocs.io/en/latest/



I thought it only dealt about audio.


That's why I hadn't thought it would help me as I'm after getting
metadata from an MP4 video file but I guess the metadata format may be
the same regardless of whether it's video or audio.



Easiest way I found was run ffprobe command via popen. It can output the
information you need in json format which is easily readable with the
json library.

command:
ffprobe -v warning -i "input.mp4" -show_streams -of json
python:
Popen(command, stderr=STDOUT, stdout=PIPE, encoding='utf8')
json:
json.loads(''.join(p.stdout.readlines()))

It's easy to find a version of ffmpeg/ffprobe for every platform.
--
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
rbowman  wrote:
> On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:
> 
> > I'm looking for a Python (3) library to access (read only at present)
> > the metadata in MP4 video files, in particular I want to get at dates
> > and times.
> > 
> > What's available to do this?  Ideally something available in the Ubuntu
> > repositories but I can install with PIP if necessary.
> 
> https://mutagen.readthedocs.io/en/latest/
> 
Oh, OK, thanks. I already have mutagen installed on my systems
because I use QuodLibet.  I hadn't realised it would let me look at
MP4 video files but I guess it should.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
jak  wrote:
> rbowman ha scritto:
> > On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:
> > 
> >> I'm looking for a Python (3) library to access (read only at present)
> >> the metadata in MP4 video files, in particular I want to get at dates
> >> and times.
> >>
> >> What's available to do this?  Ideally something available in the Ubuntu
> >> repositories but I can install with PIP if necessary.
> > 
> > https://mutagen.readthedocs.io/en/latest/
> > 
> 
> I thought it only dealt about audio.

That's why I hadn't thought it would help me as I'm after getting
metadata from an MP4 video file but I guess the metadata format may be
the same regardless of whether it's video or audio.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Looking for package/library to extract MP4 metadata

2023-04-10 Thread Chris Green
I'm looking for a Python (3) library to access (read only at present)
the metadata in MP4 video files, in particular I want to get at dates
and times.

What's available to do this?  Ideally something available in the
Ubuntu repositories but I can install with PIP if necessary.

-- 
Chris Green
·
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for package/library to extract MP4 metadata

2023-04-10 Thread rbowman
On Sun, 9 Apr 2023 09:40:51 +0100, Chris Green wrote:

> I'm looking for a Python (3) library to access (read only at present)
> the metadata in MP4 video files, in particular I want to get at dates
> and times.
> 
> What's available to do this?  Ideally something available in the Ubuntu
> repositories but I can install with PIP if necessary.

https://mutagen.readthedocs.io/en/latest/

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


[Python-announce] Pygments 2.15 released

2023-04-10 Thread Matthäus G . Chajdas

I'm happy to announce the release of Pygments 2.15. Pygments is a
generic syntax highlighter written in Python.

Pygments 2.15 provides half a dozen new lexers and many improvements to 
existing lexers, as well as official support for Python 3.11. Please 
have a look at the changelog .


Report bugs and feature requests in the issue tracker:
. Thanks go to all the
contributors of these lexers, and to all those who reported bugs and
waited patiently for this release.

Download it from , or look at
the demonstration at .

Enjoy,
  Matthäus
___
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


RE: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Yogesh Tirthkar
Hello,

Thank you for your response.

May I know how to uninstall it from user A profile – if user A is no longer 
available.

Is there any means - where I can use local admin account to uninstall the app 
(installed in User A profile, without user A’s intervention)

Regards,
Yogesh.

From: Sravan Kumar Chitikesi 
Sent: Monday, April 10, 2023 2:17 PM
To: Yogesh Tirthkar 
Cc: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[cid:image001.png@01D96BB7.7B62F3D0]

If Python was installed by user A in their own profile folder, it is likely 
that it was installed just for that user. In this case, you may need to log in 
as user A to uninstall Python from their profile. Have you tried logging in as 
user A and uninstalling Python from there?

Regards,
Sravan Chitikesi
AWS Solutions Architect - Associate


On Tue, Mar 28, 2023 at 11:30 AM Yogesh Tirthkar 
mailto:yogeshtirthkar-ven...@gic.com.sg>> 
wrote:
Hi Team,

Could you please advise on the scenario in windows 10 machine : Where we need 
to uninstall/remove python from user profile A (installed by user A in its own 
profile folder) - via an admin user or system account.

Currently when we try to uninstall it via admin/system account - it displays 
that the python product is not installed for this user (admin/system).

Appreciate your assistance.


Regards,
Yogesh.
_
Technology Group | GIC Private Limited | 168 Robinson Road, #37-01, Capital 
Tower, Singapore 068912


This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.
--
https://mail.python.org/mailman/listinfo/python-list

This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [Request for Assistance] To uninstall python installed in other user profile (Win 10)

2023-04-10 Thread Thomas Passin

On 4/9/2023 10:14 PM, Yogesh Tirthkar wrote:

Hi,

Is there any way I can uninstall python installed (as user) in someone else' 
account - without login as that user, but login as local admin ?


It depends on whether you can use that user's password. With the 
password, it's very feasible.  Without it, some people seem to have 
found ways.  There some discussion of this here -


https://serverfault.com/questions/773038/run-as-a-different-user-without-a-password-from-an-elevated-prompt-in-windows


Technology Group | GIC Private Limited | 168 Robinson Road, #37-01, Capital 
Tower, Singapore 068912

-Original Message-
From: Python-list 
 On Behalf Of 
Thomas Passin
Sent: Wednesday, March 29, 2023 12:19 AM
To: python-list@python.org
Subject: Re: [Request for Assistance] To uninstall python installed in other 
user profile (Win 10)

[[External Mail] Do not click on links or attachment from unknown senders.]


On 3/28/2023 12:56 AM, Yogesh Tirthkar wrote:

Hi Team,

Could you please advise on the scenario in windows 10 machine : Where we need 
to uninstall/remove python from user profile A (installed by user A in its own 
profile folder) - via an admin user or system account.

Currently when we try to uninstall it via admin/system account - it displays 
that the python product is not installed for this user (admin/system).

Appreciate your assistance.


It depends on where the Python installation is located, but I would just delete 
the entire folder tree at %APPDATA%\Python\Python3xxx.

If Python was installed for all users, its main set of files will probably be in "c:\Program 
Files" and Window's "Add or Remove" page should remove it.

If it was installed just for User A, then the "Add or Remove" page will find it if run 
from User A's account.  If for some reason User A will not or cannot cooperate, the admin could 
change User A's password and then run "Add or Remove".  Of course the admin would not be 
able to change the pw back, but if User A is not cooperating maybe that wouldn't matter.

--
https://mail.python.org/mailman/listinfo/python-list
This email from GIC may contain confidential information. Unauthorised 
communication and disclosure of any information in this email is prohibited. If 
you are not the intended recipient, please notify the sender and delete this 
email immediately.



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