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,418
» Latest member: wayenia
» Forum threads: 38,543
» Forum posts: 174,658

Full Statistics

Online Users
There are currently 470 online users.
» 0 Member(s) | 464 Guest(s)
Yandex, Bing, Google, Applebot, Google Image

Latest Threads
Intuit QB Line )))))) Wha...
Forum: General Coding Help
Last Post: aliajoseph275
31 minutes ago
» Replies: 0
» Views: 20
where should DEFAULT_CIPH...
Forum: General Coding Help
Last Post: Larz60+
4 hours ago
» Replies: 1
» Views: 107
I am sending messages usi...
Forum: General Coding Help
Last Post: Hendrikb
4 hours ago
» Replies: 0
» Views: 47
Get the string after a sp...
Forum: General Coding Help
Last Post: Gribouillis
6 hours ago
» Replies: 2
» Views: 133
function arguments
Forum: General Coding Help
Last Post: Gribouillis
7 hours ago
» Replies: 1
» Views: 104
[Beautiful Soup] Replace ...
Forum: General Coding Help
Last Post: Winfried
8 hours ago
» Replies: 1
» Views: 148
how to delete thread
Forum: Board
Last Post: DeaD_EyE
Yesterday, 07:30 PM
» Replies: 4
» Views: 274
Atari Ping Pong Game
Forum: Code sharing
Last Post: deanhystad
Yesterday, 05:04 PM
» Replies: 1
» Views: 156
not running
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:08 PM
» Replies: 2
» Views: 252
[split] How to continue c...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 04:02 PM
» Replies: 1
» Views: 132

 
  I'm trying to install python 3.11.11 on windows 10 - it doesn't work
Posted by: Petonique - Feb-04-2025, 05:31 AM - Forum: General Coding Help - Replies (2)

i added environment variables, but when i try to run python setup.py install command via cmd nothing happens. just line is updated

if i do python s..... More


Attached Files

Thumbnail(s)
   
Print this item

  Plot blue
Posted by: daves_cordova - Feb-02-2025, 09:05 PM - Forum: Data Science - Replies (2)

[python]
# Import necessary libraries
import numpy as np
import pandas as pd
import geopandas as gpd
from libpysal.weights import Queen, higher_o..... More


Attached Files

.xlsx   Base de dados - Regressão.xlsx (Size: 247.78 KB / Downloads: 0)
Print this item

  Building specific Python version on Raspberry PI 5 (Raspbian)
Posted by: andrewk - Feb-02-2025, 04:55 AM - Forum: General Coding Help - Replies (2)

Hi!

I'm trying to build Python 3.8 from source on a Raspberry PI 5 (Raspbian).
A project I'm using requires Python 3.8.

Downloaded the source a..... More

Print this item

  Is there a Python solution to select unique frames from a video?
Posted by: rownong - Feb-01-2025, 11:06 PM - Forum: General Coding Help - Replies (1)

Hello
It is necessary to receive unique frames (screenshots) from the video.
Is there any Python solution to select frames from a video that, for ex..... More

Print this item

  Open CV cv2.bitwise_and() function
Posted by: rickyw2777 - Feb-01-2025, 06:41 PM - Forum: General Coding Help - Replies (3)

My question is about python and Open CV. Here is my code:
[python]import cv2
import numpy as np

