Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,412
» Latest member: sellbot
» Forum threads: 38,826
» Forum posts: 176,046

Full Statistics

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

Latest Threads
Possible bug found, pleas...
Forum: General Coding Help
Last Post: noisefloor
5 hours ago
» Replies: 8
» Views: 240
Code failing to ask input...
Forum: Homework
Last Post: noisefloor
Yesterday, 08:12 PM
» Replies: 2
» Views: 351
Data Science
Forum: Data Science
Last Post: OtiliaGen
Jan-04-2026, 10:20 AM
» Replies: 4
» Views: 3,355
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Jan-02-2026, 12:38 PM
» Replies: 2
» Views: 482
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Jan-02-2026, 12:32 PM
» Replies: 29
» Views: 16,620
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 494
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 441
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,251
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 287
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,683

 
  ImportError: No module named
Posted by: coltson - Nov-13-2020, 06:43 PM - Forum: General Coding Help - Replies (3)

Hello. I am facing the following error messages:

[error]Traceback (most recent call last):
File "optimizer.py", line 8, in <module>
import ..... More

Print this item

  .gif as avatar?
Posted by: michael1789 - Nov-13-2020, 05:34 PM - Forum: Board - Replies (3)

Is there anyway for one to upload a .gif animation as avatar? If not is it hard to make possible? I want to make my avatar look like it is flying. I..... More

Print this item

  Writing to file in a specific folder
Posted by: evapa8f - Nov-13-2020, 04:41 PM - Forum: General Coding Help - Replies (5)

Having trouble writing to a file in a specific directory. I'm using a loop to capture info from multiple devices so the actual filename is represente..... More

Print this item

  tkinter global variable
Posted by: chalao_adda - Nov-13-2020, 02:51 PM - Forum: GUI - Replies (6)

Hello,

I am trying to read a file from askopenfilename outside the function. I am getting blank file name. What am I doing wrong? Here is my code...... More

Print this item

  How to Filter a Dataframe
Posted by: mfkzolo - Nov-13-2020, 12:59 PM - Forum: Data Science - Replies (4)

I have this data
[quote]Active CreateDate CreateTime UserName S_ID
TRUE 2020-11-03 00:00:00 12:04:29 M001AE8 []
TRUE 2020-11-03 00:00:00 12:04:29 M..... More

Print this item

  Troubling question
Posted by: charlottelol - Nov-13-2020, 10:49 AM - Forum: Homework - Replies (1)

Hello everyone,

I need to find out how to see if the users answer is correct. In this, the answers are randomly generated and the user has to input..... More

Print this item

  matrix convert
Posted by: abbaszandi - Nov-13-2020, 10:13 AM - Forum: General Coding Help - Replies (2)

I want to convert a to b

a=[1,2,3,4,5,...,377]
b=[img]https://s17.picofile.com/file/8413809234/photo_%DB%B2%DB%B0%DB%B2%DB%B0_%DB%B1%DB%B1_%DB%B1..... More

Print this item

  Usage of format()
Posted by: cheers100 - Nov-13-2020, 09:37 AM - Forum: General Coding Help - Replies (2)

Hello,

The following code is about web spider, it is from a python tutorial, [b]but my question is irrelevnat to web spider, but a general question..... More

Print this item

  Do you find this tech stack search helpful?
Posted by: lisajt - Nov-13-2020, 09:00 AM - Forum: Jobs - No Replies

Hi Python Devs!

We have worked very hard in the past years to create a completely new kind of job search to help tech/webdevelopment people to find..... More

Print this item

  I have an index error inline 76 but I write the program in a way that cant reach tha
Posted by: abbaszandi - Nov-13-2020, 07:22 AM - Forum: General Coding Help - Replies (2)

##I have an index error inline 76 but I write the program in a way that cant reach that index
[python]
import numpy as np
h=500+29/2
kc=50
ks=5..... More

Print this item

  Creating list of lists from generator object
Posted by: t4keheart - Nov-13-2020, 04:12 AM - Forum: General Coding Help - Replies (1)

