Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,398
» Latest member: zasamueluniorz7349
» Forum threads: 38,825
» Forum posts: 176,036

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 39 Guest(s)
Apple, Bing, Google, Mojeek

Latest Threads
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
9 hours ago
» Replies: 2
» Views: 144
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
9 hours ago
» Replies: 2
» Views: 117
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,180
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,652
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 200
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,627
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 283
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,641
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 259
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 396

 
  ValueError in dataclasses.py - using staking-deposit-cli
Posted by: andrewk - Feb-10-2025, 09:51 PM - Forum: General Coding Help - No Replies

My project uses https://github.com/ethereum/staking-depo...y_handling

When trying execute it, I get the followin..... More

Print this item

Question Custom Window Decorations on all Windows
Posted by: Beenman11 - Feb-10-2025, 09:00 PM - Forum: General Coding Help - Replies (4)

Hi,
I am making a Helping Script for a game, which uses tkinter for the GUI elements and messagebox for a pop up window.
For this script, there is a..... More


Attached Files

Thumbnail(s)
       

.py   buckshot-helper-test.py (Size: 16.72 KB / Downloads: 155)
Print this item

  Need help with Scikit-Learn Assignment
Posted by: Toh - Feb-10-2025, 07:15 AM - Forum: Homework - Replies (1)

what is wrong with my code why keep failing?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My failur..... More

Print this item

  What to do with Deadsnakes PPA?
Posted by: andrewk - Feb-09-2025, 04:18 AM - Forum: General Coding Help - Replies (1)

I'm using Python 3.11 which was installed on my Raspberry PI 5 by default.

My project depends on ppa:deadsnakes/ppa...
ie. sudo add-apt-repository..... More

Print this item

Question [SOLVED] [newbie] Why call super()? When to use parent?
Posted by: Winfried - Feb-08-2025, 07:12 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm reading a book on wxPython, and have a couple of newbie questions:

1. Why is a call to super() required? When commented out, Python a..... More

Print this item

  not able to call the variable inside the if/elif function
Posted by: mareeswaran - Feb-08-2025, 04:22 PM - Forum: General Coding Help - Replies (3)

[python]class new_():
def __init__(self):
self.std_=20000


def new1 (self):
if (0<i<=600000):
..... More

Print this item

  opencv troubleshooting when using Canny
Posted by: rickyw2777 - Feb-08-2025, 03:48 AM - Forum: General Coding Help - Replies (2)

I was trying to use a tracebar to change the value of shresholds for Canny. Here is my code:
[code]#HoughLinesP
import cv2
import numpy as np
fi..... More

Print this item

  def __str__(self) gives error
Posted by: rahul6sept - Feb-08-2025, 02:58 AM - Forum: General Coding Help - Replies (1)

Hi, the function def __str__(self) while I put inside the class is giving indent error. But if put outside doesn't give output.

plz advice.


Attached Files

.py   class_py_student.py (Size: 525 bytes / Downloads: 140)
Print this item

  "bytecode compiler" in docs means what?
Posted by: EShaw - Feb-07-2025, 05:19 PM - Forum: News and Discussions - Replies (1)

Hello, first post. I'm a CS instructor and prepping a lecture on compiling v interpreting.

My question is about the use of the term "bytecode comp..... More

Print this item

  question about changing the string value of a list element
Posted by: jacksfrustration - Feb-07-2025, 02:33 PM - Forum: General Coding Help - Replies (4)

so im still building this reminder app. It's got two parts. I need help perfecting it. Basically my app can generate reminders about events/tasks, sav..... More

Print this item

  Python - Hidden Text / Html Mail
Posted by: python1337 - Feb-07-2025, 02:02 PM - Forum: General Coding Help - Replies (1)

I have a Python tool that I want to use to send emails.

I want to send a hidden text within an html mail without the plaintext being displayed - Cu..... More

Print this item

  exception scapy
Posted by: kolikol - Feb-07-2025, 01:57 PM - Forum: Networking - Replies (1)

Hello, forum!
I have win7 x32 python 3.8.0, the problem is:

When trying to connect the scapy library (full functionality), namely by importing
fr..... More

Print this item

  Python-based telegram spam bot-telegram-bot
Posted by: archer24 - Feb-07-2025, 12:42 PM - Forum: General Coding Help - Replies (1)

Hello, everyone. I'm completely new to Python (I've been writing code for literally 3 days). My task is to write an Antispam Telegram bot based on pyt..... More

Print this item

  Improve Prime Pairs Code
Posted by: jzakiya - Feb-06-2025, 08:51 PM - Forum: General Coding Help - Replies (7)

Hi.

First, I'm not a Python programmer so please escuse my ignorance.

I'm looking for help to improve this code.
It generate prime pairs that s..... More

Print this item

  Hangman Game Buy a Vowel
Posted by: glwilliams82 - Feb-06-2025, 08:53 AM - Forum: Homework - Replies (1)

I created this code for a Hangman game where you can buy a Vowel, but for some reason it keeps subtracting from every letter even if you don't buy a v..... More

Print this item

  asyncio: WebSocketClient:connection closed (ERR): sent 1011
Posted by: Michel777 - Feb-04-2025, 08:43 PM - Forum: General Coding Help - No Replies

Hi,

I'm using Python asyncio, everything is working fine. The only issue is, that the [b](*) writing data from queue into the database: df.to_sql[/..... More

Print this item

  Parallel computation
Posted by: DoveV - Feb-04-2025, 05:59 PM - Forum: General Coding Help - Replies (6)

Hi there,

I'm relatively new to python and I'm trying to perform a 'trivially' parallel computation.
I have some big array of data and I need to p..... More

Print this item

  MPEG DASH Package implementation similar to M3U8 package
Posted by: anantha_narayanan - Feb-04-2025, 02:23 PM - Forum: General Coding Help - Replies (1)

I'm currently using the following package for working with .m3u8 (HLS) playlist files

m3u8 Package
..... More

Print this item

  I'm trying to install python 3.11.11 on windows 10 - it doesn't work
Posted by: Petonique - Feb-04-2025, 05:31 AM - Forum: General Coding Help - Replies (2)

i added environment variables, but when i try to run python setup.py install command via cmd nothing happens. just line is updated

if i do python s..... More


Attached Files

Thumbnail(s)
   
Print this item

  Plot blue
Posted by: daves_cordova - Feb-02-2025, 09:05 PM - Forum: Data Science - Replies (2)

[python]
# Import necessary libraries
import numpy as np
import pandas as pd
import geopandas as gpd
from libpysal.weights import Queen, higher_o..... More


Attached Files

.xlsx   Base de dados - Regressão.xlsx (Size: 247.78 KB / Downloads: 0)
Print this item

  Building specific Python version on Raspberry PI 5 (Raspbian)
Posted by: andrewk - Feb-02-2025, 04:55 AM - Forum: General Coding Help - Replies (2)

Hi!

I'm trying to build Python 3.8 from source on a Raspberry PI 5 (Raspbian).
A project I'm using requires Python 3.8.

Downloaded the source a..... More

Print this item

  Is there a Python solution to select unique frames from a video?
Posted by: rownong - Feb-01-2025, 11:06 PM - Forum: General Coding Help - Replies (1)

Hello
It is necessary to receive unique frames (screenshots) from the video.
Is there any Python solution to select frames from a video that, for ex..... More

Print this item

  Open CV cv2.bitwise_and() function
Posted by: rickyw2777 - Feb-01-2025, 06:41 PM - Forum: General Coding Help - Replies (3)

My question is about python and Open CV. Here is my code:
[python]import cv2
import numpy as np