# read image
img = cv2.imread(r"C:\Users\asus\D..... More

Print this item

  How to remove unwanted images and tables from a Word file using Python?
Posted by: rownong - Feb-01-2025, 10:12 AM - Forum: General Coding Help - Replies (2)

After exporting from PDF to Word (via), the file contains many unnecessary artifacts in the text:
- meaningless parts of images
- empty tables of 1 ..... More

Print this item

  Pyinstaller usage
Posted by: PhilippS - Jan-31-2025, 02:28 PM - Forum: General Coding Help - Replies (1)

Hi team,
I am using pyinstaller to cerate a exe of my main.py. The main uses different other python_scripts.py which are located in the same folder...... More

Print this item

  Implementing Efficient Event-Driven Programming in Python
Posted by: JasonGrant - Jan-31-2025, 12:38 PM - Forum: General Coding Help - Replies (1)

Hello everyone,

I’m designing an event-driven application in Python that needs to respond to external triggers quickly and efficiently. Does anyone..... More

Print this item

Question [redistribution] Reduce number + size of dependencies?
Posted by: Winfried - Jan-31-2025, 11:30 AM - Forum: General Coding Help - Replies (2)

Hello,

Using…

pyinstaller --clean myscript.py
… I notice that a simple script running Python 3.12.0 that just reads a URL from the c..... More

Print this item

  Is the Walrus Operator( := ) antipattern?
Posted by: maina - Jan-31-2025, 10:53 AM - Forum: News and Discussions - Replies (3)

The walrus operator( := ) was introduced in Python 3.8.
It allows you to create, assign..... More

Print this item

  Recording a Conversation
Posted by: puvuz - Jan-31-2025, 02:00 AM - Forum: General Coding Help - No Replies

I just started a new job in tech support and it requires documenting everything being said over the phone. I use a USB headset, the Yealink WHB620 spe..... More

Print this item

  pystran: Python Structural Analysis
Posted by: PetrKrysl - Jan-30-2025, 08:06 PM - Forum: Code sharing - Replies (1)

https://github.com/PetrKryslUCSD/pystran

I would very much appreciate feedback on how to provide documentation.
I expect the package to be downloa..... More

Print this item

  knowing for loop position in a list
Posted by: medic5678 - Jan-30-2025, 07:39 PM - Forum: General Coding Help - Replies (4)

I've got a text variable, my_word.
I want to run a for loop

For letter in my_word:
if letter == "f"

I want to know the index..... More

Print this item

  Problems creating standalone - can't find package tkdnd
Posted by: jbenfield - Jan-30-2025, 05:21 PM - Forum: GUI - Replies (4)

I have an tkinter app that runs fine in VS-Code/Terminal, but I can't seem to get it to work as a standalone.
The error is always a variant on the t..... More

Print this item

  Pulling data from mssql to PG DB
Posted by: hartman60 - Jan-30-2025, 03:57 PM - Forum: General Coding Help - Replies (1)

I'm trying to load a PostgreSQL table with information from MSsql. I have 2 tables that are identical on both db's. On the Mssql side there is a colum..... More

Print this item

Photo Cannot plot without high machine precision problems on small numbers
Posted by: aphobic - Jan-30-2025, 03:48 PM - Forum: Data Science - Replies (1)

Hi, I am trying to plot the solution of the Lindblad equation, for a Bell state probability density matrix, however I get non-zero entropy at t=0, whi..... More


Attached Files

Thumbnail(s)
   

.py   entropyPSI.py (Size: 4.06 KB / Downloads: 4)
Print this item

  Rudimentary prototype for: Fractal Growth Model, Diffusion-Limited Aggregation (DLA)
Posted by: ratwolf - Jan-30-2025, 04:09 AM - Forum: Code sharing - No Replies

   

[python]import numpy as np
import matplotlib.pyplot as plt
from numba import njit, prange
from matplotlib.cm import ScalarMapp..... More

Print this item

  Ai
Posted by: CodyTremblay - Jan-29-2025, 08:17 PM - Forum: News and Discussions - No Replies

How can I make my Ai affect my computer. like play a game i dont wanna grind. I want it to act like it using my keyboard and mouse or something like t..... More

Print this item

  Data transfer from Arduino to Pyhton
Posted by: code_noob - Jan-29-2025, 06:52 PM - Forum: General Coding Help - Replies (2)

Hi

I am having trouble with getting this code to work. I am working on a project where I want to transfer data from Arduino through a com terminal ..... More

Print this item

  app funcionality issue
Posted by: jacksfrustration - Jan-29-2025, 03:41 PM - Forum: General Coding Help - Replies (4)

ok so i'm building a reminder app for a client. So far i have one application that is booted by the user that the user can use to create reminders (se..... More

Print this item

  No module named 'importlib.metadata'
Posted by: EdVS - Jan-29-2025, 08:21 AM - Forum: General Coding Help - Replies (3)

Hi!

Windows 7 (x86).
Python 3.8.0a3 (32-bit), new installation. I can't install a newer version of Python because my computer is old - problems wi..... More

Print this item

  Upgraded Python: Module no longer found - for Linux
Posted by: Curbie - Jan-29-2025, 12:09 AM - Forum: General Coding Help - Replies (8)

Don’t know if this is the correct place for this question, if not just help out on where I should go?

A thread here titled “[SOLVED] Upgraded Pytho..... More

Print this item

  The Whole is More Than the Sum of the Parts
Posted by: ratwolf - Jan-28-2025, 03:19 AM - Forum: Code sharing - Replies (2)

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

def generate_wave(custom_function, samples=100, x_range=(-1, 1)):
"""
Generat..... More


Attached Files

Thumbnail(s)
           
Print this item

  Word matching with specific parameters
Posted by: CascadeDiver - Jan-28-2025, 01:36 AM - Forum: General Coding Help - Replies (3)

Word matching with specific parameters

Hello all,


I am quite new to using Python so please bear with me.

I am looking to create a script th..... More

Print this item

Exclamation Replace dando erro
Posted by: supergbr - Jan-27-2025, 11:28 PM - Forum: General Coding Help - Replies (1)

Olá Pessoal,

Sou novo por aqui e em python, estou realizando a substituição de caracteres dentro de uma variável e no momento que executo apresenta..... More

Print this item

  Sunrise and sunset times from PySwissEph library
Posted by: devtrtr - Jan-27-2025, 11:05 PM - Forum: General Coding Help - Replies (2)

I am using PySwissEph in Python to get planetary positions based on Lahiri Ayanamsha. Planetary positions work fine. But I cannot make the code work f..... More

Print this item

  Python-Kasa stopped working
Posted by: liderbug - Jan-27-2025, 02:38 PM - Forum: General Coding Help - Replies (1)

github has a program python-kasa that allows one to control Tp-Link switchs and plugs. Turn a light on, turn a light off - fan, coffee, pump, you n..... More

Print this item

  I want to get the IP, Hostname and OS information of all PCs in the Local Network
Posted by: Nahita - Jan-26-2025, 09:49 PM - Forum: Networking - No Replies

I want to get the IP, Hostname and Operating System information (Linux, Win, etc.) of the Computers on the Local Network. I can get the IP of the comp..... More

Print this item

  my ichimoku cloud is messed up
Posted by: Equivocal - Jan-25-2025, 08:50 PM - Forum: Data Science - No Replies

df.ta.ichimoku(period_short=9, period_mid=26, period_long=52, offset_senkou=26, offset_chikou=26, append=True)
the baseline & conv..... More

Print this item

  set -x shell equivalent of python, possible/available?
Posted by: ggpf900 - Jan-25-2025, 05:48 PM - Forum: General Coding Help - Replies (1)

For fast debugging line by line, I use "set -x" in shell scripts. It shows line by line execution and its result in output console.
Seems no such th..... More

Print this item

  multithreading xlwings error
Posted by: Equivocal - Jan-25-2025, 05:10 PM - Forum: General Coding Help - No Replies

here's the deal.. i barely know what i'm doing. hobby project.

i've got xlwings updating a ton of cells every few seconds with data from an API (B..... More

Print this item

Question how to type hint a function in a dataclass?
Posted by: Calab - Jan-24-2025, 04:22 PM - Forum: General Coding Help - Replies (3)

I wish to create a dataclass where one of the attributes will hold a function. It could be any function, so I won't know what parameters it will accep..... More

Print this item

  Newbie needs help
Posted by: actuary316 - Jan-24-2025, 01:31 PM - Forum: General Coding Help - Replies (5)

Brand new Python user, long time APL user.

In APL I have the ability to read a matrix, designate a pararmeter (or multiple parameters) and there is..... More

Print this item

  Basics of Signal Processing with Python
Posted by: ratwolf - Jan-24-2025, 06:49 AM - Forum: Code sharing - No Replies

Hello World Programs for Signal Processing with Python

Demonstration How to Use Fast Fourier Transform (FFT) with Python

..... More

Print this item

  Locally run an APK and execute functions using Python
Posted by: KovyJ - Jan-23-2025, 05:21 PM - Forum: General Coding Help - No Replies

[align=left]Can I execute an APK/call functions using Python? I found https://pypi.org/project/pyjnius/, but I am not clear on if I can use it with a ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Intuit QB Line )))))) Wha... 31 minutes ago aliajoseph275 aliajoseph275 General Codin...
  where should DEFAULT_CIPH... 4 hours ago Skaperen Larz60+ General Codin...
  I am sending messages usi... 4 hours ago Hendrikb Hendrikb General Codin...
  Get the string after a sp... 6 hours ago JanJan Gribouillis General Codin...
  function arguments 7 hours ago Curbie Gribouillis General Codin...
  [Beautiful Soup] Replace ... 8 hours ago Winfried Winfried General Codin...
  how to delete thread Yesterday, 19:30 Azdaghost DeaD_EyE Board
  Atari Ping Pong Game Yesterday, 17:04 Azdaghost deanhystad Code sharing
  not running Yesterday, 16:08 Azdaghost deanhystad General Codin...
  [split] How to continue c... Yesterday, 16:02 pythonnewbie62 deanhystad General Codin...
  Web Scraping / API Yesterday, 13:40 nautifi deepvyas Jobs
Most views
  The best Prog... 557216
  Tutorial Requ... 423869
  Web Scraping ... 422754
  Newbie with P... 350593
  Thread remain... 324654
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 325
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12034
buran 8165
snippsat 7320
deanhystad 6806
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
wayenia Today
aliajoseph275 Today
davidmartin Today
donjon4500 Today
dadsdsdadsad Today

User Panel Messages

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