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,559
» Latest member: Markrus011
» Forum threads: 38,627
» Forum posts: 175,004

Full Statistics

Online Users
There are currently 442 online users.
» 1 Member(s) | 436 Guest(s)
Baidu, Bing, Google, Yandex, AOL, ndc85430

Latest Threads
Setting AST node lineno c...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 1
» Views: 64
Venv - Python Virtual Env...
Forum: General Coding Help
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 73
Webscraping: Attendance L...
Forum: Web Scraping & Web Development
Last Post: Larz60+
3 hours ago
» Replies: 1
» Views: 77
Convert any Python expres...
Forum: General Coding Help
Last Post: voidtrance
Yesterday, 02:06 PM
» Replies: 0
» Views: 79
ImportError: cannot impor...
Forum: General Coding Help
Last Post: ItsTheGoose
Yesterday, 07:08 AM
» Replies: 11
» Views: 6,181
Port forwarding with frit...
Forum: Networking
Last Post: Mostelf
Yesterday, 04:41 AM
» Replies: 4
» Views: 227
New Users Introduce Yours...
Forum: Bar
Last Post: 2dogs
Jun-15-2025, 03:32 PM
» Replies: 450
» Views: 339,954
course for Python and Pyt...
Forum: News and Discussions
Last Post: 2dogs
Jun-15-2025, 03:15 PM
» Replies: 2
» Views: 776
How do select this table ...
Forum: Web Scraping & Web Development
Last Post: snippsat
Jun-15-2025, 01:52 PM
» Replies: 4
» Views: 202
Predicitve Maintenance Pr...
Forum: General Coding Help
Last Post: DeaD_EyE
Jun-14-2025, 11:00 PM
» Replies: 2
» Views: 217

 
  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: 81)
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 (3)

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

  Matplotlib not working
Posted by: svalencic - Dec-17-2024, 03:53 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm getting error while using Matplotlib. Importing it using import matplotlib.pyplot as plt works perfect, however any other function..... More

Print this item

  Asyncio subprocess blocking with python workload only
Posted by: lloydbond - Dec-17-2024, 03:03 PM - Forum: General Coding Help - Replies (1)

issue: if you start a subprocess that has a pipe to stdout for the purpose of concurrently processing output from stdout using asyncio everythi..... More

Print this item

  Search in a file using regular expressions
Posted by: ADELE80 - Dec-17-2024, 10:48 AM - Forum: General Coding Help - Replies (2)

Hello all,

I have the following file with DB_BASE commented:

profile.txt

export DB_SID=NEW
#export DB_BASE=/oracle/${DB_SID}
export DB_HOME..... More

Print this item

  Using place for a button, many examples but AttributeError, tkinter
Posted by: Edward_ - Dec-16-2024, 04:17 PM - Forum: GUI - Replies (3)

This must be very simple, how to Place a button by x and y coordinates, not using a frame/grid.

button.place(x=100, y=200)
Shown in e..... More

Print this item

  button image changing but not visually updating
Posted by: RuaridhW - Dec-16-2024, 09:48 AM - Forum: GUI - Replies (2)

Hi complete noob but i've been banging my head against this for 2 days and still can't work out what i'm doing wrong

So i am trying to setup a stack ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Setting AST node lineno c... 2 hours ago voidtrance deanhystad General Codin...
  Venv - Python Virtual Env... 3 hours ago DanneA Larz60+ General Codin...
  Webscraping: Attendance L... 3 hours ago ThatsMe Larz60+ Web Scraping ...
  Convert any Python expres... Yesterday, 14:06 voidtrance voidtrance General Codin...
  ImportError: cannot impor... Yesterday, 07:08 Anldra12 ItsTheGoose General Codin...
  Port forwarding with frit... Yesterday, 04:41 timonick Mostelf Networking
  New Users Introduce Yours... 06-15, 15:32 Yoriz 2dogs Bar
  course for Python and Pyt... 06-15, 15:15 anjali 2dogs News and Disc...
  How do select this table ... 06-15, 13:52 MarkMan snippsat Web Scraping ...
  Predicitve Maintenance Pr... 06-14, 23:00 dannyg DeaD_EyE General Codin...
  Button color selection in... 06-14, 17:55 wa4ywm wa4ywm General Codin...
Most views
  The best Prog... 572195
  Tutorial Requ... 484697
  Web Scraping ... 436752
  Newbie with P... 379583
  Thread remain... 351208
Most reputation
buran 581
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12065
buran 8173
snippsat 7335
deanhystad 6836
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
Markrus011 Yesterday
DanneA Yesterday
ShirleyBrendel Yesterday
ThatsMe Yesterday
dataanalystjobs7 Yesterday

User Panel Messages

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