Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
69 views

I'm trying to use Pyttsx3 to play three messages using text-to-speech. However, it's only playing the first message. How can I play all three? I'm currently using Python 3.11 on VSC #Imports import ...
Wal Phoenix's user avatar
2 votes
1 answer
108 views

I'm trying to create a function dynamically. Here is an example: import ast import textwrap from typing import Any, Callable, List, Union def create_function( func_name: str, arg_types: List[...
Danila Ganchar's user avatar
4 votes
1 answer
94 views

There are two tasks in a task group. One of them raises, the other one should be cancelled. This works fine in Python 3.12+, but freezes in Python 3.11. Older versions did not support task groups. Is ...
VPfB's user avatar
  • 18.1k
0 votes
0 answers
124 views

I am trying to setup Apache-Superset, so that it uses OpenStreetMap instead of MapBox. I am currently using Superset in their local Python Version (not the Docker one), I have modified the config.py ...
Je Je's user avatar
  • 582
0 votes
0 answers
186 views

I’m trying to run Chatterbox TTS on Modal Notebooks. Modal by default uses Python 3.12, but chatterbox requires dependencies (like numpy==1.25.2) that fail to build because distutils was removed in ...
Zulqarnain Jalil's user avatar
1 vote
1 answer
939 views

I was trying to uninstall Python 3.11 from my Windows 11 Pro 24H2 laptop. When I tried from: Windows Settings → Apps or Control Panel → Programs and Features the uninstallation failed multiple times. ...
Shiny's user avatar
  • 41
0 votes
0 answers
43 views

Technical Details The stall occurs in a C function from a shared library that performs numerical calculations for Rayleigh wave phase velocities Using py-spy, I traced the issue to this specific ...
roshan's user avatar
  • 1
0 votes
0 answers
36 views

We have to manage several Python versions for several requirements and we have three different Python versions: 3.8, 3.11 and 3.12. When executing the Waitress server with a specific version, it does ...
Boomerang20thCentury's user avatar
-1 votes
1 answer
184 views

Very simply! I have a function app - function_app.py, trigger.py and init.py in the root Its my first Azure Function App. if i run the two files separately, function_app.py, trigger.py, they both ...
Dave's user avatar
  • 15
1 vote
1 answer
91 views

I have downloaded and installed the macOS 64-bit universal2 installer for Python 3.11.0 - Oct. 24, 2022 from macOS 64-bit universal installer on my Apple M4 Silicon macBook Pro. When I open the ...
sjl26916091's user avatar
1 vote
1 answer
228 views

I was playing around with Path objects and found an interesting behaviour. When testing with python3.11, Path.glob returns a generator object. >>> from pathlib import Path >>> >&...
user459872's user avatar
  • 25.9k
0 votes
1 answer
460 views

How can I run the ASGI and WSGI protocols separately in my Django project? This is my project structure. . ├── chat # <== my app name │ ├── apps.py │ ├── consumers.py │ ├── __init__.py │ ├─...
Partho Debnath's user avatar
3 votes
1 answer
416 views

I have the following code: def from_utf8(string: bytes | str) -> str: if isinstance(string, bytes): return string.decode("utf-8") else: return string # <- type ...
LeGEC's user avatar
  • 53.4k
1 vote
1 answer
59 views