I have a generator object 'results', which when looping through returns a list of dictionaries. I'm trying to convert this into a list of lists, so I ..... More

Print this item

  Waiting and listening
Posted by: test - Nov-13-2020, 03:18 AM - Forum: General Coding Help - Replies (2)

Hello!
I have been writing a program which listens for any keyboard input by the user. If specific combinations are input, certain tasks are performe..... More

Print this item

Question Use radiobuttons to determine a total charge
Posted by: SalsaBeanDip - Nov-13-2020, 02:07 AM - Forum: GUI - Replies (2)

Hello. I am trying to write a GUI program that calculates total ticket prices. It allows the user to select a ticket category from a set of radiobutto..... More

Print this item

  How to Locate an Attribute's Parent Object?
Posted by: calvinsomething - Nov-12-2020, 09:30 PM - Forum: General Coding Help - Replies (5)

Hey! So I'm using Tkinter to make a GUI for Sudoku; just as a project to get better. Throughout my functions I am passing a variable for the sudoku sq..... More

Print this item

  search for more than one word using lambda
Posted by: illmattic - Nov-12-2020, 08:30 PM - Forum: General Coding Help - Replies (2)

Hello,

I have this code:

sga = list(filter(lambda x: 'costs' in x, income.index))
trying to grab all index labels with the wor..... More

Print this item

  frustrating practice
Posted by: taubee - Nov-12-2020, 07:46 PM - Forum: Homework - Replies (9)

Morning,

I'm old and I'm new to python. I am in a course that is using "Starting Out with Python" by Tony Gaddis and I have run into a problem w..... More

Print this item

  cx_Oracle.DatabaseError: Error while trying to retrieve text from error ORA-01804
Posted by: rajeshparadker - Nov-12-2020, 07:34 PM - Forum: General Coding Help - No Replies

Hi All,

I am getting oracle connectivity error while connecting from python command prompt or by using editor. Able to connect to Oracle by using s..... More

Print this item

  Tkinter
Posted by: Tsushida - Nov-12-2020, 06:44 PM - Forum: GUI - Replies (2)

So i just started programming in python in VScode. I successfully installed tkinter, but after trying to create a window vscode ditched me and said th..... More

Print this item

  python pandas
Posted by: andreas30298 - Nov-12-2020, 05:45 PM - Forum: Homework - Replies (2)

Hi

how can i get the dates with my max value?
and after find the avrage value of the list.

then modify the list to only show the days(01.07.2019)w..... More

Print this item

  shuffle a nested list
Posted by: giorgosmarga - Nov-12-2020, 04:09 PM - Forum: General Coding Help - Replies (11)

