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,612
» Latest member: SofiaJone
» Forum threads: 38,669
» Forum posts: 175,248

Full Statistics

Online Users
There are currently 189 online users.
» 1 Member(s) | 183 Guest(s)
Applebot, Bing, Google, Baidu, pillow

Latest Threads
Gmpy2 Newbie Working on P...
Forum: General Coding Help
Last Post: SofiaJone
38 minutes ago
» Replies: 8
» Views: 2,670
auto applying for jobs
Forum: General Coding Help
Last Post: alextony85
7 hours ago
» Replies: 0
» Views: 38
please help with image re...
Forum: General Coding Help
Last Post: magnus28
7 hours ago
» Replies: 3
» Views: 67
Create bot to automate op...
Forum: General Coding Help
Last Post: liberwicca
7 hours ago
» Replies: 1
» Views: 23,510
How to use a proxy when w...
Forum: Web Scraping & Web Development
Last Post: Jemercyli
Yesterday, 04:02 PM
» Replies: 1
» Views: 3,080
Key Logger
Forum: Homework
Last Post: Novaboxxx
Yesterday, 02:42 AM
» Replies: 0
» Views: 76
passing value from tkinte...
Forum: GUI
Last Post: deanhystad
Jul-24-2025, 06:50 PM
» Replies: 2
» Views: 99
How to Create Swagger/Ope...
Forum: Web Scraping & Web Development
Last Post: amandaevans
Jul-24-2025, 05:47 PM
» Replies: 6
» Views: 6,456
veri kazıma
Forum: Web Scraping & Web Development
Last Post: DeaD_EyE
Jul-24-2025, 07:30 AM
» Replies: 11
» Views: 399
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: MilesWeb
Jul-23-2025, 07:08 AM
» Replies: 5
» Views: 6,520

 
  Extracting specific file from an archive
Posted by: tester_V - Jan-28-2024, 04:48 AM - Forum: General Coding Help - Replies (4)

Greetings!
I need to extract a specific file from an archive. The archive is a zipped directory with subdirectories and a bunch of other files. I nee..... More

Print this item

  [SOLVED] Pad strings to always get three-digit number?
Posted by: Winfried - Jan-27-2024, 03:46 PM - Forum: General Coding Help - Replies (2)

Hello,

I've tried different things, but still can't strings to always be left-padded, three-digits long even for strings that contain a dash sign:..... More

Print this item

Star Leapcell: The Python-Friendly Alternative to Heroku + Airtable Hybrid
Posted by: IssacChan - Jan-27-2024, 01:47 PM - Forum: Web Scraping & Web Development - Replies (1)

We are excited to announce that Leapcell has officially launched its Beta public testing.

Leapcell: https://leapcell.io/[/u[url=https://python-forum.io/thread-41505.html]..... More

Print this item

  Shortest path from s to t using python
Posted by: nkiki - Jan-27-2024, 09:45 AM - Forum: Homework - Replies (9)

(V, E) be a graph and two vertices s and t. B ⊆ V be some set of vertices. How many vertices of the set B can there be at maximum on a shortest path f..... More

Print this item

  unable to remove all elements from list based on a condition
Posted by: sg_python - Jan-27-2024, 09:06 AM - Forum: General Coding Help - Replies (3)

list=[6.2,5.9,4.8,6.1,6.1,6.5,5.9,5.8,6.2]

for a in list:
    if a<=6.0:
       list.remove(a)
      
print(list)
The outpu..... More

Print this item

  "No gradients provided for any variable" error in Wasserstein GAN
Posted by: Kartik_Tulsian - Jan-27-2024, 06:26 AM - Forum: Data Science - No Replies

I have been working on a GAN model that is designed to output smiles sequences. During my training step I have been getting the error "Value Error: No..... More

Print this item

  Pandas hierarchical sum
Posted by: mariostg - Jan-26-2024, 03:17 PM - Forum: Data Science - Replies (1)

I have a data structure that looks like so
[output]
Cost Elements parent spent
1,1 2184AA None 0
1.1.1 ..... More

Print this item

  Produce One file Per PurchaseOrder
Posted by: jland47 - Jan-25-2024, 03:48 PM - Forum: General Coding Help - Replies (1)

I used a previous 3rd party python code and edited it to fit my new task, trying to understand each part of it and wanted to attempt to edit it on my ..... More

Print this item

  Apache Module
Posted by: jfha73 - Jan-25-2024, 03:42 PM - Forum: Web Scraping & Web Development - Replies (2)

Hey guys,

I currently have Apache running Python via CGI, but has anybody started to work on a module that allows Python to tun web pages? sort of ..... More

Print this item

  [subprocess] Why stdout sent to stderr?
Posted by: Winfried - Jan-25-2024, 02:50 PM - Forum: General Coding Help - Replies (3)

Hello,

Apparently, subprocess is currently the solution du jour to run an ext..... More

Print this item

  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: 225)
.py   player.py (Size: 9.91 KB / Downloads: 223)
.py   tictac.py (Size: 1.2 KB / Downloads: 208)
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: 211)
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 (8)

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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Gmpy2 Newbie Working on P... 38 minutes ago charlesrkiss SofiaJone General Codin...
  auto applying for jobs 7 hours ago alextony85 alextony85 General Codin...
  please help with image re... 7 hours ago magnus28 magnus28 General Codin...
  Create bot to automate op... 7 hours ago JonatasCavalini liberwicca General Codin...
  How to use a proxy when w... Yesterday, 16:02 swiftproxy Jemercyli Web Scraping ...
  Key Logger Yesterday, 02:42 Novaboxxx Novaboxxx Homework
  [Tkinter] passing value f... 07-24, 18:50 iqbshaik deanhystad GUI
  How to Create Swagger/Ope... 07-24, 17:47 tlopezdh amandaevans Web Scraping ...
  veri kazıma 07-24, 07:30 fehmikonkur DeaD_EyE Web Scraping ...
  Can I develop a live vide... 07-23, 07:08 mtrkhan MilesWeb Web Scraping ...
  python GUI - which to use... 07-23, 05:21 Johnse roshanchoudhary News and Disc...
Most views
  The best Prog... 572841
  Tutorial Requ... 485972
  Web Scraping ... 437298
  Newbie with P... 380346
  Thread remain... 351464
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8175
snippsat 7352
deanhystad 6864
metulburr 5152
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
SofiaJone Today
Hiddeninplainsite Today
Sanju4555 Today
alextony85 Yesterday
liberwicca Yesterday

User Panel Messages

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