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,394
» Latest member: zcharlesoogleto9533
» Forum threads: 38,823
» Forum posts: 176,027

Full Statistics

Online Users
There are currently 39 online users.
» 1 Member(s) | 34 Guest(s)
Bing, Google, Apple, Pedroski55

Latest Threads
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
6 hours ago
» Replies: 1
» Views: 56
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Yesterday, 09:12 AM
» Replies: 1
» Views: 4,592
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 08:37 AM
» Replies: 4
» Views: 184
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Yesterday, 07:27 AM
» Replies: 7
» Views: 3,601
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 153
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 297
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,112
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Pedroski55
Dec-27-2025, 01:10 AM
» Replies: 5
» Views: 9,962
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Dec-25-2025, 07:58 AM
» Replies: 2
» Views: 180
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 116

 
  newbie question - can't make code work
Posted by: tronic72 - Oct-19-2023, 06:07 AM - Forum: General Coding Help - Replies (2)

Hi,

New to python and doing a course by Mosh. I have a tutorial with the following code that will NOT work no matter what I do.

[python]class A..... More

Print this item

  Using Autostart to run a GUI program at startup. Rpi
Posted by: Edward_ - Oct-19-2023, 01:00 AM - Forum: General Coding Help - Replies (1)

I have been using an autostart display.desktop file as explained in Sec. 3 ..... More

Print this item

  How to run a linear model by group in Python?
Posted by: Betty775522 - Oct-18-2023, 07:09 PM - Forum: Data Science - No Replies

Dear all,
I’m beginning with Python that I need to use to run a linear model for the dataset below :
[output]Location Y X1 X2
1 32 ..... More

Print this item

  subtract 2 datetime string
Posted by: jss - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (4)

I have a code like below

from datetime import datetime
time_uploaded="2023-09-26T11:22:42.2Z"
time_now =datetime.now()
i ..... More

Print this item

  Error 403 Scraping website
Posted by: cartonics - Oct-18-2023, 02:40 PM - Forum: General Coding Help - Replies (17)

I am tryng to scrape data from forebet website
https://www.forebet.com/en/live-football-tips

[python]from bs4 import BeautifulSoup

import reque..... More

Print this item

  Why does [root.destroy, exit()]) fail after pyinstaller? Rpi
Posted by: Edward_ - Oct-18-2023, 01:29 PM - Forum: General Coding Help - Replies (4)

I have a small GUI app with a close button that works as expected when the app is run in Thonny, but the Exit button code fails in the binary file cre..... More

Print this item

  [split] Issue installing selenium
Posted by: Akshat_Vashisht - Oct-18-2023, 12:10 PM - Forum: General Coding Help - Replies (1)

Selenium was working fine in my system but some connection error were coming, So I have uninstalled it. Now, After restarting the system I am unable t..... More

Print this item

  how to parse with BeautifulSoup
Posted by: Larz60+ - Oct-18-2023, 11:22 AM - Forum: General Coding Help - Replies (3)

This format is confusing me.

What is the best way to parse into individual components with BeautifulSoup.

html:
[output]
<td class="small">
..... More

Print this item

  problem in entering address of a file in input
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - No Replies

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  problem in using input command
Posted by: akbarza - Oct-18-2023, 08:16 AM - Forum: General Coding Help - Replies (4)

hi
i read https://realpython.com/introduction-to-p...enerators/
there is a ..... More

Print this item

  mypy, type aliases and type variables
Posted by: tomciodev - Oct-18-2023, 07:34 AM - Forum: General Coding Help - Replies (1)

I'm not sure, whether it's a good place to ask such question. If it's not, please tell me, where it suits better.

I use Python 3.11/3.12, and mypy ..... More

Print this item

  Writing to CSV Problems
Posted by: gbtur8up - Oct-18-2023, 12:50 AM - Forum: General Coding Help - Replies (1)

