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,471
» Latest member: iloveimg3
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 677 online users.
» 1 Member(s) | 673 Guest(s)
Bing, Google, Yandex, Pedroski55

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 226
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 179
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,354
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 130
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 431
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,241
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 382
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 466
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 1,014
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 295

 
  ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]certificate verify fail
Posted by: byronbonkers - Feb-19-2023, 10:13 PM - Forum: Networking - No Replies

[python]
import time
import logging
import paho.mqtt.client as mqtt
from OpenSSL import SSL
import os
import ssl

log = logging.getLogger('Rem..... More

Print this item

  input variable choice
Posted by: MCL169 - Feb-19-2023, 06:54 PM - Forum: General Coding Help - Replies (7)

I'm using simple ideas and theories to practice coding. I'm simply trying to except a input from user that returns a variable string. I want the user ..... More

Print this item

  Windows 10: AttributeError: 'WM_PenProvider' object has no attribute 'hwnd'
Posted by: mikepy - Feb-19-2023, 03:47 PM - Forum: GUI - Replies (1)

Hello, when I execute my kivy program I get the following error message:
[quote]AttributeError: 'WM_PenProvider' object has no attribute 'hwnd'[/quote..... More

Print this item

  method call help
Posted by: sollarriiii - Feb-19-2023, 03:14 PM - Forum: General Coding Help - Replies (6)

bonjour,
Je reçois une résultat non qui j'attend, et je ne sais pas pourquoi ?
quand j'appel la méthode pricing_mac(self): de class HardwareGeek(E..... More

Print this item

  KEY input....
Posted by: ATARI_LIVE - Feb-19-2023, 01:47 PM - Forum: General Coding Help - Replies (5)

I am doing code to read a key is pressed.

The KEYBOARD module is works but it will read keys even I use another window-box which I do not want.

..... More

Print this item

  How to access text files, hidden behind 'm3u8' resources
Posted by: Pavel_47 - Feb-19-2023, 11:06 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello,

yt-dlp downloaded doesn't differentiate between 2 subtitles of the same languages: when specifying language code (e.g. 'fr') it takes by def..... More

Print this item

  how hard would it be to integrate CPython in a web browser?
Posted by: Skaperen - Feb-19-2023, 03:18 AM - Forum: News and Discussions - Replies (1)

how hard would it be to integrate CPython in a web browser? how secure could be made to run?

Print this item

  Read text file, modify it then write back
Posted by: Pavel_47 - Feb-18-2023, 10:35 AM - Forum: General Coding Help - Replies (5)

Hello,

The goal is to read text file, modify the content, then write this modified content to file:
Here is code that doesn't work:
[python]impor..... More

Print this item

Information Python for web apps - where to start?
Posted by: a1ch3myst - Feb-17-2023, 09:16 PM - Forum: Web Scraping & Web Development - Replies (6)

Hi, I have some basic programming knowledge (can read syntax, and understand functions and statements) I have never programmed in Python so I'm lookin..... More

Print this item

  How to always select the item in the first column when a row is selected
Posted by: DrakeSoft - Feb-17-2023, 07:32 PM - Forum: GUI - Replies (1)

I am using the code below to try and understand how to be able to select the data in the first column of a treeview irrespective of where in the row I..... More

Print this item

  Pandas AttributeError: 'DataFrame' object has no attribute 'concat'
Posted by: Sameer33 - Feb-17-2023, 02:05 PM - Forum: General Coding Help - Replies (5)

Dears

I am trying to merge multiple excel files into a single file with Python, but I get an error and I can't fix it.


My Code is
[python]
i..... More


Attached Files

.xlsx   Sales1.xlsx (Size: 13.14 KB / Downloads: 268)
.xlsx   Sales2.xlsx (Size: 13.25 KB / Downloads: 261)
Print this item

  Launch Python IDLE Shell from terminal
Posted by: Pavel_47 - Feb-17-2023, 01:50 PM - Forum: General Coding Help - Replies (5)

Hello,
Searching the web I found a suggestion to type idle3 in the terminal.
Tried, doesn't work (neither idle, BTW).
Normally I laun..... More

Print this item

  Listing directories (as a text file)
Posted by: kiwi99 - Feb-17-2023, 05:52 AM - Forum: General Coding Help - Replies (1)

Is there a simple alternative to os.listdir that returns a text file of image sizes (height, width, MB) as well as document name?

I wondered if th..... More

Print this item

  choose checkbox
Posted by: devilonline - Feb-16-2023, 11:48 PM - Forum: GUI - Replies (1)

Hi, I have this code with pyqt5:

[python]
elif (content1 == "next"):
todos = ["one" , "two" , "three" , "four", "five"]
..... More

Print this item

  Trying to access excel file on our sharepoint server but getting errors
Posted by: cubangt - Feb-16-2023, 08:11 PM - Forum: General Coding Help - No Replies

So initial error was a forbidden error. I then tried using sharepy and it says it cant find it.. When i try to install it using conda, it fails.
I ..... More

Print this item

  Tkinter object scope
Posted by: riversr54 - Feb-16-2023, 07:40 PM - Forum: GUI - Replies (6)

New to Python but really new to Tkinter...

Working on a simple app that has multiple child pages and one 'home' page that dispatches to the 'child'..... More

Print this item

  Grouping Data based on 30% bracket
Posted by: purnima1 - Feb-16-2023, 07:14 PM - Forum: Data Science - No Replies

Hello All,

I am sharing use case which I am not sure falls under this forum or not , so need guidance for that. I only have basic knowledge of pyt..... More

Print this item

  use of escape character in re.sub and find
Posted by: WJSwan - Feb-16-2023, 04:48 AM - Forum: General Coding Help - Replies (1)

Where can I find documentation so that I can learn how to use escape characters in re.sub and with find method correctly?

I tend to find that I alw..... More

Print this item

  defining function in a functio and sharing variables
Posted by: Skaperen - Feb-16-2023, 02:28 AM - Forum: News and Discussions - No Replies

i can def foo(): within the definition of bar(). then foo() can access bar()'s va..... More

Print this item

Photo exe created by pyinstaller only works in the dist directory
Posted by: dee - Feb-15-2023, 10:21 PM - Forum: General Coding Help - Replies (7)

I want to create an exe for a user to run the Python program. In Visual Studio Code Terminal I typed PS C:\Users\dee.dee> pyinstaller "C:\Users\dee.de..... More

Print this item

  What is the Target value in this GridSearchCV problem?
Posted by: Led_Zeppelin - Feb-15-2023, 07:32 PM - Forum: General Coding Help - No Replies

I have a question on the following document where I will now post its link.

https://becominghuman.ai/predict-pump-fa...ns-using-d..... More

Print this item

  Program doesnt return beginning
Posted by: bilisim19 - Feb-15-2023, 05:45 PM - Forum: General Coding Help - Replies (2)

num=int(input("age:" ))

if num>18:
    print("old")
else:
   print("young")
When this code is first running there is no pr..... More

Print this item

  unittest generates multiple files for each of my test case, how do I change to 1 file
Posted by: zsousa - Feb-15-2023, 05:34 PM - Forum: General Coding Help - No Replies

I've build a framework using the data driven approach. Basically, a test case represents 1 file and each file can have several assertion points.
Curr..... More

Print this item

  Unsure why module is not working
Posted by: garynewport - Feb-15-2023, 03:21 PM - Forum: General Coding Help - No Replies

I am trying to run a piece of code acquired from someone online (trusted source). I run the program and I get the following error...

[error]
C:\Us..... More

Print this item

  How do I instantiate a class with **kwargs?
Posted by: palladium - Feb-15-2023, 02:17 PM - Forum: General Coding Help - Replies (6)

Consider the following:

[code]
class TestClass():

def __init__(self, param_1 , **kwargs):
self.param_1 = param_1
#?? how..... More

Print this item

  tkinter.TclError: can't invoke "canvas" command
Posted by: cybertooth - Feb-15-2023, 10:16 AM - Forum: GUI - Replies (8)

I am getting this tcl error and unable to solve it. Here is the full exception. This happens when I exit the program
[error]Exception in Tkinter callb..... More

Print this item

  I have a question...
Posted by: Szabelka - Feb-14-2023, 08:58 PM - Forum: General Coding Help - Replies (4)

Is is possible to do something like splitting a group? Like if I wanted to deal cards equally to 2 players (26 cards for a person) how is that possibl..... More

Print this item

  The command python3 -m venv venv does not correctly set sys.path
Posted by: echeadle - Feb-14-2023, 04:44 PM - Forum: News and Discussions - Replies (2)

I am running POP_OS 22.04 and Python 3.10.6
If I run the following commands:
[output]cd
mkdir testenv
cd testenv
python3 -m venv venv
source ve..... More

Print this item

  selenium can't find a file in my desk ?
Posted by: SouAmego22 - Feb-14-2023, 03:21 PM - Forum: General Coding Help - No Replies

i want to upload a file from my desk to an specific XPATH in a page web (buttom uplaod).

after using this code in the attachement :

the file i..... More


Attached Files

Thumbnail(s)
       
Print this item

  r+ mode in files
Posted by: grkiran2011 - Feb-14-2023, 02:03 PM - Forum: General Coding Help - Replies (5)

Hi Viewer,

I know r+ mode is used for reading and writing to a file. What I find strange is as soon as I open the file and then write to the file ..... More

Print this item

Question Virtual Environment (using VS Code)
Posted by: Ashcora - Feb-14-2023, 11:29 AM - Forum: General Coding Help - Replies (4)

Hello community,

I am trying to figure out which is the best way to use virtual environments…as there is mamba, conda, miniconda, anaconda and venv..... More

Print this item

  using re.search
Posted by: WJSwan - Feb-14-2023, 07:05 AM - Forum: General Coding Help - Replies (3)

If I use the re.search method:

[python]
pattern = r"\\f (.+)\\fr(.+)\\fk(.+)\\ft(.+)\\\+xt(.+)\\\+xt\*(.+)\\f\*"
fnote=re.search(patt..... More

Print this item

  OneLiner question
Posted by: tester_V - Feb-14-2023, 02:29 AM - Forum: General Coding Help - Replies (7)

Greetings!
I'm trying to shorten my code and I'd like to use OneLiners.
I Googled it and it is not that clear how to use it.
Here is the code I'm t..... More

Print this item

  Division questions
Posted by: Dionysis - Feb-13-2023, 10:27 PM - Forum: General Coding Help - Replies (5)

I'm new to Python and also refreshing my math...
I have two questions:
- Simple division (/) gives floats even if the result can be a round integer...... More

Print this item

  Selenim Help
Posted by: quarinteen - Feb-13-2023, 03:43 PM - Forum: General Coding Help - Replies (1)

Hello I am having an issue getting some Selenium code to work. I am trying to grab some data from a page that requires 2FA. I am trying to use webdriv..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 565037
  Tutorial Requ... 455207
  Web Scraping ... 429997
  Newbie with P... 365842
  Thread remain... 338148
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
iloveimg3 Yesterday
ishaD Yesterday
fitobar43 Yesterday
AymanNassar 05-16
Shailesh 05-15

User Panel Messages

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