I am having difficulties understanding logic of optimizing multip-rocessing in Python 3.11. Context: I am running on Ubuntu 22.04, x86 12 cores / 32 threads, 128 GB memory Concerns: (Please refer to ...
M B's user avatar
  • 13
0 votes
0 answers
29 views

I'm doing a basic Python Flask application with a Postgres database using psycopg2. I'm having trouble setting up the user registration password hash as it appears I'm working with a string vs byte ...
jazzmasterkc's user avatar
0 votes
0 answers
109 views

I have a script that utilizes picamera on a raspberry pi 5. It's been working great for months, the all of sudden it started throwing errors. Here is the start of the script # Import libraries import ...
Siggi's user avatar
  • 425
0 votes
0 answers
40 views

I did an oopsie and made an infinite loop at the match case in the end: import pyautogui import cv2 import numpy as np import time def find_image(image_path, confidence=0.8): screenshot = ...
Giandalf's user avatar
0 votes
0 answers
89 views

Hi i've got some issues using DeepFace python library in touchdesigner, i've installed python 3.11 and other packages realted like pandas,tensorflow,numpy to make DeepFace work properly on my MacOs ...
ENRICO SCIGLIUTO's user avatar
0 votes
1 answer
40 views

import requests from requests.auth import HTTPBasicAuth username = "" password = "" response = requests.get(url, headers=headers, auth=HTTPBasicAuth(username, passwrd)) Getting ...
Rohit-Pandey's user avatar
  • 2,159
1 vote
2 answers
143 views

I am trying to use Spyder 6 IDE on Ubuntu 24.04. After installation of Spyder 6, I changed the default python interpreter to my virtual environment running Python 3.11 and installed spyder-kernels==3....
katmatzidis's user avatar
0 votes
0 answers
43 views

ExceptionGroups in Python contains tuple of unrelated exceptions. Some of these exceptions can be also exception groups. So the specific exception (not the group one) can be nested in several ...
eNca's user avatar
  • 1,343
0 votes
1 answer
258 views

I'm attempting to deploy a lambda function using python and the boto3 dependencies to interact with a CloudFront key store. I'm getting an error I don't quite understand suggesting I don't have ...
BusinessFawn's user avatar
0 votes
1 answer
169 views

Netmiko version = 4.4.0 Python version = 3.11 I'm using Netmiko to log into a Juniper MX router and I want to get the timestamp of the command along with command output. I log into the Juniper router ...
programmer1010's user avatar
2 votes
1 answer
68 views

I am trying to write a program to time sailing races, and to simplify adding the boats to a race by selecting from a list. I have used a Treeview linked to a tk.StringVar() to filter the boats by ...
Michael's user avatar
  • 23
2 votes
1 answer
155 views

I've set up my flask app to read my config file... app.config.from_file("../CONFIGS/config.py", lambda f: tomllib.load(f.buffer)) f.write(str(app.config)) when I go to see the output some ...
BostonAreaHuman's user avatar
1 vote
1 answer
227 views

I am working on a package that includes a server with the corresponding client. I was thinking that I could save a lot of effort mocking all the interactions and just write some test cases that test ...
Uuruurrgh's user avatar
0 votes
0 answers
76 views

I'm writing a c++ program that use Python library EasyOCR to read some text. I wrote such code: Py_Initialize(); PyRun_SimpleString("import sys"); PyRun_SimpleString("import easyocr&...
Object Unknown's user avatar
-1 votes
2 answers
202 views

I am getting a weird error after upgrading the Django version from 4.0 to 4.2.15. The error being encountered is: RecursionError: maximum recursion depth exceeded while calling a Python object. The ...
user2580's user avatar
  • 204
2 votes
1 answer
168 views

So I have two scripts that use asyncio's servers' for communication, the script's work by the server opening an asyncio server and listening for connections, the client script connecting to that ...
LuckyCoder3607's user avatar
1 vote
1 answer
2k views

There are three vulnerabilities: CVE-2024-45490, CVE-2024-45491 and CVE-2024-45492). It looks, these vulnerabilities get fixed as part of https://github.com/python/cpython/issues/123678 But when I ...
Sumanshu Nankana's user avatar
-1 votes
2 answers
99 views

I am running a Tkinter window on a remote Raspberry Pi with a display. I want to see the Tkinter GUI on the display of RPi. I am connected to the RPI via Putty(SSH, from a Windows PC). RPi has a 64-...
Rekcoj's user avatar
  • 3
0 votes
2 answers
139 views

I have a working logger module built on DBR 10.4/python 3.8 platform that creates the log and periodically export to a blob storage. Recently we've moved to DBR 15.2/python 3.11, and now the logger ...
ArniBandyo's user avatar
1 vote
1 answer
82 views

I'm trying to build a Flatpak of the Amulet Minecraft Map Editor, which runs fine when run directly through Python 3.11.9 (in a VENV) on Linux, Windows and MacOS, but on Linux, the Flatpak version ...
EvilSupahFly's user avatar
1 vote
1 answer
359 views