Hello can someone explain to me why this code doesnt work out
[python]
import random
def randomlist(nums):
emptylist = []
for j in range(..... More

Print this item

  Run some subrocesses at a time
Posted by: OmegaDoom - Nov-12-2020, 03:47 PM - Forum: General Coding Help - No Replies

Hello.

Lets say we need to run 100-1000 subprocesses to do some work. Each subprocess is some kind of app, for example zip.

it is not good to sp..... More

Print this item

  Keep Application running after Python script ends
Posted by: PEGylated_User - Nov-12-2020, 03:27 PM - Forum: General Coding Help - No Replies

I have a program that creates label templates in Microsoft Word and I would like the created word document to remain open after the code runs, but it ..... More

Print this item

  How to use su in a script
Posted by: edlentz - Nov-12-2020, 02:56 PM - Forum: General Coding Help - Replies (3)

I have a script that will run some system commands and they need root level access. I do not want to give the user root access. I want the user to j..... More

Print this item

  How to split dataframe object rows to columns
Posted by: Mekala - Nov-12-2020, 02:31 PM - Forum: General Coding Help - Replies (1)

Hi,
I have below data frame (multiple rows): I want to split rows at dilimiter to columns


[python]df_obj:
20;12;AA;2020/11/05 10:23:13;2020/11/..... More

Print this item

Sad Problem with Unittest
Posted by: mhanusek - Nov-12-2020, 01:48 PM - Forum: General Coding Help - Replies (1)

Hello!
I have a problem with calling method - assertTrue.

My code:
[python]
#!/usr/bin/env python3

import unittest

class MyTest(unittest.T..... More

Print this item

  broadcasting euclidean distance error
Posted by: glennford49 - Nov-12-2020, 11:26 AM - Forum: General Coding Help - Replies (1)

i have this code, i tried to calculate euclidean distance on each element on list1
it throws an error if list1 has 2 elements, any idea on this?
[p..... More

Print this item

  Double click on touch screen issue
Posted by: ATARI_LIVE - Nov-12-2020, 10:36 AM - Forum: General Coding Help - Replies (4)

When I use bind(<Double-Button-1>, run_function) on the TOUCHSCREEN.

the mouse does works but not touchscreen due fat-fingers.

The double click ..... More

Print this item

  Select a value from Dataframe
Posted by: mfkzolo - Nov-12-2020, 09:02 AM - Forum: General Coding Help - Replies (2)

Hi,

How do I select a value from a column in my df, a value that start with a character, small or capital followed by numbers.

This is my code ..... More

Print this item

  Saving text file with a click: valueerror i/o operation on closed file
Posted by: vizier87 - Nov-12-2020, 08:32 AM - Forum: General Coding Help - Replies (5)

Hi guys, first post here. I hope I'm in the right place, since it seems to be more of a Python issue than a PyQt issue.

I've been trying to import ..... More

Print this item

  Flask files running order
Posted by: TomasAm - Nov-12-2020, 08:19 AM - Forum: General Coding Help - No Replies

I have blog.py inside my blog folder for Flask application.

blog.py contains:

from app import app
Inside [b]blo..... More

Print this item

  Can we access instance variable of parent class in child class using inheritance
Posted by: akdube - Nov-12-2020, 08:07 AM - Forum: General Coding Help - Replies (3)

I am pasting my code below:-

[python]
class A:
def __init__(self,i=100):
self.i=100


class B(A):
def __init__(self,j=0): ..... More

Print this item

  Python School Project
Posted by: andreas30298 - Nov-12-2020, 05:31 AM - Forum: Homework - Replies (2)

Woking on a School Project and i'm a bit stuck.
anyone got some suggestion how i can solve this?

with regards Andreas

task:
1: add alle the va..... More

Print this item

  IndexError in Array while trying to do machine learning
Posted by: Mariaoye - Nov-12-2020, 12:35 AM - Forum: Data Science - No Replies

Hi All,

I am trying to predict income(70000+) based on specific categorical fields (Sex and Highest Cert,dip,deg) based on python code below.

I..... More

Print this item

  python nonetype variable
Posted by: fabiodurgante - Nov-12-2020, 12:29 AM - Forum: General Coding Help - Replies (5)

hello I have the following in a threaded function executes several at the same time
profit is global variable

profit += result
profit = round (pr..... More

Print this item

  Need learning resources for Python distribution
Posted by: gretchenfrage - Nov-11-2020, 10:06 PM - Forum: General Coding Help - Replies (2)

Hi everyone. I basically need to get a somewhat deep understanding of how distribution works in python, particularly "eggs", sdists, and virtual envir..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Possible bug found, pleas... 5 hours ago Hassher noisefloor General Codin...
  Code failing to ask input... Yesterday, 20:12 Phoenix_Narukami noisefloor Homework
  Data Science 01-04, 10:20 Oshadha OtiliaGen Data Science
  a function to watch files 01-02, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... 01-02, 12:32 Pavel_47 OtiliaGen General Codin...
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
Most views
  The best Prog... 580610
  Tutorial Requ... 521170
  Web Scraping ... 442863
  New Users Int... 387468
  Newbie with P... 387081
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12117
buran 8197
snippsat 7398
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
sellbot Today
Frankbeamn Today
jemmee Today
Einhell Today
engrabsnasir Today

User Panel Messages

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