2,205,451 questions
Score of 0
1 answer
40 views
Full Str not Added to Dictionary in Loop
I am running into an issue where my dictionary is not picking up full strings attached to variables, but instead just the first letter. I made a small example of what happens, but I would be happy to ...
Score of -4
0 answers
59 views
venv not activating with source
The environment is supposedly activated but when I try to install a package it tries to install it globally
source .venv/bin/activate.fish
which python
/usr/bin/python
pip3 install cryptography ...
Score of 0
0 answers
36 views
Catch KeyboardInterrupt but not asyncio.CancelledError
I want handle KeyboardInterrupt and return result.
And I want get exception TimeoutError when timeout exceed
import asyncio
from aioconsole import ainput
async def long_running_task():
try:
...
Score of -4
0 answers
82 views
print of debug des not print [closed]
i made unit tests of route. Here is the tests
def test_get_all_user(db_session):
response, status_code = requests.get("http://127.0.0.1:5000/api/users", headers={"token": &...
Score of 1
1 answer
49 views
Using Spyder without .py extension
Is it possible to have Spyder run code or analyze a file that doesn't have a .py extension? The file has a shebang as the first line to name the python to be used.
I can't find a setting that allows ...
Score of 0
1 answer
90 views
not null constraint failed
I program in python. I run the following method
def delete_category(id):
# Récupérer la categorie à supprimer
print("ca passe1")
category = db.session.query(Category).filter_by(...
Score of 1
1 answer
52 views
DB Browser for SQLite returns 0 rows for sqlite_master after opening a databasemessage in a Python UI automation test?
I have a Python UI automation test that verifies a transient status message after a long-press action.
The transient is displayed for a very short time and is often missed when I read it after the ...
Score of 1
1 answer
60 views
How can I preserve tables, images, and nested lists when converting DOCX WORD to Markdown?
I’m developing a browser-based Word-to-Markdown converter.
The converter handles basic paragraphs and headings correctly, but I am having trouble preserving the original document structure when the ...
Score of -1
0 answers
72 views
How can I vertically align a Plotly chart and a custom HTML card in adjacent Streamlit columns?
I'm building a dashboard in Streamlit where two columns are displayed side by side. The left column contains a Plotly chart, while the right column contains a custom HTML/CSS card rendered using st....
Score of -5
0 answers
92 views
Discord Selfbot/User API [closed]
I understand self-botting is against Discord’s Terms of Service, but I’m curious to learn how to report a user or message. Could somone provide the correct Discord API endpoint for this purpose? If ...
Score of 1
1 answer
76 views
How to properly deal with nan values when using scipy.stats.pearsonr?
I get this warning message:
constantInputWarning: An input array is constant; the correlation coefficient is not defined.
None of my arrays are constant, yet people have reported the same issue with ...
Score of 1
0 answers
81 views
How to create a custom dataset and dataloader in pytorch geometric for files with different dimensions?
I have several files that stores graphs, each of different dimension on axis=0 (eg. torch.Size([9852, 400]), torch.Size([6740, 400])). I am trying to create a Dataset and a Dataloader in pytorch ...
Score of -2
0 answers
28 views
Flask form submission returns 405 Method Not Allowed even though the route exists [duplicate]
I am building a small Flask web application where a user submits a form to generate content. The page loads correctly, but whenever I click the submit button, Flask returns a 405 Method Not Allowed ...
Score of 0
0 answers
85 views
Github Regressions: Private dataset to Github [closed]
I am designing a CI workflow that require access to a private dataset that cannot be stored in the Github repository or downloaded by a Github-hosted runner.
Connection desired design: Github PR -> ...
Score of 0
0 answers
74 views
skl2onnx conversion for standalone RandomForestClassifier results in massive 41% accuracy drop due to list unpacking shape mismatch
I am converting a standard Scikit-Learn standalone RandomForestClassifier into an ONNX graph using skl2onnx. While my native Python script logs an expected accuracy of 0.7832 on the Titanic dataset, ...