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,919
» Latest member: aidajnrz7704
» Forum threads: 38,717
» Forum posts: 175,483

Full Statistics

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

Latest Threads
Select Python comment (#)...
Forum: General Coding Help
Last Post: SpongeB0B
5 hours ago
» Replies: 4
» Views: 311
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
6 hours ago
» Replies: 5
» Views: 1,118
New to the field
Forum: News and Discussions
Last Post: Polybunny
11 hours ago
» Replies: 0
» Views: 70
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Stowersw
Yesterday, 03:23 PM
» Replies: 4
» Views: 2,274
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 11:09 AM
» Replies: 2
» Views: 840
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Yesterday, 08:36 AM
» Replies: 1
» Views: 2,130
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-11-2025, 08:39 PM
» Replies: 6
» Views: 1,486
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Sep-11-2025, 05:34 PM
» Replies: 5
» Views: 1,246
pip fails to install PyGO...
Forum: General Coding Help
Last Post: Larz60+
Sep-11-2025, 10:50 AM
» Replies: 2
» Views: 1,802
how to manage crypto trad...
Forum: General Coding Help
Last Post: Mercyto
Sep-11-2025, 06:01 AM
» Replies: 2
» Views: 2,965

 
  My ATR from pandas_ta doesnt't work
Posted by: Sined - Feb-20-2025, 06:53 AM - Forum: Data Science - Replies (3)

Hi,
I tried the follow code but It didn't work correctly and it return "None" in the Atr field.
Can someone help me please? Thanks

[python]
im..... More

Print this item

  Inserting Python Buttons into KV Files
Posted by: edand19941 - Feb-19-2025, 04:04 PM - Forum: General Coding Help - Replies (3)

I am generating buttons with a loop in a py file with the code below. The TileLayout class generates a StackLayout filled with buttons with an on_pres..... More

Print this item

  subprocess check_output text cut off
Posted by: Axel_Erfurt - Feb-19-2025, 02:44 PM - Forum: General Coding Help - Replies (5)

Python 3.11.2 on LMDE6 (Debian 12)

Why is the text cut off at the end?

[python]from subprocess import check_output
cmd = "apt search vlc"
founded_pa..... More

Print this item

  "RUN" - how to set a defaut setting
Posted by: cimerio - Feb-17-2025, 02:36 PM - Forum: General Coding Help - Replies (3)

Hello, I'm facing that problem in any tool that I tested (visual code, idle) and now I face in PyCharm too.

When I hit the shortcut to "Run", the p..... More


Attached Files

Thumbnail(s)
   
Print this item

  SHA256 ImportError when using Crypto.Hash in crypto.py
Posted by: andrewk - Feb-17-2025, 11:54 AM - Forum: General Coding Help - Replies (1)

Hi guys.

I'm getting an ImportError for 'SHA256' when using Crypto.Hash in crypto.py

crypto.py includes:
[python]from Crypto.Hash import (
..... More

Print this item

  Help me with this task
Posted by: melmedarda - Feb-17-2025, 02:36 AM - Forum: Homework - Replies (1)

I'm working on a Python project where I need to read a text file, count the occurrences of each word, and then display the top 10 most common words. H..... More

Print this item

  Uncluttr: Open Source AI for Document Sorting
Posted by: rgnclvs - Feb-16-2025, 04:12 PM - Forum: Code sharing - No Replies

Hello everyone! We are excited to introduce Uncluttr: an AI-powered automated solution that makes it easy to digitize, sort and archive corporate docu..... More

Print this item

  Why it gives me a black image and libpng warning: iCCP
Posted by: rickyw2777 - Feb-16-2025, 03:08 PM - Forum: General Coding Help - Replies (1)

This is my code:

[python]from picamera2 import Picamera2
import cv2
import numpy as np
import time
import math
import argparse
import RPi...... More

Print this item

  Python Linker
Posted by: MeJustMeLol2020 - Feb-16-2025, 01:20 PM - Forum: Code sharing - Replies (4)

I published my code yesterday on another thread about a Python linker. Today, I wrote my own linker and finished it. It works on my manual setup, but ..... More

Print this item

  Problem When using canny edge detection,black image returned
Posted by: rickyw2777 - Feb-16-2025, 04:48 AM - Forum: General Coding Help - Replies (1)

I am creating a program to give me a trackbar that can adjust the value of minv and maxv for the canny edge detection. Strangely, when I not include a..... More


Attached Files

Thumbnail(s)
       
Print this item

  Web scraping confusion
Posted by: keifin - Feb-16-2025, 03:28 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello Everyone,

I am new to Python and created a simple web scraper that would scrape the winning pick 3 number from the Florida lottery websit..... More

Print this item

  Python Linker
Posted by: MeJustMeLol2020 - Feb-15-2025, 12:58 PM - Forum: Web Scraping & Web Development - Replies (2)

Hello everyone,

I'm currently writing a Python script that can read C files from a directory and use GCC to compile them, placing the resulting fil..... More


Attached Files

.py   GCC.py (Size: 1.24 KB / Downloads: 143)
Print this item

  Help me understand variable value
Posted by: rkreis - Feb-15-2025, 11:21 AM - Forum: Homework - Replies (4)

Hello!

I recently stumbled upon a python course and a test of sorts, there is a question:

What is the value of C?

T = 3
v = "ab"
C = T *v

To which..... More

Print this item

  Complex Numbers
Posted by: Curbie - Feb-14-2025, 06:14 PM - Forum: General Coding Help - Replies (4)

My life is settling down again after building two new machines for me, evaluating and loading a new OS distro, and evaluating loading some new applica..... More

Print this item

  how to download large files faster?
Posted by: kucingkembar - Feb-14-2025, 01:50 PM - Forum: General Coding Help - Replies (3)

what method to download large size (larger than 1GB) faster?

Print this item

  Python use of virtual environments
Posted by: bre67e49 - Feb-14-2025, 07:45 AM - Forum: General Coding Help - Replies (4)

I need the ability to use python virtual environments, currently I can create them using python -m venv venv but when I try to import libraries into t..... More

Print this item

  TypeError: string indices must be integers
Posted by: deneme2 - Feb-13-2025, 07:24 PM - Forum: General Coding Help - Replies (2)

Hi guys,

i have two json files
code works fine for test1.json, but it gives "TypeError: string indices must be integers" error for test2.json

..... More


Attached Files

.json   test1.json (Size: 25.68 KB / Downloads: 332)
.json   test2.json (Size: 32.02 KB / Downloads: 421)
Print this item

  [split] ibm_db install problem
Posted by: SQLPython - Feb-13-2025, 07:13 PM - Forum: General Coding Help - Replies (1)

I am on Python 38,

Output:
pip install ibm_db Requirement already satisfied: ibm_db in d:\anaconda\lib\site-packages (3.2.5)
[python]..... More

Print this item

  I'm new to Python - can someone help with this code as it is not working?
Posted by: lminc123 - Feb-13-2025, 05:53 PM - Forum: General Coding Help - Replies (1)

Voice-Controlled Hindi Song Player
------------------------------------------

Here's how the application should work:

Create a directory called..... More

Print this item

  Is one week enough to learn these Python topics? Feeling overwhelmed
Posted by: nedreV - Feb-13-2025, 04:43 PM - Forum: News and Discussions - Replies (1)

Hi everyone,

I'm completely new to programming and currently learning Python. I really enjoy it, but I’m feeling overwhelmed by the amount of mater..... More

Print this item

  ValueError in dataclasses.py - Please help!
Posted by: andrewk - Feb-13-2025, 10:40 AM - Forum: General Coding Help - Replies (4)

Using Python 3.11.2 on Raspberry PI.

Executing deposit.py...get the following error:

File "/blockchain/staking-deposit-cli/./staking_deposit/d..... More

Print this item

  [split] Newbie needs help
Posted by: Schoe1 - Feb-12-2025, 06:57 PM - Forum: General Coding Help - No Replies

I have a similar problem. I am trying to fetch stock data using yfinance and pandas then create a matrix for several stock symbols and associated data..... More

Print this item

  Python Module for PowerLED 2.89.4
Posted by: ChonkyBork - Feb-12-2025, 04:46 PM - Forum: General Coding Help - Replies (3)

Hi

I'm working on trying to create a DIY race timing clock using some P10 single color led panels. I ordered a TF-M6NUR controller board that I was..... More

Print this item

  Deploying a working local piece of code to Google app engine
Posted by: problemfacer - Feb-12-2025, 06:49 AM - Forum: Web Scraping & Web Development - No Replies

My site loads but one can't login. The issue is with database connection. When running on localhost, I had 3 files where this connection took code to ..... More

Print this item

  FFMPEG
Posted by: Leondagreatest - Feb-12-2025, 02:09 AM - Forum: General Coding Help - No Replies

I'm making a program in python that takes an MP4 video, extracts the audio and compresses it, and then takes that compressed audio and takes 0.1 secon..... More

Print this item

  beginner doesn't understand import
Posted by: cimerio - Feb-11-2025, 06:39 PM - Forum: General Coding Help - Replies (3)

hello, I don't know if python is different, but

I have a arquivoDados.py file
and a programa.py file in same directory

In arquivoDados.py I hav..... More

Print this item

  Transform a pdf to markdown
Posted by: zzied - Feb-11-2025, 10:22 AM - Forum: General Coding Help - No Replies

Hello Guys ,

I want to create blogs with markdow for my platform on markdown whit hugo site , but i have only my training on pdf .
How i do to tr..... More

Print this item

  The Secret of Nim
Posted by: ratwolf - Feb-11-2025, 05:40 AM - Forum: Code sharing - No Replies

The game of Nim (The mathematical background of how to win the game)

[python]import numpy as np
import matplotlib.pyplot as plt
from matplotlib...... More


Attached Files

Thumbnail(s)
       
Print this item

  ValueError in dataclasses.py - using staking-deposit-cli
Posted by: andrewk - Feb-10-2025, 09:51 PM - Forum: General Coding Help - No Replies

My project uses https://github.com/ethereum/staking-depo...y_handling

When trying execute it, I get the followin..... More

Print this item

Question Custom Window Decorations on all Windows
Posted by: Beenman11 - Feb-10-2025, 09:00 PM - Forum: General Coding Help - Replies (4)

Hi,
I am making a Helping Script for a game, which uses tkinter for the GUI elements and messagebox for a pop up window.
For this script, there is a..... More


Attached Files

Thumbnail(s)
       

.py   buckshot-helper-test.py (Size: 16.72 KB / Downloads: 117)
Print this item

  Need help with Scikit-Learn Assignment
Posted by: Toh - Feb-10-2025, 07:15 AM - Forum: Homework - Replies (1)

what is wrong with my code why keep failing?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My failur..... More

Print this item

  What to do with Deadsnakes PPA?
Posted by: andrewk - Feb-09-2025, 04:18 AM - Forum: General Coding Help - Replies (1)

I'm using Python 3.11 which was installed on my Raspberry PI 5 by default.

My project depends on ppa:deadsnakes/ppa...
ie. sudo add-apt-repository..... More

Print this item

Question [SOLVED] [newbie] Why call super()? When to use parent?
Posted by: Winfried - Feb-08-2025, 07:12 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm reading a book on wxPython, and have a couple of newbie questions:

1. Why is a call to super() required? When commented out, Python a..... More

Print this item

  not able to call the variable inside the if/elif function
Posted by: mareeswaran - Feb-08-2025, 04:22 PM - Forum: General Coding Help - Replies (3)

[python]class new_():
def __init__(self):
self.std_=20000


def new1 (self):
if (0<i<=600000):
..... More

Print this item

  opencv troubleshooting when using Canny
Posted by: rickyw2777 - Feb-08-2025, 03:48 AM - Forum: General Coding Help - Replies (2)

I was trying to use a tracebar to change the value of shresholds for Canny. Here is my code:
[code]#HoughLinesP
import cv2
import numpy as np
fi..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Select Python comment (#)... 5 hours ago SpongeB0B SpongeB0B General Codin...
  I'm trying to make a piec... 6 hours ago Alislugacool MilesWeb General Codin...
  New to the field 11 hours ago Polybunny Polybunny News and Disc...
  Seeking feedback: dynamic... Yesterday, 15:23 Bona2000 Stowersw General Codin...
  Python and excel vba codi... Yesterday, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... Yesterday, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
  New to Python and Pygame 09-11, 17:34 JMcM JMcM Game Developm...
  pip fails to install PyGO... 09-11, 10:50 voidtrance Larz60+ General Codin...
  how to manage crypto trad... 09-11, 06:01 Mikeardy Mercyto General Codin...
  How to space data on x ax... 09-11, 05:35 m_kdch Pedroski55 General Codin...
Most views
  The best Prog... 575388
  Tutorial Requ... 496136
  Web Scraping ... 439511
  Newbie with P... 383098
  New Users Int... 363707
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+ 12086
buran 8174
snippsat 7365
deanhystad 6890
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
aidajnrz7704 Today
Jillscitt Yesterday
Stowersw Yesterday
Intel Yesterday
Gichardaxora Yesterday

User Panel Messages

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