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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,919
» Latest member: aidajnrz7704
» Forum threads: 38,717
» Forum posts: 175,484

Full Statistics

Online Users
There are currently 52 online users.
» 1 Member(s) | 44 Guest(s)
Applebot, Bing, AOL, Google, AOL, Mojeek, snippsat

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: snippsat
3 hours ago
» Replies: 5
» Views: 328
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
10 hours ago
» Replies: 5
» Views: 1,121
New to the field
Forum: News and Discussions
Last Post: Polybunny
Today, 01:31 AM
» Replies: 0
» Views: 88
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Yesterday, 03:23 PM
» Replies: 4
» Views: 2,282
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 11:09 AM
» Replies: 2
» Views: 843
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Yesterday, 08:36 AM
» Replies: 1
» Views: 2,132
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-11-2025, 08:39 PM
» Replies: 6
» Views: 1,492
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-11-2025, 05:34 PM
» Replies: 5
» Views: 1,252
pip fails to install PyGO...
Forum: General Coding Help
Last Post: Larz60+
Sep-11-2025, 10:50 AM
» Replies: 2
» Views: 1,811
how to manage crypto trad...
Forum: General Coding Help
Last Post: Mercyto
Sep-11-2025, 06:01 AM
» Replies: 2
» Views: 2,968

 
  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: 108)
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

  plans for 2025.
Posted by: Celal - Dec-20-2024, 05:17 AM - Forum: Bar - Replies (4)

Do share here what is your plans for 2025.

What is the resolution for the next year?

I am looking for your exciting replies

Print this item

  How to convert while loop to for loop in my code?
Posted by: tatahuft - Dec-20-2024, 01:35 AM - Forum: General Coding Help - Replies (4)

I have a working script in python like this:
[python]import re

handle_file1 = open("example1.so", "rb")
hex_file1 = handle_file1.read().hex().upp..... More

Print this item

  Problems writing a large text file in python
Posted by: Vilius - Dec-19-2024, 10:40 AM - Forum: General Coding Help - Replies (4)

Hi,

I have developed this semi-scientific code that acts as a TCP server. It listen for incoming messages, processes those and stores it in the compu..... More

Print this item

  LLM data I/O - for storing notes
Posted by: Alkanet - Dec-19-2024, 09:08 AM - Forum: General Coding Help - No Replies

Looking to build out a local LLM system to read in notes that get stored quickly for prompting after. What is the best directory or file format for th..... More

Print this item

  Storing DictProxy object and modifying its nested value?
Posted by: haihal - Dec-19-2024, 01:25 AM - Forum: General Coding Help - Replies (3)

The standard multiprocessing.managers.BaseManager module does not permit or recognize the use of nested objects, forcing one to resort to `multiproc..... More

Print this item

  How to read a file as binary or hex "string" so that I can do regex search?
Posted by: tatahuft - Dec-19-2024, 01:03 AM - Forum: General Coding Help - Replies (3)

For example,
If I open a file using hex editor, it showed
3C 47 23 56 59 59 66 38 38 5C 67 3A 5A 70 29 32 47 25 28 63 5D 33 32 39 69 30 58 53 2B 4B ..... More

Print this item

  [fixed] Debugging in a remote server using VScode
Posted by: paul18fr - Dec-18-2024, 09:25 AM - Forum: News and Discussions - Replies (1)

Hi,

I'm wondering if an experienced user can help in debugging (python codes) in a remote server using VScode? especially when environments must be..... More

Print this item

  How can I make this code more efficient and process faster?
Posted by: steven_ximen - Dec-17-2024, 04:27 PM - Forum: General Coding Help - No Replies

The main function simulates receiving as much data as possible and then forwarding it to other subprocesses for processing. There will actually be mul..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 3 hours ago SpongeB0B snippsat General Codin...
  I'm trying to make a piec... 10 hours ago Alislugacool MilesWeb General Codin...
  New to the field Today, 01:31 Polybunny Polybunny News and Disc...
  Seeking feedback: dynamic... Yesterday, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... Yesterday, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... Yesterday, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
  New to Python and Pygame 09-11, 17:34 JMcM JMcM Game Developm...
  pip fails to install PyGO... 09-11, 10:50 voidtrance Larz60+ General Codin...
  how to manage crypto trad... 09-11, 06:01 Mikeardy Mercyto General Codin...
  How to space data on x ax... 09-11, 05:35 m_kdch Pedroski55 General Codin...
Most views
  The best Prog... 575397
  Tutorial Requ... 496188
  Web Scraping ... 439516
  Newbie with P... 383107
  New Users Int... 363809
Most reputation
buran 581
snippsat 508
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12086
buran 8174
snippsat 7366
deanhystad 6890
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
aidajnrz7704 Today
Jillscitt Yesterday
Stowersw Yesterday
Intel Yesterday
Gichardaxora Yesterday

User Panel Messages

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