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,399
» Latest member: kylausasd5428
» Forum threads: 38,826
» Forum posts: 176,037

Full Statistics

Online Users
There are currently 32 online users.
» 0 Member(s) | 27 Guest(s)
Applebot, Bing, Google, Mojeek

Latest Threads
Для кулінарів, хто іноді ...
Forum: Code sharing
Last Post: kylausasd5428
1 hour ago
» Replies: 0
» Views: 11
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 2
» Views: 111
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 2
» Views: 110
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,177
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,639
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 189
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,615
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 277
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,636
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 251

 
  Pixel counting
Posted by: Robots - Jan-03-2025, 12:42 AM - Forum: Data Science - Replies (3)

Hey all -

I am guessing this is going to include numpy but it may just be a simple math function.

I need to count the number of pixels from a r..... More

Print this item

  Changing client.get() method type based on size of data...
Posted by: dl0dth - Jan-02-2025, 08:29 PM - Forum: General Coding Help - Replies (1)

How do I convert the following code to use the offset limit items and get a large item instead of doing a get_all type operation? The code I want to ..... More

Print this item

  I am getting an IndentError on my python code in VS Code and i dont know why
Posted by: jcardenas1980 - Jan-02-2025, 08:17 PM - Forum: General Coding Help - Replies (11)

Im recently learning python and im using a for function but every time that i tried to execute the code i receive the indent error. I review the youtu..... More


Attached Files

Thumbnail(s)
       
Print this item

  [PyQt] Tutorial bug with PyQt6 canvas
Posted by: Mike88 - Jan-02-2025, 07:51 PM - Forum: GUI - Replies (5)

I'm following an online PyQt tutorial and the last example fails to run. I can see why, but don't know how to fix it. It looks like the instantiatio..... More

Print this item

  QLabel is not clearing before updating
Posted by: carlrostron - Jan-02-2025, 05:16 PM - Forum: GUI - Replies (8)

Hi All

I have never had this issue before, but I am opening a Window with a QLabel on and setting the text to a paricular value. However, when I op..... More


Attached Files

Thumbnail(s)
   
Print this item

  Dict Update
Posted by: dave0823 - Jan-02-2025, 01:28 AM - Forum: General Coding Help - Replies (8)

I can't seem to update an existing dict structure with another dict structure to get the structure I require.

Here's what I'm doing:

[python] ..... More

Print this item

  Load a Folium map into a pdf-file
Posted by: Thats_Leet - Jan-01-2025, 08:13 PM - Forum: General Coding Help - No Replies

Hello,
I am encountering an issue where I am unable to insert a map generated in Folium into a PDF file. This type of error pops out:





[err..... More

Print this item

  Removal of watermark logo pdf file Python
Posted by: druva - Jan-01-2025, 11:55 AM - Forum: General Coding Help - No Replies

Hello,

Any solution to remove watermark image from pdf file using python

I tried using cv2.inpaint
It is just changing the colour.

import c..... More

Print this item

  Looping through each images in a give folder Python
Posted by: druva - Jan-01-2025, 06:35 AM - Forum: General Coding Help - Replies (1)

Here I am trying to loop through each image file in a folder .
The code :
[python]import cv2
import numpy as np
import os

# Directory containi..... More

Print this item

  Replacing First Hyphen in a Folder Name but Leave Any Other Hyphens Unchanged?
Posted by: tatihulot - Dec-31-2024, 03:58 PM - Forum: Code Review - Replies (4)

Hello and Happy New Year.
May I please explain what I need to do. I have a folder named C:\MUSIC2025 that contains my entire music collection.
The ..... More

Print this item

  How to Merge Single page pdf files to one pdf file
Posted by: druva - Dec-31-2024, 11:44 AM - Forum: Code sharing - Replies (7)

Hello

I am to Merge single page pdf files to one single pdf files..Each pdf file contains only single page.(img1.pdf,img2.pdf......so on)
that ..... More

Print this item

Question [SOLVED] Upgraded Python: Module no longer found
Posted by: Winfried - Dec-31-2024, 11:21 AM - Forum: General Coding Help - Replies (1)

Hello,

After upgrading Python from 3.12.0 to 3.13.1, and manually editing Windows' PATH (otherwise, it still ran the previous version)… Python can ..... More

Print this item

  Strange EXIF data
Posted by: Ewok2 - Dec-31-2024, 10:57 AM - Forum: Data Science - Replies (1)

Hello
I have digitalized some picture some years ago.
The scanner has put a date in the Exif Field DateTimeDigitized
I would like to remove this da..... More

Print this item

  How to communicate between scripts in python via shared file?
Posted by: daiboonchu - Dec-28-2024, 03:01 PM - Forum: General Coding Help - Replies (4)

Hi,
I have been watching videos and looking up a solution to this for the past day but still cant seem to wrap my mind around this. If there is anot..... More

Print this item

  Pyevent counterintuitive behaviour
Posted by: ZazaRy - Dec-28-2024, 02:36 PM - Forum: General Coding Help - Replies (1)

So, I'll make this very quick ( I picked up on pygame this week to try it out and also prototype some physics quickly ).

This does not close the wi..... More

Print this item

  How to restrict a ttk.PanedWindow's sash?
Posted by: lunacore - Dec-28-2024, 07:17 AM - Forum: GUI - Replies (1)

Here is the MRP code of the situation:
[python]
def enforce_sash_limits(self, event):
self.main_paned_win.sashpos(0, 120)

def init_pagebrows..... More

Print this item

  How to revert back to a previous line from user input
Posted by: Sharkenn64u - Dec-28-2024, 05:41 AM - Forum: General Coding Help - Replies (2)

Guys have a question and cant seem to find the solution anywhere, most places are telling me to create a loop:

LINE1: user_name = input('what is y..... More

Print this item

  [Solved]Help terminating arduino properly
Posted by: classified - Dec-28-2024, 12:10 AM - Forum: General Coding Help - Replies (1)

Hello,

I'm working on a robotic head and I have a pan/tilt mechanism with a 2 axis tilt (Left/Right tilt).

I'm using a camera with python to do..... More

Print this item

  Detect if another copy of a script is running from within the script
Posted by: gw1500se - Dec-27-2024, 03:42 PM - Forum: General Coding Help - Replies (4)

I have a situation where an application can launch a python script at any time. It can also launch the script multiple times almost simultaneously. I ..... More

Print this item

  Bitcoin Machine Learning and Future forcaste
Posted by: Farrukhbuzdar - Dec-27-2024, 12:24 PM - Forum: Data Science - Replies (1)

I developed a script and encountering error. Need inputs to finalize script. I am using .csv file in script to analysize future price of #bitcoin
---..... More

Print this item

  Newcomer has a project in mind
Posted by: omexlu - Dec-27-2024, 08:29 AM - Forum: General Coding Help - Replies (1)

Hello,

I am completely inexperienced and new to Python, but have experience with every possible web programming language.

I have the following p..... More

Print this item

  Error in Raspberry Pi
Posted by: 1Curiousindividual - Dec-26-2024, 05:47 PM - Forum: General Coding Help - Replies (1)

Merry Christmas and good evening to everyone. I have a hand tracking code.I wrote the code by combining two different codes with chat gpt. I try to fi..... More

Print this item

  Popup window not coming
Posted by: RamanSMann - Dec-24-2024, 11:53 PM - Forum: GUI - Replies (2)

hi,
i am new to PyQt5. i am trying to make a GUI with the help of a tutorial. but popup window is not coming when i click the button

[python]
fro..... More

Print this item

  Sending Packages with Scapy
Posted by: yoda2247 - Dec-24-2024, 06:22 PM - Forum: General Coding Help - Replies (3)

Hello
I'm learning scapy and I have a problem: the TCP packets I send are leaving, but I don't get a response. I tried to disable the firewall and g..... More

Print this item

  Python Live Coding Training for Kids (8-18 age)
Posted by: jonathanluca - Dec-24-2024, 04:36 PM - Forum: Tutorial Requests and Submissions - No Replies

Hi,
I am an online tutor at Guruface an online learning platform which is providing ..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to handle multiple audio uploads without canceling ongoing API requests?
Posted by: muba - Dec-24-2024, 03:42 PM - Forum: General Coding Help - Replies (2)

I’m building a web application where users can upload audio files, and each file is sent to an external API (Gemini API) for processing. However, I’m ..... More

Print this item

  How to umount on a closed distro
Posted by: ebolisa - Dec-24-2024, 01:57 PM - Forum: General Coding Help - Replies (5)

Hi,

I'm running an old motioneye distro on a Raspberry Pi with python 2.7. It's working fine but it has filenames read-write only.

Because I'd l..... More

Print this item

  If I need to do regex replacement 27000 times, how to shorten it?
Posted by: tatahuft - Dec-24-2024, 06:14 AM - Forum: General Coding Help - Replies (4)

If I need to do regex replacement 27000 times with different pattern search and replacement, how to shorten it?

[python]import re
from _Arm64HexDa..... More

Print this item

  How to write variable in a python file then import it in another python file?
Posted by: tatahuft - Dec-24-2024, 04:38 AM - Forum: General Coding Help - Replies (4)

How to write variable in a python file then import it in another python file?
[python]hex_mova64w0c0 = "00008052"

hex_mova64w1c0 = "01008052"
hex..... More

Print this item

  Raspberry PI - PyAudio - Streaming to Web Page
Posted by: ultimatecodewarrior - Dec-24-2024, 04:34 AM - Forum: General Coding Help - Replies (2)

Hi All, trying to stream from the Microphone on the Raspberry PI. This chunk of code almost works on the PI to a browser window. I just don't hea..... More

Print this item

  [split] another problem with code
Posted by: blakeusherremix68 - Dec-23-2024, 11:36 PM - Forum: General Coding Help - No Replies

Hello. I need help with this:

print1 = "print("
print2 = "dogma"

print(f"My name is {print1}{print2} years old.")

IF i am trying to includ..... More

Print this item

  xl() function key error
Posted by: EricAshton - Dec-23-2024, 03:58 PM - Forum: General Coding Help - No Replies

So the Microsoft Excel preview version includes python integration. I am having trouble with it and I posted on the MS office preview forum but the Mi..... More

Print this item

  another problem with code
Posted by: zane108 - Dec-22-2024, 05:13 PM - Forum: General Coding Help - Replies (7)

What is wrong with my code listed below? Thanks in advance for your assistance!

Instructions:
You are given three numbers as input. Write a progra..... More

Print this item

  Getting an error while trying to process data, low memory when memory is not low?
Posted by: bkeith12 - Dec-20-2024, 02:52 PM - Forum: General Coding Help - No Replies

Im using a program called PING Mapper to process side scan sonar. I usually work in MATLAB so I don't have a ton of experience in Python, this PING Ma..... More


Attached Files

.txt   error_2024-12-20_0638.txt (Size: 3.38 KB / Downloads: 138)
Print this item

  How to run shell command, capture the output, then write it into textfile?
Posted by: tatahuft - Dec-20-2024, 06:27 AM - Forum: General Coding Help - Replies (4)

How to run shell command, capture the output, then write it into textfile?

I tried to use code below:
[python]from subprocess import run


data..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Для кулінарів, хто іноді ... 1 hour ago kylausasd5428 kylausasd5428 Code sharing
  Check if running from she... 5 hours ago rjdegraff42 noisefloor General Codin...
  Sorry Help 5 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...
Most views
  The best Prog... 580478
  Tutorial Requ... 520044
  Web Scraping ... 442797
  Newbie with P... 387015
  New Users Int... 386799
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
kylausasd5428 Today
zasamueluniorz7349 Today
BioNanoTech Today
CarlApome Yesterday
cruisesfares 12-30

User Panel Messages

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