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,961
» Latest member: carlbidwell
» Forum threads: 38,729
» Forum posts: 175,539

Full Statistics

Online Users
There are currently 65 online users.
» 0 Member(s) | 54 Guest(s)
Bing, AOL, Mojeek, Google, Applebot, Twitter, AOL

Latest Threads
what does % stand for in ...
Forum: General Coding Help
Last Post: carlbidwell
21 minutes ago
» Replies: 3
» Views: 1,729
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: Pedroski55
6 hours ago
» Replies: 3
» Views: 260
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Yesterday, 05:13 PM
» Replies: 4
» Views: 679
Is the interpreter that c...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:17 PM
» Replies: 1
» Views: 768
pdf file processing: how ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:14 PM
» Replies: 6
» Views: 5,011
Regarding pdf for PCEP an...
Forum: News and Discussions
Last Post: Biks
Yesterday, 09:50 AM
» Replies: 1
» Views: 1,656
Using Python to SSH and R...
Forum: Networking
Last Post: SprunkiRetake
Yesterday, 03:53 AM
» Replies: 1
» Views: 2,701
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:32 AM
» Replies: 0
» Views: 321
extracting data from a us...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-25-2025, 01:49 PM
» Replies: 2
» Views: 552
pip install requests does...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-24-2025, 02:48 PM
» Replies: 10
» Views: 30,017

 
  AttributeError: 'tuple' object has no attribute 'replace'
Posted by: linuxhacker - Jul-30-2020, 11:35 AM - Forum: GUI - Replies (7)

[python]from tkinter import *
import pygame
from tkinter import filedialog

root = Tk()
root.title('bynet mp3 player')

root..... More

Print this item

  Checking any key
Posted by: wallgraffiti - Jul-30-2020, 10:12 AM - Forum: Game Development - Replies (3)

So I'm making a game with my own animation system, and i'm using the keyboard module for key presses. I need to check if any key is pressed. No key in..... More

Print this item

  Issue referencing new instance from other class
Posted by: nanok66 - Jul-30-2020, 03:00 AM - Forum: General Coding Help - Replies (3)

Hi all,

I have a large program that I distilled down hopefully to the bare issue that I am having. I have a GUI button that starts a thread. This..... More

Print this item

  Comparing Items Different Data Frames With a WHILE Loop
Posted by: JoeDainton123 - Jul-30-2020, 12:16 AM - Forum: General Coding Help - Replies (1)

Hello all

I was wondering if anyone could help with comparing items in one data frame with an items in another data frame.

I have 2 x data frame..... More

Print this item

  import ?
Posted by: anne - Jul-29-2020, 10:20 PM - Forum: General Coding Help - Replies (9)

My first python application
I have some understanding of "import" - as similar to C "include".
I can see how it works in one project / application,..... More

Print this item

  converting scripts to be functions
Posted by: Skaperen - Jul-29-2020, 10:06 PM - Forum: News and Discussions - Replies (4)

i have many scripts that output text of what they find or figure out. i'd like to re-implement them as functions so other script can access the same ..... More

Print this item

  Dictionary question
Posted by: DrZ - Jul-29-2020, 08:37 PM - Forum: General Coding Help - Replies (2)

This will make my look like a nooby - I am, but I am going nuts - help!
The following snippet works exactly as I would expect. It iterates through a ..... More

Print this item

  print CPU temperature
Posted by: samuelbachorik - Jul-29-2020, 06:23 PM - Forum: General Coding Help - Replies (12)

Hello please can someone help me with example of code that prints out CPU temperature ?

Thank you a lot.

Print this item

  Help with isinstance command (very simple code)
Posted by: Laplace12 - Jul-29-2020, 06:04 PM - Forum: General Coding Help - Replies (2)

Hey!

I'm creating a simple function. The point would be to quit the code if n_files//n_pts is not an integer, however I can't get the condition to wo..... More

Print this item

  TXT to Excel columns
Posted by: Kristenl2784 - Jul-29-2020, 05:16 PM - Forum: General Coding Help - No Replies

Hello,

I have a txt file, so when I open it, everything is under 1 column. I want to convert to excel and break the data up and only use column 0,..... More

Print this item

  Unusual things to do with unittest/HTMLTestRunner
Posted by: AndyHolyer - Jul-29-2020, 02:43 PM - Forum: General Coding Help - No Replies

