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,536
» Latest member: SAHIL54554
» Forum threads: 38,663
» Forum posts: 175,201

Full Statistics

Online Users
There are currently 78 online users.
» 1 Member(s) | 73 Guest(s)
Bing, Google, Yandex, Gribouillis

Latest Threads
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
1 hour ago
» Replies: 1
» Views: 30
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
2 hours ago
» Replies: 8
» Views: 55,184
A penny doubled every day...
Forum: Homework
Last Post: walterliz
3 hours ago
» Replies: 6
» Views: 678
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
3 hours ago
» Replies: 3
» Views: 1,188
While loop is terminating...
Forum: Homework
Last Post: walterliz
3 hours ago
» Replies: 3
» Views: 420
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
3 hours ago
» Replies: 3
» Views: 187
Unable to define function...
Forum: Homework
Last Post: walterliz
3 hours ago
» Replies: 2
» Views: 51
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 10:14 AM
» Replies: 6
» Views: 671
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
Yesterday, 09:36 AM
» Replies: 3
» Views: 162
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Yesterday, 01:32 AM
» Replies: 1
» Views: 114

 
  A question about setting up Python
Posted by: JanOlvegg - Feb-20-2023, 10:06 PM - Forum: General Coding Help - Replies (1)

Hi, I am new to Python development and have a question about setting up the python development and best practices. I currently have Python install on ..... More

Print this item

  Flask error sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint
Posted by: pythonpaul32 - Feb-20-2023, 07:34 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi all,

I have been trying to built a web app that's a book store for ecommerce website. I finally think I got the SQLAlchemy db working. Items an..... More

Print this item

  Save and Close Excel File
Posted by: avd88 - Feb-20-2023, 07:08 PM - Forum: General Coding Help - No Replies

Hello,

I'm not an expert in regards to coding but I've been coding for a bit and leverage that skillset in my day to day work.

Recently started lear..... More

Print this item

  Python3 - How to deny access to users without api key using localhost and postman
Posted by: Alan2023 - Feb-20-2023, 02:48 PM - Forum: Web Scraping & Web Development - No Replies

Hi everybody,
I am using python and Flask, and I need to deny access for not authorized users, users without an api key will not be allowed to access..... More

Print this item

  Merging multiple csv files with same X,Y,Z in each
Posted by: Auz_Pete - Feb-20-2023, 12:31 AM - Forum: General Coding Help - Replies (3)

As the name suggests, looking for help building a script to merge multiple csv files. Each file has; X, Y, Z and Value(W). I am wanting to match the x..... More

Print this item

  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: 288)
.xlsx   Sales2.xlsx (Size: 13.25 KB / Downloads: 279)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip3 install certifi fail... 1 hour ago rb9594 Pedroski55 General Codin...
  My first python game : Ti... 2 hours ago ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 3 hours ago esoyboy walterliz Homework
  Exercise on reading a chu... 3 hours ago Nit_Picker walterliz Homework
  While loop is terminating... 3 hours ago jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 3 hours ago aryasinner walterliz Homework
  Unable to define function... 3 hours ago gmonroe walterliz Homework
  RemoTe server operation w... Yesterday, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering Yesterday, 09:36 deanhystad deanhystad GUI
  processing nested json da... Yesterday, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt 07-13, 11:23 vmars316 Pedroski55 General Codin...
Most views
  The best Prog... 572689
  Tutorial Requ... 485721
  Web Scraping ... 437145
  Newbie with P... 380093
  Thread remain... 351375
Most reputation
buran 581
snippsat 507
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+ 12073
buran 8174
snippsat 7352
deanhystad 6857
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
SAHIL54554 Today
walterliz Today
rb9594 Today
homerpalmer Yesterday
aihancaiji31 Yesterday

User Panel Messages

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