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,934
» Latest member: winchestersam
» Forum threads: 38,722
» Forum posts: 175,504

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 41 Guest(s)
Bing, AOL, Twitter, Google, AOL

Latest Threads
Recovery of my lost solan...
Forum: General Coding Help
Last Post: winchestersam
1 hour ago
» Replies: 0
» Views: 9
LOST OF INVESTMENT SCAM
Forum: News and Discussions
Last Post: goodvicent
2 hours ago
» Replies: 0
» Views: 7
Too much space between gr...
Forum: GUI
Last Post: deanhystad
5 hours ago
» Replies: 3
» Views: 917
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 362
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-15-2025, 08:58 PM
» Replies: 8
» Views: 2,512
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,551
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 434
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 136
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 2,941
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,189

 
  I need help trying to access an email box using msal
Posted by: FireStrike - Sep-12-2022, 09:10 PM - Forum: General Coding Help - No Replies

I am fairly new to python. I have been working on this for a few weeks. A previous employee used basic authentication to access email on our exchang..... More

Print this item

  [split] Please help with menu system
Posted by: dvejsa - Sep-12-2022, 07:47 PM - Forum: General Coding Help - Replies (4)

Yo guys,

I have come quite a bit in coding the crap of this menu but now im kinda stuck! :(
I wonder if there is anyone here that might help me ou..... More

Print this item

  Breaking Change for Python 3.7 - 3.12
Posted by: DeaD_EyE - Sep-12-2022, 05:35 PM - Forum: News and Discussions - Replies (9)

Breaking Change for Python 3.7 - 3.12

Since Python 3.10.7 a breaking change were i..... More

Print this item

  Sorting a dictionary
Posted by: v_mn - Sep-12-2022, 05:08 PM - Forum: General Coding Help - Replies (2)

I have a dictionary like:
[python]dic = {0: [('key1', 0.061),
('key2', 0.034),
('key3', 0.046),
('key4', 0.0593),
('key5', 0.091)],
1: ..... More

Print this item

  [SOLVED]PyQt5 tutorial
Posted by: Barrowman - Sep-12-2022, 04:06 PM - Forum: GUI - Replies (9)

I am trying to see if I want to use PyQt5 and am working my way through some tutorials. I haven't got very far yet.
This one does not show the toolti..... More

Print this item

  QAction bold part of the string argument
Posted by: malonn - Sep-12-2022, 12:58 PM - Forum: GUI - Replies (4)

My knowledge of PyQt6 is limited. I can't figure how to bold part of a string passed to a QAction. Other widgets support rich text, so it's easy wit..... More

Print this item

  precision & recall
Posted by: gracenz - Sep-12-2022, 12:42 PM - Forum: Data Science - Replies (1)

Hi all.

There are tons of examples about precision and recall online.
But I have difficulty explaining by connecting both metrics to the use case...... More

Print this item

  PyQt6 QAction with icon and string
Posted by: malonn - Sep-12-2022, 11:26 AM - Forum: GUI - Replies (2)

I cannot get a QAction initialized with a icon to show the text/string it's supposed to. Here's what I have (simple):
[python]write = QIcon('./imag..... More

Print this item

  PIL Image im.show() no show!
Posted by: Pedroski55 - Sep-12-2022, 09:17 AM - Forum: General Coding Help - Replies (2)

I had this problem before, but when I moved to a virtual environment, it went away.

Now, I can't do img.show() in either of my VENVs nor outside of..... More


Attached Files

Thumbnail(s)
   
Print this item

  Need Help: Convert .pcl file to .pdf file
Posted by: ManuRaval - Sep-12-2022, 06:01 AM - Forum: General Coding Help - Replies (6)

I need your help to know how to convert .pcl file to .pdf using python code. Can you please suggest the python library or code to convert .pcl file to..... More

Print this item

  Python crawler reports errors for some Chinese characters
Posted by: yliu315 - Sep-11-2022, 06:17 PM - Forum: Web Scraping & Web Development - No Replies

I have a python crawler that downloads Baidu index data for the search keywords I provide. It works for most Chinese characters. When it comes to some..... More

Print this item

  Folding in ATOM
Posted by: XavierPlatinum - Sep-11-2022, 05:34 PM - Forum: General Coding Help - Replies (5)

All of a sudden the folding doesn't work right in ATOM. I must have hit something or a hotkey I didn't mean to. Some things fold and others don't. ..... More

Print this item

  Add one to binary string
Posted by: uwl - Sep-11-2022, 04:25 PM - Forum: General Coding Help - Replies (2)

I have a string with the value '0101', it is a binary number. I wish to add one bit to it in order to obtain '0110'. Is someone able to help me accomp..... More

Print this item

  Need Help: FileNotFoundError:[Errno 2] No such file or directory
Posted by: python202209 - Sep-11-2022, 03:21 PM - Forum: General Coding Help - Replies (5)

I save a txt file with name 1pytest.txt and python the codes as a python file with name 1py.py in the same folder c:\Users\tiger\Downloads\

[python..... More


Attached Files

Thumbnail(s)
       
Print this item

  Word game revisited
Posted by: menator01 - Sep-11-2022, 07:42 AM - Forum: Code sharing - Replies (1)

hangman/word guessing game with tkinter

words.txt:
https://my-python.org/files/python/words.txt

[python]
#! /usr/bin/env python3
import rando..... More

Print this item

  (python) Can i get some help fixing a English to Morse translator? Pls
Posted by: AlexPython - Sep-11-2022, 04:40 AM - Forum: General Coding Help - Replies (8)

The problem that I have is that when I type a message for example (hello) instead of only translating those words the program would translate from the..... More

Print this item

  Help on ModuleNotFoundError
Posted by: JonWayn - Sep-11-2022, 03:45 AM - Forum: General Coding Help - No Replies

I cant seem to get import commands to work unless I'm working from the same folder as the file I want to import. What is puzzling is that sys.path lis..... More

Print this item

  df.to_csv('saved_data.csv')
Posted by: Led_Zeppelin - Sep-10-2022, 11:03 PM - Forum: General Coding Help - Replies (1)

I I want to save a dataframe to a csv file I would use:

df.to_csv('saved_data.csv')
or do I use

[code]
df4.to_csv('saved_da..... More

Print this item

  Logging in many submodules
Posted by: veysel - Sep-10-2022, 07:22 PM - Forum: General Coding Help - No Replies

Let's say I have 20 modules, and I want to log all messages in this modules.

For example

Project
-- package1
-- test1.py
-- test..... More

Print this item

Sad Find Longest streak for habits
Posted by: johnconar - Sep-10-2022, 05:30 PM - Forum: Homework - Replies (3)

HI
I am creating a habit tracking application and have to find the longest Streak for a given habit. for ex:- if a user swim for 5 straight days tha..... More

Print this item

Sad how to validate user input from database
Posted by: johnconar - Sep-10-2022, 05:21 PM - Forum: General Coding Help - Replies (3)

hi
i am creating a application i want to verify the user input name from my database.


These are my Two table

[python]
def create_tables(db):..... More

Print this item

  file transfer via python SFTP SCP
Posted by: mg24 - Sep-10-2022, 04:36 AM - Forum: General Coding Help - Replies (3)

Hi Team,

I am transfering csv files to cloud via SFTM transfer.
below code is works when i use subprocess.Popen


but doesnt work if i use run ..... More

Print this item

  Confused with Pygame documentation. (Newbie here)
Posted by: monkeydesu - Sep-10-2022, 04:07 AM - Forum: Game Development - Replies (3)

Sorry, I'm new and really confused by a few things with the tutorial I'm using. I've been looking for answers for like 3 hours. Please help!

[pytho..... More

Print this item

  Basic experiment with the bdb module
Posted by: Gribouillis - Sep-09-2022, 04:53 PM - Forum: Code sharing - Replies (2)

The standard module bdb deserves to be more widely known. I'm experimen..... More

Print this item

  Facing problem with Pycharm - Not getting the expected output
Posted by: amortal03 - Sep-09-2022, 04:35 PM - Forum: General Coding Help - Replies (1)

Hi there!
I am a beginner who is very interested in learning Python.
So, I have written the following code in pycharm.
[python]project = 'course ..... More


Attached Files

Thumbnail(s)
   
Print this item

  cv2 error
Posted by: dankochkurov - Sep-09-2022, 07:30 AM - Forum: Data Science - No Replies

Hello! I am doing object recognition on a windows system.
I have a code:
import cv2

[python]img = cv2.imread('Doroga_na_ylitce1.jpg')

classNam..... More


Attached Files

.py   real_time_object_detection.py (Size: 607 bytes / Downloads: 2)
Print this item

  help with adding duplicates elements together in a list
Posted by: 2ECC3O - Sep-09-2022, 03:03 AM - Forum: Homework - Replies (5)

given a list(just an example list, the actual test list is much MUCH longer)

d = [6610013121,4,6610021021,5, 6610021021,5,6610061121,5, 6610061121,5,..... More

Print this item

  Module not found question
Posted by: sighhhh12 - Sep-09-2022, 02:36 AM - Forum: General Coding Help - No Replies

Hello,
New to python,I'm used to Matlab and Arduino. I have 3.10.6 python,and just downloaded current version of spyder.
All I'm trying to do is read ..... More

Print this item

  Saving progress in a Python program to use later
Posted by: Led_Zeppelin - Sep-08-2022, 06:16 PM - Forum: General Coding Help - Replies (9)

I have a program that takes forty-five minutes to run. That makes it harder to debug.

It takes 40 minutes to get to the critical area. If I do not..... More

Print this item

  Compound if else statement
Posted by: Led_Zeppelin - Sep-08-2022, 12:42 PM - Forum: General Coding Help - Replies (8)

I am using the following statement in my program

[code]
df2["machine_status"] = df2["machine_status"].map(
lambda x: 0
if x == "NORMAL"..... More

Print this item

  GUI does not appear
Posted by: flash77 - Sep-08-2022, 12:29 PM - Forum: GUI - Replies (5)

Hi,
I'm using Pycharm and QT-Designer - I'm totally new to QT-Designer...

I did an example from a python book - it was about to create a GUI, in w..... More


Attached Files

.py   hauptdialog.py (Size: 6.27 KB / Downloads: 271)
.py   main.py (Size: 1.13 KB / Downloads: 254)
Print this item

  Sort of a general "best practices" question
Posted by: malonn - Sep-08-2022, 09:11 AM - Forum: News and Discussions - Replies (2)

Hi, I am writing an email client in Python (of course) 3. But, I wonder something. I want to remove security vulnerabilities from HTML emails. I kn..... More

Print this item

  How to assign a value to pandas dataframe column rows based on a condition
Posted by: klllmmm - Sep-08-2022, 06:07 AM - Forum: General Coding Help - No Replies

Hello,

I want to assign a value in "Value" column into a new column and up to all next empty rows until next value comes. My expected value is avai..... More

Print this item

  Error with pip install
Posted by: coffeeguy - Sep-07-2022, 11:16 PM - Forum: General Coding Help - Replies (1)

3rd week learning python. I am trying to pip install pyperclip. When I run this in the command prompt I am getting a permission error -

Permission..... More

Print this item

  Play Midi Keyboard using fluidsynth and soundfonts
Posted by: Axel_Erfurt - Sep-07-2022, 08:17 PM - Forum: Code sharing - No Replies

A GUI using PyQt5 for choosing soundfont and play midi keyboard with fluidsynth.

The (QProcess) command must be adapted accordingly for operating s..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Recovery of my lost solan... 1 hour ago winchestersam winchestersam General Codin...
  LOST OF INVESTMENT SCAM 2 hours ago goodvicent goodvicent News and Disc...
  [Tkinter] Too much space ... 5 hours ago RonR deanhystad GUI
  Another app idea - intera... Yesterday, 07:07 decuser Lenowell News and Disc...
  403 Error 09-15, 20:58 CaptainNewb snippsat Web Scraping ...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
Most views
  The best Prog... 575836
  Tutorial Requ... 497155
  Web Scraping ... 439843
  Newbie with P... 383552
  New Users Int... 365522
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+ 12087
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
winchestersam Today
goodvicent Today
XenonBlack Yesterday
tobey12 Yesterday
Lenowell Yesterday

User Panel Messages

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