As mentioned in my previous test, I'm preparing a worksheet for undergraduates learning intorductory Python.

The worksheet will be a Google Colab d..... More

Print this item

  Tkinter delete values in Entries, when I'm changing the Frame
Posted by: robertoCarlos - Jul-29-2020, 02:06 PM - Forum: GUI - Replies (11)

First of all, I am sorry if I do not comply with the optimal formalities in my first question.

I have programmed a GUI with several windows with Tk..... More

Print this item

  os.list dir not working
Posted by: Kristenl2784 - Jul-29-2020, 01:41 PM - Forum: General Coding Help - Replies (8)

Hello,

For some reason this isn't working, it shows files list as 0 []. I have 6 .xlsx files in the input_dir. If I put the .xlsx file where the sc..... More

Print this item

  pytz: get integer utc offset from Olsen region/city
Posted by: h4tt3n - Jul-29-2020, 01:13 PM - Forum: General Coding Help - Replies (2)

Hello folks,

Newbie Python programmer here. I am just beginning to learn the pytz time zone module.

Can you please explain how I get an UTC off..... More

Print this item

  While loop keeps looping
Posted by: mcoliver88 - Jul-29-2020, 12:33 PM - Forum: General Coding Help - Replies (3)

Hi All,

Really new to Python, and doing some coding to get use/understand it. I am working on a program, that creates a random number and the user ..... More

Print this item

  Pillow on windows
Posted by: TamP - Jul-29-2020, 11:17 AM - Forum: General Coding Help - Replies (2)

I am running python 32bit 3.8.4 on Windows 10
I installed pillow with, pip install Pillow but python does not like this
and returns PIL not found
..... More

Print this item

  Plotting histogram of dataframe column
Posted by: Mark17 - Jul-29-2020, 10:34 AM - Forum: Homework - Replies (4)

I have the answer, but I don't understand it:

