Questions tagged [python-3.12]
A version of the Python programming language, first released on October 2, 2023. This tag is for issues that are specific to Python 3.12. Please use the [tag:python] tag for general Python related questions.
python-3.12
144
questions
0
votes
0
answers
13
views
Python : win32print - data does not leave the print queue
Below is a small code in Python where I am trying to send a text to a specific printer and the printout is stuck in the printer queue.
Can anyone tell me if there is anything else I need to add to the ...
0
votes
0
answers
38
views
Why print(f"{variable = }") in Python 3.12 also prints numpy type?
I noticed, that with Python 3.12 and a numpy.float64 when I simply do a
x = numpy.sqrt(3) # type is <class 'numpy.float64'> now
print(f"{x = }")
# this is printed
>>>x = np....
-3
votes
1
answer
41
views
The name "Maj Kmetic" has an emtpy first name when using the nameparser library in python
I already made an issue about this on the nameparser github page but it looked kind of "Inactive", so I wanted to try and ask this question here.
When I parse the name "Maj Kmetic"...
0
votes
0
answers
117
views
PyTube raises an exception when I access streams
(I'm on macos and I use python3.12)
I was just starting to try Pytube but got error when I tried to access streams:
Traceback (most recent call last):
File "/Volumes/Programmation/Python/...
3
votes
0
answers
56
views
AsyncIO CPython hangs with 100% CPU usage
Our Python application is hanging on these 2 particular machines after 10-20 minutes of use. Htop shows 100% CPU usage. I used Pystack to get the stack trace of the running process. The Python side of ...
-1
votes
0
answers
29
views
object repr : TypeError("a bytes-like object is required, not 'str'")
I'm on python3.12. While I run this tool: https://github.com/Lucifer1993/AngelSword
I get the following error.
How can I fix this error:
pegasus@pegasus:~/Documents/AngelSword$ python3 AngelSword.py
/...
-2
votes
1
answer
26
views
Command' object has no attribute 'Context' in discord.py
I am creating a bot in discord.py, following a tutorial (here)
My code is working fine until here with commands description that look like this :
`
@bot.command()
async def commands(ctx : commands....
-1
votes
1
answer
36
views
Python: Adding a command button named "Plot scores" to the user interface that displays a line plot of the student's test scores
I'm creating a program that takes a student's information and test scores and generates a GUI that calculates their mean, median, mode, and standard deviation. It also requires there to be a Plot ...
0
votes
0
answers
65
views
Access to "ConsoleHost_history.txt" denied on Windows PowerShell
I am trying to run a file on python but the following error message is getting rendered:
Error reading or writing history file
'C:\Users\ibrah\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\...
2
votes
1
answer
46
views
Why does x[::-1] not reverse a grouped pandas dataframe column in Python 3.12.3?
I have a large pandas DataFrame (160k records, 60 columns of mostly text) but for this example, I have the following DataFrame:
df1 = pd.DataFrame([{"GROUP": "A", "COL2": ...
0
votes
0
answers
40
views
Macos M2 mysqlclient Symbol not found: _mysql_affected_rows ERROR
I am facing a problem when using Python 3.12 with MySQL client on an M2 chip. The issue is due to the *ARM architecture not being compatible. Is there a solution to this?
Error:
ImportError: dlopen(/...
0
votes
0
answers
40
views
paste pdf image with correct width and height and position to svg file in python using fitz
`i am trying to convert pdf file to svg with correct formating
i am using the fitz pymupdf library
the text is formatted correctly but i cant adjust the image
"this is my first time working with ...
0
votes
0
answers
67
views
pybind11 cannot import simplest module
I just started with pybind11 and I wanted to try the minimal example they provide on their page.
#include <pybind11/pybind11.h>
int add(int i, int j) {
return i + j;
}
PYBIND11_MODULE(...
-3
votes
1
answer
113
views
Installing pygame with Poetry and Python 3.12
I tried to install pygame with Python 3.12 and using Poetry to manage dependencies:
The dependencies list in the pyproject.toml file:
[tool.poetry.dependencies]
python = "^3.12"
pygame = &...
2
votes
1
answer
154
views
Why can't I ignore this "datetime.datetime.utcnow()" DeprecationWarning?
I can't seem to suppress this deprecation warning. Normally in unit tests I force warnings to errors, and then ignore them if unfixable in current stack. I'm currently using Python 3.12.1
Here is ...