I'm trying to import and use chromadb to play as a vector store for my RAG application. But it is giving ImportError as it is trying to import pypika packages in the backend which I cannot control ...
Pradiksha Devi's user avatar
-2 votes
1 answer
517 views

I'm trying to automate a task that i enter in a public website, from the brazilian government, and collect some public data from some companies. But when i am entering with selenium in the website i ...
mr robot's user avatar
0 votes
0 answers
397 views

I am currently trying to log using the SMTPHandler class from Python's logging module. The logger is instantiated just fine, but fails when calling _socket.getaddrinfo even though it is being passed ...
dabo_tusev's user avatar
0 votes
1 answer
266 views

I am using the durations options in the pytest commandline to extract information of the top 5 slowest tests. Below is the information that is printed in the console at the end of tests. The test ...
Archie's user avatar
  • 389
1 vote
0 answers
207 views

I am defining a logger and periodically exporting the content to a blob. I've been using it for some time with DBR 10.4/python 3.8 without any issue. However we've moved to DBR 15.2/python 3.11, and ...
ArniBandyo's user avatar
0 votes
0 answers
42 views

Use the following Python code to obtain the monthly total bill for AWS China. After the code is executed, some information is obtained. However, when the obtained data is compared with the final bill ...
Erwin's user avatar
  • 97
3 votes
1 answer
11k views

I've been trying to test out a colony counter code I found on GitHub that could be of use. However, the windows that generates when i run the code aren't the same as the ones that are demonstrated in ...
Luis Cruz's user avatar
0 votes
1 answer
31 views

I have the following code: from sqlalchemy import (create_engine, Column, String, Integer, Float, ForeignKeyConstraint) from sqlalchemy.orm import (DeclarativeBase, relationship) ...
CharcoalG's user avatar
  • 315
0 votes
0 answers
1k views

I recently had my work computer changed due to IT policy and had to reinstall my Python environment. My work computer is Policy controlled so I cannot install Python from the official Python.org ...
soumikbi's user avatar
2 votes
0 answers
325 views

I've been trying to deploy a django web app on AWS AppRunner. I followed an AWS tutorial here which works to deploy an app running on python 3.8.16. I tried to follow the same procedure but use ...
qualityPancakes's user avatar
3 votes
0 answers
96 views

Screenshot of Visual Studio Code terminal As shown in the screenshot, python works just fine in Powershell. I then activate the virtual environment at E:\DrewFTCAPI\ftcapivenv and python is gone. Not ...
Drew Wingfield's user avatar
0 votes
2 answers
307 views

I am fighting with type narrowing of StrEnums To summarize my issue I have some abstract base class from abc import ABC, abstractmethod from enum import StrEnum class Animal(ABC): @staticmethod ...
fqrt's user avatar
  • 23
0 votes
0 answers
236 views

Error Response is this, "message": "Error when deserializing class 'SpatialDropout1D' using config={'name': 'spatial_dropout1d', 'trainable': True, 'dtype': 'float32', 'rate': 0.4, '...
Heli dhimmar's user avatar
0 votes
0 answers
160 views

The following code works differetly between two PC with identical PY version 3.11.9, identical libraries installed and identical source folder files. The aim is to open every single excel file in a ...
Wolowizard's user avatar
2 votes
2 answers
332 views

I am using a sybase ase 15 database. And I have a column of type image (this column stores SQL querys) so I have to convert it to varchar to return the text. The problem is that I can't return more ...
PeByte's user avatar
  • 53
-1 votes
1 answer
65 views

I have been programming a Discord bot, and I added a mute command to it that works perfectly fine. However, anyone that has access to the command can mute anyone they please, even people with the ...
zoomingspeed's user avatar
-1 votes
1 answer
73 views

I'm learning the Python programming language with the book "Self-taught Programmer" and just really starting out. no idea or knowledge previously so I'm currently stuck on working with ...
Anthony Ezenwaka's user avatar

1
2 3 4 5
8