# read image
img = cv2.imread(r"C:\Users\asus\D..... More

Print this item

  How to remove unwanted images and tables from a Word file using Python?
Posted by: rownong - Feb-01-2025, 10:12 AM - Forum: General Coding Help - Replies (2)

After exporting from PDF to Word (via), the file contains many unnecessary artifacts in the text:
- meaningless parts of images
- empty tables of 1 ..... More

Print this item

  Pyinstaller usage
Posted by: PhilippS - Jan-31-2025, 02:28 PM - Forum: General Coding Help - Replies (1)

Hi team,
I am using pyinstaller to cerate a exe of my main.py. The main uses different other python_scripts.py which are located in the same folder...... More

Print this item

  Implementing Efficient Event-Driven Programming in Python
Posted by: JasonGrant - Jan-31-2025, 12:38 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I’m designing an event-driven application in Python that needs to respond to external triggers quickly and efficiently. Does anyone..... More

Print this item

Question [redistribution] Reduce number + size of dependencies?
Posted by: Winfried - Jan-31-2025, 11:30 AM - Forum: General Coding Help - Replies (2)

Hello,

Using…

pyinstaller --clean myscript.py
… I notice that a simple script running Python 3.12.0 that just reads a URL from the c..... More

Print this item

  Is the Walrus Operator( := ) antipattern?
Posted by: maina - Jan-31-2025, 10:53 AM - Forum: News and Discussions - Replies (3)

The walrus operator( := ) was introduced in Python 3.8.
It allows you to create, assign..... More

Print this item

  Recording a Conversation
Posted by: puvuz - Jan-31-2025, 02:00 AM - Forum: General Coding Help - No Replies

I just started a new job in tech support and it requires documenting everything being said over the phone. I use a USB headset, the Yealink WHB620 spe..... More

Print this item

  pystran: Python Structural Analysis
Posted by: PetrKrysl - Jan-30-2025, 08:06 PM - Forum: Code sharing - Replies (1)

https://github.com/PetrKryslUCSD/pystran

I would very much appreciate feedback on how to provide documentation.
I expect the package to be downloa..... More

Print this item

  knowing for loop position in a list
Posted by: medic5678 - Jan-30-2025, 07:39 PM - Forum: General Coding Help - Replies (4)

I've got a text variable, my_word.
I want to run a for loop

For letter in my_word:
if letter == "f"

I want to know the index..... More

Print this item

  Problems creating standalone - can't find package tkdnd
Posted by: jbenfield - Jan-30-2025, 05:21 PM - Forum: GUI - Replies (4)

I have an tkinter app that runs fine in VS-Code/Terminal, but I can't seem to get it to work as a standalone.
The error is always a variant on the t..... More

Print this item

  Pulling data from mssql to PG DB
Posted by: hartman60 - Jan-30-2025, 03:57 PM - Forum: General Coding Help - Replies (1)

I'm trying to load a PostgreSQL table with information from MSsql. I have 2 tables that are identical on both db's. On the Mssql side there is a colum..... More

Print this item

Photo Cannot plot without high machine precision problems on small numbers
Posted by: aphobic - Jan-30-2025, 03:48 PM - Forum: Data Science - Replies (1)

Hi, I am trying to plot the solution of the Lindblad equation, for a Bell state probability density matrix, however I get non-zero entropy at t=0, whi..... More


Attached Files

Thumbnail(s)
   

.py   entropyPSI.py (Size: 4.06 KB / Downloads: 4)
Print this item

  Rudimentary prototype for: Fractal Growth Model, Diffusion-Limited Aggregation (DLA)
Posted by: ratwolf - Jan-30-2025, 04:09 AM - Forum: Code sharing - No Replies

   

[python]import numpy as np
import matplotlib.pyplot as plt
from numba import njit, prange
from matplotlib.cm import ScalarMapp..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Check if running from she... 9 hours ago rjdegraff42 noisefloor General Codin...
  Sorry Help 9 hours ago BioNanoTech noisefloor General Codin...
  IP address for users Yesterday, 20:02 Robots DeaD_EyE Networking
  Merge video with subtitle... Yesterday, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580481
  Tutorial Requ... 520079
  Web Scraping ... 442797
  Newbie with P... 387016
  New Users Int... 386813
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zasamueluniorz7349 Today
BioNanoTech Today
CarlApome Yesterday
cruisesfares 12-30
azam 12-30

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020