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,928
» Latest member: Williefaree
» Forum threads: 38,719
» Forum posts: 175,493

Full Statistics

Online Users
There are currently 41 online users.
» 1 Member(s) | 35 Guest(s)
Bing, Google, Applebot, AOL, Gribouillis

Latest Threads
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: DeaD_EyE
32 minutes ago
» Replies: 6
» Views: 2,514
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:27 PM
» Replies: 6
» Views: 814
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:32 PM
» Replies: 2
» Views: 510
New to Python and Pygame
Forum: Game Development
Last Post: JMcM
Yesterday, 11:25 AM
» Replies: 7
» Views: 1,803
Python Installation issue
Forum: News and Discussions
Last Post: Dev
Yesterday, 11:16 AM
» Replies: 4
» Views: 15,738
New to the field
Forum: News and Discussions
Last Post: Larz60+
Yesterday, 08:15 AM
» Replies: 1
» Views: 409
Too much space between gr...
Forum: GUI
Last Post: deanhystad
Yesterday, 02:34 AM
» Replies: 1
» Views: 479
I'm trying to make a piec...
Forum: General Coding Help
Last Post: MilesWeb
Sep-13-2025, 06:11 AM
» Replies: 5
» Views: 1,553
Python and excel vba codi...
Forum: General Coding Help
Last Post: DeaD_EyE
Sep-12-2025, 11:09 AM
» Replies: 2
» Views: 1,234
Web Scrapper to find prov...
Forum: General Coding Help
Last Post: Olivia
Sep-12-2025, 08:36 AM
» Replies: 1
» Views: 2,441

 
  Triggering a ps1 script in remote windows server via http python request
Posted by: jasveerjassi - Jan-25-2024, 09:44 AM - Forum: General Coding Help - Replies (1)

I am trying to trigger a ps1 script in remote windows 2016 web server via http get request. This is the code i am trying.

Tried with GET and POST ..... More

Print this item

  Microsoft Teams - Sub-Channel Files Permissions
Posted by: IamJustAmir - Jan-25-2024, 05:08 AM - Forum: Bar - No Replies

Hello, I am new here. Can anyone show me a step-by-step guide on how to restrict users inside this private sub-channel to delete files that they have ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Microsoft Teams Sub-Channel Permissions
Posted by: IamJustAmir - Jan-25-2024, 05:04 AM - Forum: Web Scraping & Web Development - No Replies

Hello, I am new here. Can anyone show me a step-by-step guide on how to restrict users inside this private sub-channel to delete files that they have ..... More


Attached Files

Thumbnail(s)
       
Print this item

  Syntax error for "root = Tk()"
Posted by: dlwaddel - Jan-25-2024, 02:40 AM - Forum: General Coding Help - Replies (15)

I get a syntax error for "root = Tk()" and can't figure it out. I am running Python 3.12 under Windows 11. Here is the code:

[python]>>> from tkint..... More

Print this item

  Open/save file on Android
Posted by: frohr - Jan-24-2024, 06:28 PM - Forum: General Coding Help - No Replies

Hi all, I have app using Kivy and I need open / save csv files. Under Windows/Linux it works well but not under Android. I see folders but no files. T..... More

Print this item

  Subprocess use and modify inputs
Posted by: PierreLCV - Jan-24-2024, 07:53 AM - Forum: General Coding Help - Replies (4)

Dear all,
I started python code in 2024 (a good resolution is not it ?) to use for a job project and i am currently blocked with the subprocess use...... More

Print this item

  minimax help
Posted by: NirmalJ - Jan-24-2024, 07:37 AM - Forum: General Coding Help - Replies (1)

I need help with the issue that the code is returning 1s for all the moves instead of 1s and 0s and -1s for the best or the worst moves. Also it is ma..... More


Attached Files

.py   board.py (Size: 3.55 KB / Downloads: 242)
.py   player.py (Size: 9.91 KB / Downloads: 249)
.py   tictac.py (Size: 1.2 KB / Downloads: 230)
Print this item

  Make entire script run again every 45 mo
Posted by: NDillard - Jan-23-2024, 09:40 PM - Forum: General Coding Help - No Replies

Newbie here with limited python knowledge.
I have a script that is dependent on 3 sensors to output gathered info. The original script is from the P..... More

Print this item

  i want to know the difference
Posted by: Naisuke - Jan-23-2024, 03:05 PM - Forum: General Coding Help - Replies (3)

