Skip to main content
1 vote
1 answer
61 views

Matplotlib requires dateutil

I installed matplotlib, tried to run the program, and get an error: Traceback (most recent call last): File "C:\Users\kystepa2\Desktop\NEXTSY_PROJECT\TEST\mtsa\plot_metrics_mtsa.py", line ...
Konstantin Stepanov's user avatar
1 vote
1 answer
132 views

Unable to make S4u2self and s4u2proxy with keberos constrained delegation

purpose: to ensure the correct operation of the proxy server. At the same time, I use the JWT token to authenticate incoming requests. It works correctly. Next, I need to proxy the request by changing ...
Dmitriy's user avatar
  • 29
0 votes
0 answers
56 views

GSTR1 Excel Template Processing - Warning Dialog Issue

We process government tax report templates using Python + openpyxl. Recently, the template provider released v2.1 with new sheets. Our code works fine, but generated files now show Excel's recovery ...
rishav arora's user avatar
0 votes
1 answer
109 views

Explicitly declared protocol on child fails with "Protocols cannot be instantiated"

Please help me understand why this code fails. from typing import Protocol class Base: pass class MyProto(Protocol): def hello(self) -> None: pass class Child(Base, MyProto): ...
Noam-N's user avatar
  • 1,004
1 vote
2 answers
597 views

Im using polars library, but I'm getting 'NameError: name 'PyLazyFrame' is not defined using polars'. Im' using python 3.9 and polars 1.21.0

Im trying to get data from a parquet file using SQL syntax. The code: import polars as pl # Ensure the variables are defined parquet_file = r'C:\Users\Kperez\Documents\md_curated_20250115.parquet' ...
qarly_blue's user avatar
0 votes
1 answer
271 views

How to consume data from a Kinesis stream on a different AWS account?

I'm starting to use PyFlink and I'm having trouble answering the question of whether I can get PyFlink 1.19 to fetch data from a Kinesis stream located in another AWS account. I looked at the general ...
Andy's user avatar
  • 63
2 votes
2 answers
99 views

Is there a more elegant rewrite for this Python Enum value_of implementation?

I would like to get a value_of implementation for the StrEnum (Python 3.9.x). For example: from enum import Enum class StrEnum(str, Enum): """Enum with str values""" ...
SkyWalker's user avatar
  • 14.5k
1 vote
2 answers
2k views

FastAPI: The asyncio extension requires an async driver to be used. The loaded 'psycopg2' is not async

I'm learning FastAPI from their official tutorial guide and I've reached currently at chapter 5 (Databases with SQLModel). I'm using neon db as stated in the docs. my code are as follows: src/__init__....
psudo's user avatar
  • 1,596
0 votes
0 answers
113 views

AttributeError: 'numpy.ndarray' object has no attribute 'categories'

Modin DataFrame Merge Issue After dropna on Categorical Column: I'm encountering an issue when using Modin to merge DataFrames that contain categorical columns. The issue arose after I performed a ...
Sumukha G C's user avatar
1 vote
0 answers
57 views

typing.get_args(tuple[()]) differs from typing.get_args(typing.Tuple[()])

I have some code to check the types of tuple elements. For this I use the get_args() function from the module typing. Since typing.Tuple is deprecated since Python 3.9 I use builtins.tuple. I noticed ...
haferfleks's user avatar
0 votes
1 answer
82 views

Python scorecardpy: UnboundLocalError: local variable 'card_df' referenced before assignment

I used scorecardpy function to get a model: import scorecardpy as ac card=sc.scorecard(bins_adj, lr, X_train.columns) Then I tried to save this model using following code: import numpy as np np.save('...
zjh1001's user avatar
  • 29
1 vote
0 answers
40 views

how to visualize collective behaviour of self propelled rod in two dimension?

multiple no. of self propelled rods (modelled using odd number of connected hard spheres ) with a fixed self propelled velocity is moving in a medium (2D) with three different diffusion constants for ...
Anonymous One's user avatar
0 votes
1 answer
30 views

My if statement isn't getting ignored after the == isn't the input it is required

after I run the code it still will be 15 even if the input isn't yes or Yes. I'm new to Python - can anyone please help me? The statement: if stuffed == "yes' or "Yes" : price = 15 ...
Julian Cani's user avatar
0 votes
1 answer
246 views

Installing old version of scikit-learn: ModuleNotFoundError: No module named 'numpy' [duplicate]

I have an old Python project that uses scikit-learn version 0.22.2.post1. Unfortunately I am unable to update to a newer version of scikit-learn as the training data has long been lost, and I ...
Justin's user avatar
  • 700
0 votes
1 answer
45 views

Set scrollbar to the LEFT with grid layout manager

I get read, that you can place the scollbar to the LEFT in .pack() layout manager, but I can't find a working solution for .grid() layout manager. The description in my book say I should use sticky = '...
Paul-ET's user avatar
  • 316

15 30 50 per page
1
2 3 4 5
75