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,933
» Latest member: randydurham
» Forum threads: 38,723
» Forum posts: 175,504

Full Statistics

Online Users
There are currently 55 online users.
» 1 Member(s) | 47 Guest(s)
Bing, Applebot, Google, Mojeek, AOL, AOL, DeaD_EyE

Latest Threads
NEED HELP TO RECOVER SCAM...
Forum: Data Science
Last Post: randydurham
1 hour ago
» Replies: 0
» Views: 9
THE MOST TRUSTWORTHY CRYP...
Forum: General Coding Help
Last Post: randydurham
1 hour ago
» Replies: 0
» Views: 8
Too much space between gr...
Forum: GUI
Last Post: RonR
3 hours ago
» Replies: 2
» Views: 871
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
6 hours ago
» Replies: 0
» Views: 47
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
11 hours ago
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,458
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 390
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 122
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,896

 
  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

  Why is this import running twice?
Posted by: extan1 - Feb-13-2023, 02:14 PM - Forum: General Coding Help - Replies (10)

I'm new to python and am trying to migrate my flask app to a package structure.

I have run.py sitting in a directory alongside a /myproject..... More

Print this item

  Setting with copy warning
Posted by: catlessness - Feb-13-2023, 02:07 PM - Forum: Data Science - Replies (5)

Why am I getting the "setting with copy" warning with the code below? Am I not doing what they suggested? And the result is wrong so I guess there is ..... More

Print this item

  My First App
Posted by: BCopeland64 - Feb-13-2023, 09:18 AM - Forum: Code Review - Replies (7)

Hello Everyone,

I have created a habit tracking app that I would love to get some feedback on. This is my first real OOP project in Python. If anyo..... More

Print this item

  floppys & diskettes
Posted by: DPaul - Feb-12-2023, 06:17 PM - Forum: Bar - Replies (29)

Hi,
Do we know of a python module that can do recovery of diskette & floppy files.
I recieved somebody's life's genealogy work on those media, and ..... More

Print this item

  Problem with writing an objective oriented python assignment
Posted by: mikikiki - Feb-12-2023, 02:54 PM - Forum: Homework - Replies (5)

Can someone help me while writing an assignment?

It is necessary to create a template for creating objects of the Student type. Each Student should..... More

Print this item

  Take the variable of a cursor class
Posted by: delcencen - Feb-12-2023, 02:24 PM - Forum: GUI - Replies (2)

Hello, i try diffrent things beffor call your help but that doesn't work.
I would like to get the x value in my main code.
[python]
from tkinter im..... More

Print this item

  Pandas read csv file in 'date/time' chunks
Posted by: MorganSamage - Feb-12-2023, 01:38 PM - Forum: Data Science - Replies (4)

I have written code to read a large time series data csv file (X million rows) using pandas read_csv() with chunking. That part of the code is working..... More

Print this item

  What's a good IDE and how would I type in and run this good once?
Posted by: flexman71 - Feb-11-2023, 11:13 PM - Forum: Board - Replies (2)

What's a good IDE and how would I type in and run this good once?

Print this item

  "TypeError: string indices must be integers, not 'str'" while not using any indices
Posted by: bul1t - Feb-11-2023, 05:39 PM - Forum: General Coding Help - Replies (2)

Hi guys! Currently trying to code my first program to automate an API, but got stuck at the moment where I transfer 2 arguments from earlier functions..... More

Print this item

  Sorting Data Returned From Database
Posted by: Timbo03 - Feb-11-2023, 03:32 PM - Forum: Homework - Replies (9)

I have a table in a database with about 1600 rows containing an ingredient name column with another column with all the recipe ids that ingredient is ..... More

Print this item

  Kivy UI language translation lib
Posted by: mikepy - Feb-11-2023, 12:16 PM - Forum: GUI - Replies (2)

Hi guys! Is there any library which I can use to translate my Kivy UI into any other language? In my case, I want to transform my UI language from Gre..... More

Print this item

  embed python script in C programm
Posted by: gucio321 - Feb-11-2023, 10:44 AM - Forum: General Coding Help - No Replies