[python]a=int(input("enter a number:"))
def check_prime_numbers():
for i in range(2, (a//2+1)):
if a%i==0 :
print(f"{a} i..... More

Print this item

  Path Planning
Posted by: prachibhanaria - Jan-23-2024, 10:11 AM - Forum: General Coding Help - No Replies

I am trying to write code in Python for A* and the Firefly algorithm merges code for multiobjective optimization path planning but I am facing an issu..... More


Attached Files

.py   Astar_FA.py_18jan.py (Size: 9.63 KB / Downloads: 233)
Print this item

  problem with spliting line in print
Posted by: akbarza - Jan-23-2024, 08:51 AM - Forum: General Coding Help - Replies (3)

hi
excuse me for this silly question, but i have problem with it. in below code :
[python]"""
shallowcopy and deepcopy
from: https://realpython.c..... More

Print this item

  Unable to understand the meaning of the line of code.
Posted by: jahuja73 - Jan-23-2024, 05:09 AM - Forum: General Coding Help - No Replies

Am unable to understand the meaning of the code on the r.h.s. of the below line of code, as given ..... More

Print this item

  Is possible to run the python command to call python script on linux?
Posted by: cuten222 - Jan-23-2024, 04:10 AM - Forum: General Coding Help - Replies (6)

I have a method to call the python script using subprocess.popen like:

   

it's somehow working well on windows (running with dock..... More

Print this item

  Having trouble setting the X-Ticks for a data set I am working with.
Posted by: Mr_OHagan - Jan-22-2024, 07:11 PM - Forum: Data Science - Replies (1)

I am using a large data set that, it contains homelessness numbers in NYC from 08/21/2013 to 01/16/2024 and when I graph it normally it gives a unread..... More


Attached Files

.csv   DHS_Homeless_Shelter_Census.csv (Size: 123.72 KB / Downloads: 1)
Print this item

  Face recognition system with return hostel form
Posted by: safwan - Jan-22-2024, 03:36 PM - Forum: Homework - Replies (3)

HI I AM NEWBIE ON THIS FORUM! HELP ME.
MY FYP IS overnight return form hostel face recognition system.My hostel usually return home 2 weeks per mont..... More


Attached Files

Thumbnail(s)
   
Print this item

  Basic binary search algorithm - using a while loop
Posted by: Drone4four - Jan-22-2024, 12:50 PM - Forum: General Coding Help - Replies (1)

I’m learning algorithms using Python. My latest challenge laid out by the instructor in my highly sophisticated non-accredited Udemy course content I ..... More

Print this item

  Cant use difflib with islice?
Posted by: gonksoup - Jan-22-2024, 12:05 PM - Forum: General Coding Help - Replies (2)

Sorry to be back so soon.... Any ideas why my code causes Differ to crash? (NB The 3,7 is just an arbitrary number for testing a range). The "for ..... More

Print this item

  Python Constantly Crashing
Posted by: mat189 - Jan-22-2024, 07:18 AM - Forum: General Coding Help - No Replies

Hi,

We have Python installed on a Windows 10 Pro machine and it is constantly crashing all the time. The version is 3.9.9. We use Python to process..... More

Print this item

  pyaudio seems to randomly halt input.
Posted by: elpidiovaldez5 - Jan-22-2024, 04:34 AM - Forum: General Coding Help - Replies (2)

I am trying to use ReSpeaker 4 mic array v2.0. It appears to work perfectly using:

arecord -D plughw:1,0 -f S16_LE -c2 -r16000 test.wav
aplay tes..... More

Print this item

  AttributeError
Posted by: Tori - Jan-22-2024, 03:13 AM - Forum: General Coding Help - Replies (2)

First step, hit up those well-known spots where millions are streaming what gets them off. You know them – hubs and tubes filled with categories so de..... More

Print this item

  Gmpy2 Newbie Working on Precision
Posted by: charlesrkiss - Jan-21-2024, 11:54 PM - Forum: General Coding Help - Replies (10)

I am trying to calculate minute angles, and would like precision of at least 15 digits:

But I fail to understand how Python is rounding.

[b][i]A..... More


Attached Files

Thumbnail(s)
   
Print this item

  Seeking guidance on PyQt Instantiation and correct way to use an instance of QWidget
Posted by: BrewBarred - Jan-21-2024, 10:37 PM - Forum: GUI - Replies (3)

Hey everyone,

I have a few questions (sorry), please see the example code to understand what the questions are referring to. I also recommend runni..... More

Print this item

  Last record in file doesn't write to newline
Posted by: gonksoup - Jan-21-2024, 09:30 PM - Forum: General Coding Help - Replies (3)

Apologies in advance for something that I'm sure you all have encountered before - but I cant find an answer!

The following code happily writes e..... More

Print this item

  json loads throwing error
Posted by: mpsameer - Jan-21-2024, 09:14 AM - Forum: General Coding Help - Replies (8)

Hi All,

I have python code written using netmiko library which does SSH to a switch and run the command "show env power | json". I need to convert ..... More

Print this item

  Retrieve word from string
Posted by: knob - Jan-21-2024, 12:06 AM - Forum: General Coding Help - Replies (4)

Good day !

Based on the example below how could i print the word "fruits" ?
considering that it may change the position in the sentence and
..... More

Print this item

  Draw bounding boxes on live feed
Posted by: Jerome - Jan-20-2024, 10:50 PM - Forum: General Coding Help - No Replies

Working on a robot, using a esp32cam live feed, it's supposed to draw bounding boxes for detected objects with the label name "cup", can't get the box..... More

Print this item

  Question
Posted by: arlindsherifi - Jan-20-2024, 08:26 PM - Forum: General Coding Help - Replies (1)

Hello, I am Arlind Sherifi. I have just started to learn Python and I have written this code:

[python]import numpy as np

perihelion = 70
veloci..... More

Print this item

  Create dual folder on different path/drive based on the date
Posted by: agmoraojr - Jan-20-2024, 06:51 PM - Forum: General Coding Help - Replies (2)

Hello Team,

Below script creates a folder based from a previous date,
My question is,
1. How to declare the if/ else statement that says print(..... More

Print this item

  AttributeError: 'NoneType' re.search
Posted by: philnyland - Jan-20-2024, 02:47 AM - Forum: General Coding Help - Replies (1)

python 3.12.1 Windows 11 command prompt (cmd)
TURN THIS:
this85_e1.txt
the other38_4e.asc
INTO THIS:
this
the other

This was working a fe..... More

Print this item

  Variable for the value element in the index function??
Posted by: Learner1 - Jan-20-2024, 12:16 AM - Forum: General Coding Help - Replies (8)

Let's say that I have a list with all the letters of the English alphabet in it.

Is it possible to allow a user to input an alpha character,

the..... More

Print this item

  Best way to secure API key when sharing
Posted by: quarinteen - Jan-19-2024, 04:25 PM - Forum: General Coding Help - Replies (2)

Hello I have a script that has an api key in it in plain text. This has been okay because only myself and 1 other person uses it. I have been asked to..... More

Print this item

  run SQL without user intervention python
Posted by: dawid294 - Jan-19-2024, 01:11 PM - Forum: General Coding Help - No Replies

Hello, Is possible connect SQL from python without using password and username in the script. But the script should run without user intervention. Exi..... More

Print this item

  PyImport_ImportModule
Posted by: milonass - Jan-19-2024, 11:32 AM - Forum: General Coding Help - Replies (2)

This C++-code is not able to import numy:

[python]#include <iostream>
#include <filesystem>
//#include "C:\Program Files\Python311\include\Python..... More

Print this item

Photo SYNTAX ERROR
Posted by: Yannko - Jan-19-2024, 11:03 AM - Forum: General Coding Help - Replies (3)

Hi, guys, do you have any ideas why "syntax error" occurs when trying to run this trivial piece of code? Thanks!


Attached Files

Thumbnail(s)
   
Print this item

  Creating a Browser Extension using Python
Posted by: j49857 - Jan-19-2024, 03:19 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to create a Browser Extension that uses Python and have been unable to make my script work as an extension in any way.
I believe I need ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Seeking feedback: dynamic... 32 minutes ago Bona2000 DeaD_EyE General Codin...
  Select Python comment (#)... Yesterday, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... Yesterday, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame Yesterday, 11:25 JMcM JMcM Game Developm...
  Python Installation issue Yesterday, 11:16 RFHill Dev News and Disc...
  New to the field Yesterday, 08:15 Polybunny Larz60+ News and Disc...
  [Tkinter] Too much space ... Yesterday, 02:34 RonR deanhystad GUI
  I'm trying to make a piec... 09-13, 06:11 Alislugacool MilesWeb General Codin...
  Python and excel vba codi... 09-12, 11:09 odiez DeaD_EyE General Codin...
  Web Scrapper to find prov... 09-12, 08:36 physalis2099 Olivia General Codin...
  403 Error 09-11, 20:39 CaptainNewb snippsat Web Scraping ...
Most views
  The best Prog... 575663
  Tutorial Requ... 496784
  Web Scraping ... 439711
  Newbie with P... 383360
  New Users Int... 364683
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+ 12087
buran 8174
snippsat 7366
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Williefaree Today
faithsally Today
compuman145 Today
DeadEyes Today
Fobertsmene Yesterday

User Panel Messages

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