[Python]
from matplotlib import pyplot as plt
%matplotlib inline #Jupiter notebook
plt.style.use('..... More

Print this item

  Email Security with SendGrid - what are the risks?
Posted by: Runecaster - Jul-29-2020, 06:16 AM - Forum: Code Review - Replies (3)

Hi,

I download a bunch of documents on a monthly basis and then mail them out to specific individuals. I wrote a code to automate the process usin..... More

Print this item

  Function will not load from a module
Posted by: Pedroski55 - Jul-28-2020, 11:20 PM - Forum: General Coding Help - Replies (1)

I have a tkinter window, master2.py This window has 14 buttons. Click a button and another window opens. The windows all help me make html for my home..... More

Print this item

  Edit Open and Active Excel sheet in Python
Posted by: JoeDainton123 - Jul-28-2020, 09:42 PM - Forum: General Coding Help - Replies (1)

Hello community

This is Joe and i have decided to embark on learning how to code in Python after writing simple Macros in excel VB.

I am current..... More

Print this item

  [Tkinter] calling a new window from a tkinter window
Posted by: neuroprogrammer - Jul-28-2020, 09:19 PM - Forum: GUI - Replies (2)

I'm having trouble navigating nested windows calls with tkinter. The first window builds and executes well, with a window.mainloop() statement at at ..... More

Print this item

  Filter numbers (that start with 1)
Posted by: zinho - Jul-28-2020, 08:34 PM - Forum: Data Science - Replies (2)

Hi how filter number in column CFOP that which start with number 1xxx

I have a column CFOP with number type like this (Dtype int64)
CFOP
5927
54..... More

Print this item

  Chunking and Sorting a large file
Posted by: Robotguy - Jul-28-2020, 08:30 PM - Forum: Data Science - Replies (1)

Hi Everyone,

I am trying to read and sort a large text file (10 GBs) in chunks. The aim is to sort the data based on column 2. The following achiev..... More

Print this item

  Sending How to send private message with Flask-Socketio and Vue
Posted by: jonte - Jul-28-2020, 08:14 PM - Forum: Web Scraping & Web Development - No Replies

I am trying to send friend request to the clients with Flask-socketIO.
I have been following the instructions for the backend at https://www.youtube...... More

Print this item

  Managing dependencies with pipenv
Posted by: t4keheart - Jul-28-2020, 07:56 PM - Forum: General Coding Help - Replies (6)

So I had a project I was working on in a pipenv virtual environment. My computer took a crap and I had to re-install my OS. Luckily I had a copy of th..... More

Print this item

  How to limit the fie size in logging.
Posted by: maiya - Jul-28-2020, 05:48 PM - Forum: General Coding Help - Replies (2)

Hi All,

How to limit the file size and should start to write into a new file in logging. Much appreciated your help/suggestions on this. Thanks a l..... More

Print this item

  help ><
Posted by: ant2222 - Jul-28-2020, 05:47 PM - Forum: Homework - Replies (5)

im very new to python.

im trying to do a challenge.
there is that script that encrypts.

[python]def GGGGotate(lol):
bit = lol << 1
movebit =..... More

Print this item

  how to solve "a bytes-like object is required, not 'str'" error
Posted by: maiya - Jul-28-2020, 05:43 PM - Forum: General Coding Help - Replies (2)

Hi All,

Am getting the following error, while writing a string to process using write method in python 3, and it works very well for python 2.

I..... More

Print this item

  extract a dictionary from a string
Posted by: berc - Jul-28-2020, 05:36 PM - Forum: General Coding Help - Replies (4)

Hello everyone
Please help me solve my little problem.
Created an object in canvas tkinter (canvas.create_image(bot['coord'], image = bot['image'],..... More

Print this item

  Resolving YouTube search links
Posted by: pythonnewbie138 - Jul-28-2020, 04:20 PM - Forum: Web Scraping & Web Development - Replies (16)

The goal of the program is as follows:

  1. perform a youtube search per user input
  2. print the first 5 search results to the terminal for..... More

Print this item

  Python Error- TypeError: ('Params must be in a list, tuple, or Row', 'HY000')
Posted by: DarkCoder2020 - Jul-28-2020, 03:49 PM - Forum: General Coding Help - Replies (3)

I have a python error TypeError: ('Params must be in a list, tuple, or Row', 'HY000') but I don't know how to fix any suggestions my code is below:
..... More

Print this item

  invalid syntax when trying install package
Posted by: Omer_ - Jul-28-2020, 03:44 PM - Forum: General Coding Help - Replies (1)

I tried to install a requirements.txt but I keep getting this message: screen shot

I google and youtube sear..... More

Print this item

  TCP IP Comunication
Posted by: Agon - Jul-28-2020, 01:57 PM - Forum: Networking - Replies (2)

Hello, How can I send a command to a industrial device, through the TCP IP Socket Comunication. The command is HEX.
Thank you

Print this item

  Str problem, not counting
Posted by: Hann - Jul-28-2020, 01:34 PM - Forum: General Coding Help - Replies (7)

Hello! I need some help, I really can't understand something. Wall
I try to count how many times 'a', 'b' or 'c' is introduced in 10 repet..... More

Print this item

  string match
Posted by: Kristenl2784 - Jul-28-2020, 01:01 PM - Forum: General Coding Help - Replies (1)

Hello,

This is just a portion of the code, I thought I would only cut out what I'm currently working on. This part of the code is inside a for loo..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  what does % stand for in ... 21 minutes ago arbiel carlbidwell General Codin...
  Unable to resolve FileNot... 6 hours ago llarkin6 Pedroski55 General Codin...
  [Tkinter] how to export a... Yesterday, 17:13 RonR noisefloor GUI
  Is the interpreter that c... Yesterday, 13:17 helendamdam noisefloor General Codin...
  pdf file processing: how ... Yesterday, 13:14 Pavel_47 noisefloor General Codin...
  Regarding pdf for PCEP an... Yesterday, 09:50 P212 Biks News and Disc...
  Using Python to SSH and R... Yesterday, 03:53 justaguy SprunkiRetake Networking
  My goal to be hired worki... Yesterday, 00:32 GnomeSweetGnome GnomeSweetGnome News and Disc...
  extracting data from a us... 09-25, 13:49 Perry DeaD_EyE General Codin...
  pip install requests does... 09-24, 14:48 misodca DeaD_EyE General Codin...
  Creating a Mindmap progra... 09-23, 12:00 J_Miller Pedroski55 General Codin...
Most views
  The best Prog... 577083
  Tutorial Requ... 499915
  Web Scraping ... 440823
  Newbie with P... 384812
  New Users Int... 368970
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+ 12088
buran 8176
snippsat 7367
deanhystad 6896
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
carlbidwell Today
llarkin6 Yesterday
Xuitar Yesterday
SprunkiRetake Yesterday
GnomeSweetGnome 09-25

User Panel Messages

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