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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,582

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 52 Guest(s)
Apple, Google, Bing

Latest Threads
print does not open conso...
Forum: General Coding Help
Last Post: Axel_Erfurt
1 hour ago
» Replies: 4
» Views: 117
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
8 hours ago
» Replies: 1
» Views: 75
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,539
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 103
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 225
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,053
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 466
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,096
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,173
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 854

 
  Sutil.copytree, I'm getting File Exists.
Posted by: Mike Ru - Oct-27-2019, 11:58 PM - Forum: General Coding Help - Replies (1)

I have a folder 'target' with other folders that have folders called 'env'. I am trying to copy all files/directories from 'target' to 'backup_folder'..... More

Print this item

  Help converting MATLAB triple-for loop to Python
Posted by: davlovsky - Oct-27-2019, 11:30 PM - Forum: General Coding Help - Replies (1)

Hello, I have the following code in MATLAB which I am trying to convert to python, using numpy.

[python]M = zeros(100,100);

imageFiles = dir('*...... More

Print this item

  retrieve group of lines
Posted by: knob - Oct-27-2019, 11:04 PM - Forum: General Coding Help - Replies (1)

Good evening !
Would be possible to read a file (around 80k lines) and every time the word XYZ appears,
the code would retrieve this line, and ..... More

Print this item

  setup() from turtle module not working
Posted by: bobfat - Oct-27-2019, 09:13 PM - Forum: General Coding Help - Replies (7)

Hello,

I am trying to make changes in the turtle graphics window size. I tried using the screensize() and the setup() methods, but no success. The ..... More

Print this item

  Odd Syntax Errors
Posted by: ichabod801 - Oct-27-2019, 08:38 PM - Forum: News and Discussions - Replies (6)

So I updated some code I've been using for a while. I went to test the new code and got the following syntax error:

[output]
File "minilog.py", lin..... More

Print this item

  refactoring
Posted by: kerzol81 - Oct-27-2019, 07:48 PM - Forum: Homework - Replies (8)

Hi all, I dont like my implementation of a cat-human age converter, could you please suggest a a more pythonic approach?

[python]
"""
First, ..... More

Print this item

  Super newbie trying to understand certain concepts
Posted by: bbragg311 - Oct-27-2019, 04:43 PM - Forum: General Coding Help - Replies (5)

I am trying to understand the concept of what output this bit of code produces and why...

[python]
1st = [1, 2, 3]
for v in range(len(1st)):
..... More

Print this item

  complete newbie, trying to tweak some code
Posted by: notarobot - Oct-27-2019, 03:57 PM - Forum: General Coding Help - Replies (6)

Hi there,

I am new to python and coding generally. I have some ideas for generative art projects but before tackling that I thought I would start w..... More

Print this item

  TypeError: 'int' object is not callable
Posted by: Boa - Oct-27-2019, 01:11 PM - Forum: General Coding Help - Replies (2)

I get the following error with my player of course not loading. Any help appreciated.

line 32, in <module>
if event.type == pygame.QUIT():
T..... More

Print this item

  Problem installing instaloader
Posted by: ledgreve - Oct-27-2019, 12:29 PM - Forum: General Coding Help - Replies (21)

Hello everyone! I am completely new at Python (and programming in general), so please bear with me: I don't know most of the terminology and so on. I ..... More

Print this item

  BeautifulTable print header multi times
Posted by: evilcode1 - Oct-27-2019, 11:49 AM - Forum: General Coding Help - Replies (11)

hello all im trying to code a tool to check the status for all websites in server IP : code :
[python]# encoding=utf8
import sys
reload(sys)
sys...... More

Print this item

  [split] how to print unicode in python?
Posted by: Frank57 - Oct-27-2019, 10:50 AM - Forum: General Coding Help - Replies (4)

Hi, I have just started learning to program and I am using Python 3. I am learning from a book "Python in Easy Steps" by Mike McGrath all was going we..... More

Print this item

  QGraphicsObject at Mouse Position
Posted by: _meshman_ - Oct-27-2019, 10:10 AM - Forum: GUI - Replies (2)

Hi, can anyone help with a MouseMoveEvent position to QGraphicsView mapping problem? I want to implement a Paint Brush, thus want to draw a circle aro..... More

Print this item

  Get sum of base DLL address and its offsets?
Posted by: freezydi - Oct-27-2019, 08:43 AM - Forum: Homework - No Replies

Hi! Sorry if I missed the section)
I don't know much about С++ and ctypes, please don't kick me right away)
If this question was already asked - sorry..... More

Print this item

  autofill entries from a saved .txt file
Posted by: scottm33 - Oct-27-2019, 05:25 AM - Forum: GUI - Replies (1)

I just started learning python today, let alone any programming language. I have been watching videos and reading forums online for the last 15 hours...... More

Print this item

  Breaking While Loop
Posted by: JustWonderful - Oct-27-2019, 12:26 AM - Forum: General Coding Help - Replies (4)

Hello,

I have potentially eight sequential ifs I need to test for, so instead of nesting eight if statements I thought to use a while loop.
My goa..... More

Print this item

  Problem with readlines() assignment
Posted by: Sunioj - Oct-26-2019, 11:17 PM - Forum: General Coding Help - Replies (5)

Hello there,
I have an assignment which I need to make a loop that reads each line in a text file and then run a condition against the line of text. ..... More

Print this item

  Trying to understand classes
Posted by: menator01 - Oct-26-2019, 08:25 PM - Forum: General Coding Help - Replies (7)

I'm trying to get my head wraped around classes any help would be great.
Example code
[python]
class Game():
def __init__(self):
# code th..... More

Print this item

  keyboad scanner routine(linux and windows)
Posted by: 1885 - Oct-26-2019, 03:34 PM - Forum: General Coding Help - No Replies

I am a beginning python programmer and I also teach introductory python.
I (we) are looking for a keyboard scan routine to capture keyboard input wit..... More

Print this item

  Help - Functions With While Loops
Posted by: pdub787 - Oct-26-2019, 02:41 PM - Forum: Homework - Replies (5)

Cheers! I'm a self-learning beginner using a crash course book. One of the "Try It Yourself" at the end of the chapter has me create a function with a..... More

Print this item

  Python 3.8 -- mysql-connector error
Posted by: adt - Oct-26-2019, 01:55 PM - Forum: News and Discussions - Replies (4)

In my earlier post, it was reported that pip install of some packages fails in case of python 3.8, while there is no such problem for python 3.7.4

..... More

Print this item

  Scrape multiple urls LXML
Posted by: santdoyle - Oct-26-2019, 01:46 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi i want scrape multiple urls using LXML. The code im using allow me scrape one url a a time, but i want to do it in bulk. I tried to doit with a for..... More

Print this item

  print all method and property of list object
Posted by: engmoh - Oct-26-2019, 01:31 PM - Forum: General Coding Help - Replies (4)

lst=[1,2,5]
d=dir(lst)#content all methon and properties

for i in d:
    print(lst.i)
if i run i have
[b]AttributeError: 'l..... More

Print this item

  How I can speed up my Cython module?
Posted by: AlekseyPython - Oct-26-2019, 01:20 PM - Forum: General Coding Help - No Replies

Python 3.7.5rc1, Cython 0.29.13

Hello, I created an ndarray in which, when reading a file line by line, I accumulate the first and last transaction p..... More

Print this item

  How does while-If-elif-else-If loop conditions check run
Posted by: mrhopeedu - Oct-26-2019, 12:35 PM - Forum: General Coding Help - Replies (2)

Hi,

This is a working hangman code, I am struggling to understand how it work,
hope someone here can help me to clarify the 3 questions I have bel..... More

Print this item

  My objective is to get the shape parameters of the particles in attached image
Posted by: chad221 - Oct-26-2019, 10:25 AM - Forum: General Coding Help - No Replies

while using cv2.drawContours to display the counters, the contours are not displayed. While using cv.2 drawContours, I am getting no errors. As I am n..... More

Print this item

  question on syntax
Posted by: ebolisa - Oct-25-2019, 11:38 PM - Forum: General Coding Help - Replies (1)

Hi,

the code below should return UP but it returns DOWN and I cannot understand why.
any help is appreciated.
TIA

[python]from __future__ impo..... More

Print this item

  how can disable menu [About] when Toplevel is active
Posted by: balenaucigasa - Oct-25-2019, 09:49 PM - Forum: GUI - No Replies

Hi. I want to disable the About menu when Toplevel is active.
When the Toplevel window is closed, I want the About menu to be active again.

[pyth..... More

Print this item

  [pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ?
Posted by: Huudzz - Oct-25-2019, 06:13 PM - Forum: GUI - No Replies

(Sorry about my bad english, i'm brazillian)
I created one ui who open one animated gif, when in low screen it works perfectly, but when i add fullsc..... More

Print this item

  drop rows that doesnt matched
Posted by: karlito - Oct-25-2019, 05:57 PM - Forum: Data Science - Replies (6)

Hi,
I'm working on data cleaning for a while (already posted some questions about this Wink ) and this one is really bit "complicated" for me(b..... More

Print this item

  Unable to read decimal datatype using pandasql
Posted by: geethchi - Oct-25-2019, 05:49 PM - Forum: General Coding Help - No Replies

I have a parquet file with 4 columns. It looks something like below.


TYPE | ID | SRNO | AMT

D | 123456 | 1 | 100.00
D ..... More

Print this item

  Module
Posted by: fcktheworld587 - Oct-25-2019, 05:29 PM - Forum: General Coding Help - Replies (5)

Hi, im trying to make a module:
[python]
from distutils.core import setup

setup(
name = "nester"
version = '1.0.0'
..... More

Print this item

  auto supply values to a python script(function) from text file
Posted by: metro17 - Oct-25-2019, 02:55 PM - Forum: General Coding Help - Replies (4)

I need to provide values to my python script which is asking for the following prompts.
TotalPeople = int(input("Please enter num..... More

Print this item

  tkInter and Pillow don't display any images in GUIs - program gives errors instead
Posted by: SomeRandomGuy - Oct-25-2019, 01:15 PM - Forum: GUI - Replies (9)

I'm searching the internet for like 2 hours now and can't find any solutions. I tried multiple images, converted them to .png, .gif and others, but no..... More

Print this item

  Running simple flask - getting 404
Posted by: beginner1 - Oct-25-2019, 12:42 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi,

Have a file called hello.py saved to D: drive as below.

[python]
from flask import Flask

app = Flask(__name__)

@app.route("/")
def h..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  print does not open conso... 1 hour ago Tycho_2025 Axel_Erfurt General Codin...
  Weird failure in Selenium 8 hours ago glestwid Larz60+ General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577485
  Tutorial Requ... 501384
  Web Scraping ... 441110
  Newbie with P... 385164
  New Users Int... 369941
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
lauren557 Today
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today

User Panel Messages

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