Skip to main content

All Questions

Tagged with
-2 votes
2 answers
123 views

Pyodide: My pygame code that works in pyodide have no error but no result [closed]

My code in pyodide has no error but the result of a purple screen isn't happening. So if you need to see the code, this is the github link(https://github.com/IEYT/Mayor-Rush), and the github pages ...
IEYT's user avatar
  • 1
2 votes
0 answers
84 views

Plotly Express with Animation Frame: Having Issues with Legend and Displaying Points

I am trying to make a movie showing the evolution of an estimator. The idea is to draw the history of the estimator after each update. I want to do this as a movie as some updates come in out of ...
ryanh153's user avatar
  • 225
1 vote
3 answers
51 views

Is there a cleaner string cleaning for my string in python

I'm trying to make a dict from my sample string but I'm getting a sample source that is VERY dirty my working python snippet: dict(item.split(':', 1) for item in re.sub(' ', '', re.sub('"', ''...
Andrew Alsberge's user avatar
0 votes
0 answers
77 views

conda: python or pip command gives error - The system cannot execute the specified program

conda: python or pip command gives error - The system cannot execute the specified program I am trying to setup a new conda env in Anaconda3 on Windows. C:\Users\raka>conda create --name "...
Akash's user avatar
  • 1
2 votes
1 answer
51 views

When switching from pyenv to venv, what replaces pyenv's version management?

The native Python package venv is "recommended for creating virtual environments". I read that as saying that the Python Foundation wants users to switch from third party solutions like ...
Roofus's user avatar
  • 644
1 vote
1 answer
35 views

ImportError: cannot import name 'pywrap_tensorflow' from 'tensorflow.python' after reinstalling Python and TensorFlow

I'm encountering an issue when trying to import tensorflow after reinstalling both Python and TensorFlow. Here is the error I get when trying to simply import tensorflow: ImportError ...
pd_prince's user avatar
-1 votes
1 answer
24 views

Python 3 on windows ARM loading pandas

For Python 3 How can I install pandas on a windows 11 ARM machine without downloading and compiling the source? I get various errors, such as could not find a version that satisfies the requirement ...
Mark S's user avatar
  • 9
0 votes
0 answers
61 views

"Expected type 'SupportsWrite[str]', got 'TextIO' instead"

import json class Account: """Creates a new account""" def __init__(self, name: str, account_no: int, pin: int, balance: float): self.name = name....
Ahm's user avatar
  • 1
2 votes
0 answers
56 views

Can't set seeker in GSTREAMER cv2, python

I want to skip n seconds forward and backward in gstreamer cv2 capture for recorded videos. But when I use cap_gstreamer.set(cv2.CAP_PROP_POS_FRAMES, fps*skip_second) it resets seeker to beginning of ...
Alperen Ölçer's user avatar
-7 votes
1 answer
44 views

Download likes/dislikes/comment count of YouTube [closed]

I would like to download the number of likes, dislikes, and comments on YouTube. I have tried some old libraries, but they're not working. What is the current alternative?
Gautam Shahi's user avatar
-3 votes
0 answers
38 views

Setting up Python and MiniConda with Visual and multiple environments [closed]

Windows 11. Currently, 3.10 is installed. It is used with VSCode and venv. Mutiple projects each using their own venv. I have recently installed 3.12. Path has both 3.12 and 3.10. I must install ...
PaulM's user avatar
  • 379
-1 votes
2 answers
62 views

Modify elements of a list based on another list

I have two lists that look like - list_a = [('gfhr_10_dfrght_sl', None, None), ('gfhr_11_dfrght_sl', None, None), ('mnop_yxt_done', None, None), ('mnop_yxt_gd', None, None), ('frdf_yxty_syn', None, ...
Katrina Marrie's user avatar
1 vote
1 answer
128 views

Why doesn't multiprocessing.Process.start() in Python guarantee that the process has started?

Here is a code to demo my question: from multiprocessing import Process def worker(): print("Worker running") if __name__ == "__main__": p = Process(target=worker) p....
Gordon Hui's user avatar
3 votes
1 answer
59 views

How to properly extract all duplicated rows with a condition in a Polars DataFrame?

Given a polars dataframe, I want to extract all duplicated rows while also applying an additional filter condition, for example: import polars as pl df = pl.DataFrame({ "name": ["...
Omar AlSuwaidi's user avatar
2 votes
1 answer
66 views

Python abstract methods for Children, but such that don't prohibit instances of the Base?

I'm currently using ABC's to ensure that my child classes implement a specific method (or property, in this particular case). I want to make it impossible to create children of Entity without ...
RedRuin's user avatar
  • 174

15 30 50 per page
1
2 3 4 5
13743