397 questions
2
votes
1
answer
101
views
Type checker highlights 'Unexpected argument' for dynamically generated function
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[...
0
votes
0
answers
103
views
Using OpenStreetMap on Superset
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 ...
1
vote
1
answer
788
views
Unable to uninstall Python 3.11 on Windows 11 – Error when uninstalling from Settings/Control Panel. Gets 'D:\Config.Msi\e9e4050.rbf'. Error: 5
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.
...
0
votes
0
answers
36
views
Waitress does not run when trying to execute explicitly with a specific Python version
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 ...
1
vote
1
answer
90
views
Why can I not get Python 3.11.0 to report the expected machine architecture after installing from python.org
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 ...
0
votes
1
answer
438
views
Django WSGI and ASGI
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
│ ├─...
1
vote
1
answer
59
views
Performance and Memory duplication when using multiprocessing with a multiple arguments function in Python?
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 ...
0
votes
0
answers
107
views
Sudden Picamera2 import failure
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 ...
0
votes
0
answers
89
views
Issues running DeepFace python library in Touchdesigner
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 ...
1
vote
2
answers
142
views
ModuleNotFoundError: No module named '_sqlite3' after installing spyder-kernels 3 for Spyder 6.0 IPython console
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....
0
votes
1
answer
257
views
AWS Lambda Execution Failing with AWS Common Runtime Error [duplicate]
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 ...
2
votes
1
answer
68
views
Python Tkinter Notebook gets resized when I pack a ttk.Treeview on the second tab
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 ...
1
vote
1
answer
224
views
Correctly tear down process when using pytest with multiprocessing
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 ...
-1
votes
2
answers
202
views
Django ModelDiffMixin: Maximum recursion depth exceeded
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 ...
1
vote
1
answer
2k
views
Libexpat Vulnerabilities exists in python:3.11-slim Docker Image
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 ...
0
votes
2
answers
135
views
Python 3.11 os can't read log files
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 ...
1
vote
1
answer
354
views
ImportError: cannot import name 'ClickHouseQuery' from 'pypika.dialects' while using chroma client
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 ...
0
votes
0
answers
393
views
How can I fix a 'socket.gaierror: [Errno 11001] getaddrinfo failed' when trying to use an SMTPHandler in Python 'logging'?
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 ...
1
vote
0
answers
207
views
log files are vanishing from the working directory when trying to read and export them in Python 3.11
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 ...
3
votes
1
answer
11k
views
Can't fix "ModuleNotFoundError: No module named 'setuptools.extern.six'"
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 ...
0
votes
0
answers
1k
views
Getting error importing numpy dependency when importing pandas in Python 3.11
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 ...
3
votes
0
answers
94
views
Activating virtual environment makes python disappear?
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 ...
0
votes
0
answers
236
views
"Error when deserializing class 'SpatialDropout1D' using config:
Error Response is this,
"message": "Error when deserializing class 'SpatialDropout1D' using config={'name': 'spatial_dropout1d', 'trainable': True, 'dtype': 'float32', 'rate': 0.4, '...
2
votes
2
answers
323
views
Return a column with more than 16384 bytes
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 ...
-1
votes
1
answer
73
views
My Python program outputs vertically unexpectedly
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 ...