Re: Problem using cx_Freeze

2022-08-15 Thread Dennis Lee Bieber
On Mon, 15 Aug 2022 10:30:41 -0600, David at Booomer declaimed the following: >I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a python >app but running into an error message: > >AttributeError: module 'cx_Freeze' has no attribute ‘BdistDMG’ What operating system?

Re: Problem using cx_Freeze

2022-08-15 Thread David at Booomer
Hi Jim Thanks for your suggestions. I changed from cx_Freeze import * to from cx_Freeze import setup, Executable And no longer get the BdistDMG error — I had found the page https://cx-freeze.readthedocs.io/en/latest/setup_script.html But hadn’t tried the setup, Executable option in the from

Re: Problem using cx_Freeze

2022-08-15 Thread Jim Schwartz
This link covers how to use BDist_dmg. https://cx-freeze.readthedocs.io/en/latest/setup_script.html Sent from my iPhone > On Aug 15, 2022, at 12:11 PM, David at Booomer wrote: > > I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a > python app but running into an error

Re: Exclude 'None' from list comprehension of dicts

2022-08-15 Thread dn
On 16/08/2022 00.56, Antoon Pardon wrote: > Op 5/08/2022 om 07:50 schreef Loris Bennett: >> Antoon Pardon  writes: >> >>> Op 4/08/2022 om 13:51 schreef Loris Bennett: Hi, I am constructing a list of dictionaries via the following list comprehension:     data =

RE: Problem using cx_Freeze

2022-08-15 Thread jschwar
I see a class called BdistDMG in the module called bdist_mac.py. Did you try importing that from cx_freeze? -Original Message- From: Python-list On Behalf Of David at Booomer Sent: Monday, August 15, 2022 11:31 AM To: python-list@python.org Subject: Problem using cx_Freeze I’m trying

Re: Python getting problem of installing pyqt5

2022-08-15 Thread Dennis Lee Bieber
On Sat, 13 Aug 2022 08:32:19 -0700 (PDT), Varad Gore declaimed the following: >Collecting pyqt5 > Using cached PyQt5-5.15.7-cp37-abi3-win_amd64.whl (6.8 MB) Where did this one come from? The "cp37" seems to imply it is a Python 3.7 variant. You also didn't include the command

Re: Python getting problem of installing pyqt5

2022-08-15 Thread Mats Wichmann
On 8/13/22 09:32, Varad Gore wrote: Looks like you have a version mismatch problem. > Collecting pyqt5 > Using cached PyQt5-5.15.7-cp37-abi3-win_amd64.whl (6.8 MB) > Requirement already satisfied: PyQt5-Qt5>=5.15.0 in >

Problem using cx_Freeze

2022-08-15 Thread David at Booomer
I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a python app but running into an error message: AttributeError: module 'cx_Freeze' has no attribute ‘BdistDMG’ I’m using Anaconda and error appears with the import command: from cx_Freeze import * From the terminal the

Re: Persistent Error: Python was not found

2022-08-15 Thread Eryk Sun
On 8/15/22, Dennis Lee Bieber wrote: > > Just double-clicking on the file will run it. The problem is that it > will open a command shell, run, and then close the command shell UNLESS one > explicitly codes some sort of "hold" at the end of the program The console window is a terminal, not

Re: Persistent Error: Python was not found

2022-08-15 Thread Eryk Sun
On 8/15/22, Gisle Vanem via Python-list wrote: > Eryk Sun wrote: > >> If the redirector app >> is run without arguments, it will open the Microsoft Store to install >> the latest version of the Python store app distribution. Currently >> that means Python 3.10. > > That is true with cmd. But with

[Python-announce] Pygments 2.13 released

2022-08-15 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.13. Pygments is a generic syntax highlighter written in Python. Pygments 2.13 provides several new lexers, themes and many improvements to existing lexers. Please have a look at the changelog . Report bugs

Re: Parallel(?) programming with python

2022-08-15 Thread Andreas Croci
I would like to thank everybody who answered my question. The insight was very informative. This seems to be one of the few newsgroups still alive and kicking, with a lot of knowledgeable people taking the time to help others. I like how quick and easy it is to post questions and receive

Re: Persistent Error: Python was not found

2022-08-15 Thread Gisle Vanem via Python-list
Eryk Sun wrote: If the redirector app is run without arguments, it will open the Microsoft Store to install the latest version of the Python store app distribution. Currently that means Python 3.10. That is true with cmd. But with a shell like 4NT, I get: c:\>

Re: Persistent Error: Python was not found

2022-08-15 Thread Dennis Lee Bieber
On Mon, 15 Aug 2022 14:38:25 +1000, Mike Dewhirst declaimed the following: >If you want to execute a python script without first opening a cmd >prompt, you need a bat file or shortcut which contains the command line >you want executed. Give that a double-click and it should also work. >

Re: Exclude 'None' from list comprehension of dicts

2022-08-15 Thread Antoon Pardon
Op 5/08/2022 om 07:50 schreef Loris Bennett: Antoon Pardon writes: Op 4/08/2022 om 13:51 schreef Loris Bennett: Hi, I am constructing a list of dictionaries via the following list comprehension: data = [get_job_efficiency_dict(job_id) for job_id in job_ids] However,

Re: Persistent Error: Python was not found

2022-08-15 Thread Eryk Sun
On 8/15/22, Jonathan Owah wrote: > Thank you so much for your assistance . > > The fault was actually mine: I was running a command > with python3, instead of just python. > python3 works for Mac, but not Windows. If the Python 3.10 store app is installed with all aliases enabled, then "python",

Re: Persistent Error: Python was not found

2022-08-15 Thread Jonathan Owah
Thank you so much for your assistance . The fault was actually mine: I was running a command with python3, instead of just python. python3 works for Mac, but not Windows. I'm fairly new to Python so I was just following along a tutorial, and I didn't take note of the fact that the command didn't

Re: Persistent Error: Python was not found

2022-08-15 Thread Eryk Sun
On 8/13/22, Jonathan Owah wrote: > > I've been trying to configure my laptop to run python scripts. > This is the error I keep getting: > Python was not found; run without arguments to install from the Microsoft > Store, or disable this shortcut from Settings > Manage App Execution > Aliases. If

Re: Persistent Error: Python was not found

2022-08-15 Thread Barry
> On 15 Aug 2022, at 04:10, Jonathan Owah wrote: > > Good day, > Great job on making Python easily accessible. Try using the python launcher py.exe. It is documented here https://docs.python.org/3/using/windows.html#python-launcher-for-windows That page documents lots of other things that