Hello all, I'm pretty unfamiliar with Python and am encountering an error with the attached code in writing the output data to a CSV. The idea is to r..... More

Print this item

Video Get a executable file (.exe) from a .py file add a promoted class in a QWidget
Posted by: MiguelonReyes - Oct-17-2023, 11:31 PM - Forum: GUI - No Replies

Hi!! guys,
I am trying to get a .exe file ready to be executed from a click of a button on a screen (QMainWindow). In fact, in the past I have done ..... More


Attached Files

.py   000_Main.py (Size: 6.61 KB / Downloads: 248)
.py   mplwidget.py (Size: 698 bytes / Downloads: 286)
.py   SC002_GetChart_plotter.py (Size: 3.48 KB / Downloads: 293)
Print this item

  Sudoku making with base Python
Posted by: wep - Oct-17-2023, 05:46 PM - Forum: Homework - Replies (1)

Good evening,

i am doing some exercises from the course i am attending and one of them is requiring me to realize with base Python a valid sudoku 4..... More

Print this item

  output values change
Posted by: akbarza - Oct-17-2023, 10:11 AM - Forum: General Coding Help - Replies (3)

hi
int the below code:
[python]
def something(num,my_list):
num=3
my_list[0]=3

a=2
b=[2]
something(a,b)
print(a)
# 2 is printed
p..... More

Print this item

Question mypy unable to analyse types of tuple elements in a list comprehension
Posted by: tomciodev - Oct-17-2023, 09:27 AM - Forum: General Coding Help - Replies (1)

All presented code samples were tested with Python 3.11, and mypy 1.6.0.

And the problem is: mypy sees no problems in the following code:

[pytho..... More

Print this item

  Waiting for input from serial port, then move on
Posted by: KenHorse - Oct-16-2023, 09:27 PM - Forum: General Coding Help - Replies (3)

Why doesn't this leave the while loop?


[python]#wait for % and then move on
indata = ""
Counter = 0
while indata != "%":
indata = ser.rea..... More

Print this item

  Loop through values and compare
Posted by: edroche3rd - Oct-16-2023, 08:38 PM - Forum: General Coding Help - Replies (6)

Hi everyone

My 2nd inquiry as I try to learn Python and ways to expand my network engineering toolkit.

I found a script on Packetswitch by Sures..... More

Print this item

  difference between statement and expression
Posted by: akbarza - Oct-16-2023, 12:39 PM - Forum: General Coding Help - Replies (6)

hi
On the site realpython.com, I saw that was said that yield is a statement.
what is the difference between a statement and an expression in..... More

Print this item

  A more efficient code
Posted by: titanif - Oct-16-2023, 10:49 AM - Forum: General Coding Help - Replies (2)

I just started with Python. I want to add the information of the array ‘toc’ to the array ‘toc_n.’ The first two columns of both ones are ‘year’ and ‘..... More

Print this item

  How would I be able to detect a media player app playing a video.
Posted by: phpjunkie - Oct-16-2023, 02:05 AM - Forum: General Coding Help - Replies (2)

I'm trying to stop windows from powering off the monitor while playing a game or from watching movies and the only way I've found so far is using open..... More

Print this item

  regex findall() returning weird result
Posted by: Radical - Oct-15-2023, 04:31 PM - Forum: General Coding Help - Replies (1)

EDIT: You can likely just skip to the "update" at the bottom of this post.

What I am trying to do is test out regular expression usage ..... More

Print this item

  Modal window
Posted by: DPaul - Oct-15-2023, 06:51 AM - Forum: GUI - Replies (16)

Hi,
I'm getting pretty confused, reading about modal windows in tKinter.
I thought it would be simple.

I have an existing app,where users make a ..... More

Print this item

  Newbie question about switching between files - Python/Pycharm
Posted by: Busby222 - Oct-15-2023, 05:10 AM - Forum: General Coding Help - Replies (3)

Hi all,

My background is not coding, so I am not familiar with coding lingo, everything I know is self taught and my knowledge is limited.

I am usi..... More

Print this item

  permutations algorithm in python
Posted by: monkeyPlus - Oct-15-2023, 12:22 AM - Forum: Code sharing - Replies (1)

for a very fast permutation algoirithm check
https://andrealbergaria.github.io/fastPe...tions.html

Print this item

  TKinter Widget Attribute and Method Quick Reference
Posted by: zunebuggy - Oct-14-2023, 08:27 PM - Forum: GUI - Replies (3)

I made this from compiled data from 3 different Python sites. I find these just as useful as tutorial sites. I thought I'd share. I hope someone els..... More


Attached Files

.xlsx   Python_TKinter_Widget_Reference.xlsx (Size: 22.18 KB / Downloads: 351)
Print this item

  Looking for Part Time Python
Posted by: cbrum11 - Oct-14-2023, 05:53 PM - Forum: Jobs - No Replies

Hi folks,

I'm a mechanical engineer by education but I have been working in software adjacent niches my whole career. I'm looking for part time Py..... More

Print this item

  Can I use logging in a class (without multiple messages)
Posted by: mevan - Oct-14-2023, 04:18 PM - Forum: General Coding Help - Replies (2)

I'm new to using classes. In the code below I'm finding with the use of

log_alt.info()
messages will appear once, as desired. However..... More

Print this item

  Why am I getting this TypeError?
Posted by: pitosalas - Oct-14-2023, 12:22 PM - Forum: General Coding Help - Replies (5)

Maybe it's early morning brain...The line called out is:

self.new_queue = Queue("New", sim)
and the error says:
[error]TypeError: ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Replace a text/word in docx file using Python
Posted by: Devan - Oct-14-2023, 11:31 AM - Forum: General Coding Help - Replies (4)

Hello all,
I have few MS Word documents. I need to replace a particular text in that word document. This particular text can be found in paragraphs o..... More

Print this item

  list in dicitonary element problem
Posted by: jacksfrustration - Oct-14-2023, 11:29 AM - Forum: General Coding Help - Replies (3)

ok so basically im trying to build a workout tracker app. my problem is i want to check if there is already the date inside the json fille so it won't..... More

Print this item

  Help! Logistic regression with balanced data.
Posted by: xstazzie - Oct-13-2023, 11:49 PM - Forum: Homework - No Replies

Hello, I'm doing an AI course where i need to complete an exercise about classification and machine learning, and I'm really struggling with it. I've ..... More

Print this item

  Confusion over an Except branch
Posted by: Mark17 - Oct-13-2023, 06:17 PM - Forum: General Coding Help - Replies (1)

Hi all,

Here's some code:

[code]
#Create Custom Exceptions
class InvalidTitle(Exception):
pass

try:
title = input("Type the title..... More

Print this item

  'NoneType' object has no attribute 'get'
Posted by: zunebuggy - Oct-13-2023, 04:26 PM - Forum: GUI - Replies (8)

I used to develop in VB 6 and am new to Python. I am finding it to be very powerful but a little difficult to debug at times. I am going through som..... More

Print this item

  Need Guidance
Posted by: mridrees - Oct-13-2023, 02:53 PM - Forum: News and Discussions - Replies (4)

Hy Python Community,
Hope Everyone is good
I am bachelor's Student and learning Python this year
I request everyone that please provide me best Pyt..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Opencv findContours Q 6 hours ago jogl Pedroski55 General Codin...
  Struggles I Faced While E... Yesterday, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... Yesterday, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... Yesterday, 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...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
  [split] How to ask Smart ... 12-25, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
Most views
  The best Prog... 580412
  Tutorial Requ... 519567
  Web Scraping ... 442785
  Newbie with P... 386984
  New Users Int... 386542
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
zcharlesoogleto9533 Today
MaxTranslate Yesterday
pizofreude Yesterday
RockHound_Z12 Yesterday
braillescribe 12-28

User Panel Messages

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