Hi everyone!
I'm working on a project written in GO and some time ago our team was made to use a python module (as it was the only available). Go uses..... More

Print this item

  I cannot able open a file in python ?
Posted by: ted - Feb-10-2023, 09:39 PM - Forum: General Coding Help - Replies (5)

Myself is ted,
i am trying open a text file in python using open("filename.txt") but i am seeing FileNotFoundError: [Errno 2] No s..... More


Attached Files

.py   1.py (Size: 47 bytes / Downloads: 278)
Print this item

  Looking to automate updating a spreadsheet with image from email
Posted by: cubangt - Feb-10-2023, 03:51 PM - Forum: General Coding Help - Replies (2)

ok, so at work we have an email that is sent out daily each morning.. in this email the body contains a image of a graph.(screenshot)
Within teams / ..... More

Print this item

  Mysql Workbench table not updated
Posted by: CatBall - Feb-10-2023, 03:19 PM - Forum: General Coding Help - Replies (2)

My code:
(I want "pathology" table in MySQL Workbench to be updated when clicking on the "update" button.)
[python]
def update(self):
..... More

Print this item

  kivy: how to create a widget that represents a circled letter?
Posted by: Coricoco_fr - Feb-10-2023, 03:11 PM - Forum: GUI - Replies (1)

Hello,
[kivy]
how to create a widget that represents a circled letter?
I want to be able to move this widget to my root widget as I please. However..... More

Print this item

  Compare 2 files
Posted by: tslavov - Feb-10-2023, 02:44 PM - Forum: General Coding Help - Replies (2)

What is the Script in Python to
Print Field = 2 of "File1.txt" and Field = 4 of "File2.txt"
When Field = 1 is "A4" of "File1.txt" is equal Field =..... More

Print this item

  PyQT Problems with multiple fonts
Posted by: DrakeSoft - Feb-10-2023, 02:21 PM - Forum: GUI - Replies (3)

I have a PyQT program that saves a file in HTML format.

It uses the QFontComboBox and on a change in selection I set the editor (QTextEdit) to matc..... More

Print this item

  convert string to float in list
Posted by: jacklee26 - Feb-10-2023, 10:43 AM - Forum: General Coding Help - Replies (6)

HI
Do anyone know how to convert element in the list to float, and write them into excel?
My code will read a file and write it into excel, attached ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Difference one column in a dataframe
Posted by: Scott - Feb-10-2023, 08:41 AM - Forum: General Coding Help - No Replies

Hi everyone,

I have a dataframe (df2) with about 5 columns and I want to difference one column and keep the other columns. Do you know how I do tha..... More

Print this item

  Hyperlinks
Posted by: DPaul - Feb-10-2023, 07:06 AM - Forum: Bar - Replies (6)

This time I have been given a truckload of pdfs.
They are scans of historical articles. Quality is good, OCR is OK.
I can search the texts programatic..... More

Print this item

  How to apply function lower() to the list?
Posted by: Toltimtixma - Feb-10-2023, 06:57 AM - Forum: General Coding Help - Replies (2)

Hi, everyone!
I have a list with the names of users:
users = ['Timoteusz', 'MAD', 'GaMer', 'ToXIC',....]
All the names are in different letter cas..... More

Print this item

  How to use xmlrpc from flrig?
Posted by: mamoman - Feb-09-2023, 09:40 PM - Forum: General Coding Help - Replies (3)

Hi
I am new to python and am looking for a simple example on how to communicate with a program called FL-RIG (Ham radio control) in XMLRPC.

The FL..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  NEED HELP TO RECOVER SCAM... 1 hour ago randydurham randydurham Data Science
  THE MOST TRUSTWORTHY CRYP... 1 hour ago randydurham randydurham General Codin...
  [Tkinter] Too much space ... 3 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 6 hours ago tobey12 tobey12 News and Disc...
  Another app idea - intera... 11 hours ago decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
Most views
  The best Prog... 575818
  Tutorial Requ... 497086
  Web Scraping ... 439831
  Newbie with P... 383528
  New Users Int... 365403
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 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
randydurham Today
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday

User Panel Messages

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