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,493
» Latest member: Arush
» Forum threads: 38,579
» Forum posts: 174,819

Full Statistics

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

Latest Threads
Selenium - Error writing ...
Forum: Web Scraping & Web Development
Last Post: FrankSmoot
5 hours ago
» Replies: 2
» Views: 1,720
Error on import: SyntaxEr...
Forum: General Coding Help
Last Post: Kiongi
Yesterday, 07:49 AM
» Replies: 8
» Views: 21,150
Wish to write a code for ...
Forum: General Coding Help
Last Post: DeaD_EyE
Yesterday, 06:08 AM
» Replies: 3
» Views: 574
How can I write formatted...
Forum: General Coding Help
Last Post: hanmen9527
May-20-2025, 12:26 PM
» Replies: 13
» Views: 28,812
problems with netcdf if I...
Forum: General Coding Help
Last Post: vytlacfoto
May-20-2025, 05:31 AM
» Replies: 17
» Views: 1,512
How to attach images to a...
Forum: Board
Last Post: sethmike9
May-19-2025, 04:08 AM
» Replies: 6
» Views: 8,926
How To Attach data Files
Forum: Board
Last Post: sethmike9
May-19-2025, 04:05 AM
» Replies: 3
» Views: 4,182
Text frame
Forum: Homework
Last Post: Pedroski55
May-18-2025, 07:39 PM
» Replies: 2
» Views: 429
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
May-18-2025, 06:28 PM
» Replies: 0
» Views: 224
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 331

 
  what version has the fix for the CVEs?
Posted by: juniarti - Oct-18-2022, 09:01 PM - Forum: News and Discussions - Replies (11)

Hi,
I have list of CVE for python and how do I find out what python version did has the fix for these list of CVE?
CVE-2018-20060, CVE-2019-16935, C..... More

Print this item

  Taking any 2d image and passing it to create a level
Posted by: iki_a_toure - Oct-18-2022, 09:00 PM - Forum: General Coding Help - Replies (4)

Hello,

I need help please. I am trying to figure out how can I take any 2d image I got and pass it in a python program with outlines that would act..... More

Print this item

  help RuntimeError: no running event loop
Posted by: marpaslight - Oct-18-2022, 07:14 PM - Forum: General Coding Help - Replies (5)

[python]from dataclasses import dataclass
from tkinter.messagebox import YES
from telethon import TelegramClient
from telethon import utils
from t..... More

Print this item

  mysql id auto increment not working
Posted by: tantony - Oct-18-2022, 02:25 PM - Forum: General Coding Help - Replies (10)

I deleted ID 2 from mySQL db, but then I have the following to AUTO INCREMENT

[python]import mysql.connector

mydb = mysql.connector.connect(
..... More

Print this item

  Post Request containing username/password using python for jwt
Posted by: anna - Oct-18-2022, 02:24 PM - Forum: Networking - Replies (1)

Hi All,

I am trying to get token through requests with user and password, there one small javascript provided by Vendor (this was demo in postman)...... More

Print this item

  NameError
Posted by: nafshar - Oct-18-2022, 01:24 PM - Forum: General Coding Help - Replies (3)

I am getting a NameError that I do not understand.
It appears the function "combo" is defined in the proper place, so "combo not found" is puzzling ..... More

Print this item

  Unresolved reference problem
Posted by: john7 - Oct-18-2022, 10:05 AM - Forum: General Coding Help - Replies (1)

In the function

[python]
def parse_message(msg_data):
ival = 0
fval = 0.0
opcode = msg_data[3]

if opcode == MSG_OPCODE_V..... More

Print this item

  Saving the times a script is run to a file or ...
Posted by: 3Pinter - Oct-18-2022, 05:46 AM - Forum: General Coding Help - Replies (7)

Hi,

I have a lot of scripts from which I'd like to know the amount of times it was run.

I coded a working version a long time ago plus I was eve..... More

Print this item

  Python Snippets Source
Posted by: kucingkembar - Oct-18-2022, 12:50 AM - Forum: General Coding Help - No Replies

hi, sorry for my bad English,
after previously I ask about "subscripts" in https://python-forum.io/thread-38441.html,
turn out it is called "Snippet..... More

Print this item

  Error TypeError: output_type_handler() takes 2 positional arguments but 6 were given
Posted by: paulo79 - Oct-17-2022, 06:23 PM - Forum: General Coding Help - Replies (1)

Hi all, I'm running a python code that was working before with older version. Now using 3.10 I'm gettin error below:

[python]TypeError: output_typ..... More

Print this item

  import module error
Posted by: tantony - Oct-17-2022, 04:29 PM - Forum: General Coding Help - Replies (5)

I'm learning Flask by watching a YouTube tutorial

https://www.youtube.com/watch?v=dam0GPOAvVI
https://github.com/techwithtim/Flask-Web-App-Tutorial/t..... More

Print this item

  Code
Posted by: StoneCherry0119 - Oct-17-2022, 03:03 PM - Forum: General Coding Help - Replies (4)

Python code

Print this item

  export project to an installable software in Pycharm
Posted by: jalal0034 - Oct-17-2022, 12:25 PM - Forum: General Coding Help - Replies (2)

Hi everybody
How can create an installable software with all needed files and packages in Pycharm ?

Print this item

  python call stored procedure
Posted by: mg24 - Oct-17-2022, 08:07 AM - Forum: General Coding Help - Replies (2)

Hi Team,

Need help how to call stored procedure via python.

I am using pyodbc libarary.

[python]query = """EXEC[DBS_database].[dbo].[sp_Reco..... More

Print this item

  Can't stop if statement from executing even though False + Messy code?
Posted by: monkeydesu - Oct-17-2022, 01:46 AM - Forum: Homework - Replies (1)

I'm doing the 100 days of Python on Udemy and am doing the day 15 challenge. I'm tasked with making a coffee machine, ask which drink from user, ask f..... More

Print this item

  401 Unauth error
Posted by: GUaro5555 - Oct-17-2022, 01:06 AM - Forum: Web Scraping & Web Development - Replies (7)

Hi gurus .

I m still very new to python so go easy on me, I have been trying to create this project that login to a website, what I have so far is ..... More

Print this item

  black
Posted by: Skaperen - Oct-17-2022, 12:59 AM - Forum: News and Discussions - Replies (10)

it turns out that i do not like various details of how black formats my code. so, i hope this is just defaults that can be changed, somehow. ..... More

Print this item

  Something the code dont work
Posted by: AlexPython - Oct-17-2022, 12:39 AM - Forum: General Coding Help - Replies (13)

I have a little problem with this code, it works sometimes, and something it doesn't. I don't know what is causing the problem. beneath, I will provid..... More

Print this item

  Convert Excel file into csv with Pipe symbol..
Posted by: mg24 - Oct-16-2022, 06:01 PM - Forum: General Coding Help - Replies (4)

Hi Team,

I have excel file, I want to read that excel file and save it into csv files.
But delimiter I expect "|" symbol instead of comma,


1..... More

Print this item

  num+1
Posted by: astral_travel - Oct-16-2022, 02:15 PM - Forum: General Coding Help - Replies (12)

hi,
in the following code:

[python]
__author__ = 'jeffreyhunt'

num = int(input("Please choose a number to divide: "))

listRange = list(rang..... More

Print this item

  Hopfield network for classification
Posted by: saoko - Oct-16-2022, 11:30 AM - Forum: News and Discussions - Replies (1)

Hi everyone!
I had a task to create Hopfield network for classification with Iris dataset. I went through Internet, but found nothing about it.
Is..... More

Print this item

  Transform 2d plot into 1d plot for som
Posted by: saoko - Oct-16-2022, 09:12 AM - Forum: General Coding Help - No Replies

Hi everyone!
I'm trying to understand self-organising map neural network with Python. Here's a code:

[python]
import numpy as np
from numpy.ma...... More

Print this item

  Row Count and coloumn count
Posted by: Yegor123 - Oct-15-2022, 06:13 PM - Forum: General Coding Help - Replies (4)

Im making my first game on python and it was talking about adding row and coloumn counts could someone explain what that means and what does it do ?

Print this item

  Add root node to xml
Posted by: SriRajesh - Oct-15-2022, 02:20 PM - Forum: General Coding Help - Replies (3)

Hi,
I generated xml string and want to add root node:

#lets create a dataframe
df=pd.DataFrame({'A':[1,2,3],'B':['a','b','c']})

[python]def to..... More

Print this item

  Python presentation materials
Posted by: PA3040 - Oct-15-2022, 07:18 AM - Forum: News and Discussions - Replies (2)

Hi Team,
I am teacher of middle school
we have decided to teach python for our school students from grade 8 onwards
it would be grate if some one ..... More

Print this item

  Get http header ?
Posted by: JohnnyCoffee - Oct-14-2022, 11:06 PM - Forum: Networking - Replies (1)

I'm using the wsgiref module to run an application and I need to get the request header that comes from the client's browser to handle http responses,..... More

Print this item

  is there an unused character in Python?
Posted by: Skaperen - Oct-14-2022, 10:59 PM - Forum: News and Discussions - Replies (8)

is there an unused character in Python? i'm looking for a character i won't see outside of quotes that i can drop into my code for some source proces..... More

Print this item

  Starting place for Pygame Mobile app
Posted by: XavierPlatinum - Oct-14-2022, 10:46 PM - Forum: Game Development - Replies (2)

For anyone who's made mobile apps before, where is a smart place to start making a pygame game for android? Is there a simple template I can dissect ..... More

Print this item

Exclamation IndexError: Replacement index 2 out of range for positional args tuple - help?
Posted by: MrKnd94 - Oct-14-2022, 09:46 PM - Forum: General Coding Help - Replies (2)

Hello.

I've been trying for days to fix this error, but to no avail.

This is the code:

[python]def secret_formula(started):
jelly_beans ..... More

Print this item

  Print not appearing in output
Posted by: dgizzly - Oct-14-2022, 09:41 PM - Forum: Homework - Replies (1)

[python]
def main():
#Intro
print("Roulette Wheel Colors App...")


#Prompt user for numbers (0-36)
print("Please eneter poc..... More

Print this item

  New learner in Python, and need help on the term explanation
Posted by: BaicaiPy - Oct-14-2022, 05:37 PM - Forum: Homework - Replies (3)

[b]• Auto load the initial data given in pdf file
• You required to use an appropriate data structure to represent the initial data in-memory.
• It ..... More

Print this item

  dynamic object creation using python
Posted by: gary - Oct-14-2022, 04:27 PM - Forum: General Coding Help - Replies (7)

I have the following requirement
1. Create several geometric objects such as square, triangle, circle etc.
2. Need to create a drop down menu that d..... More

Print this item

  Python Idle won't start
Posted by: totalmachine - Oct-14-2022, 04:12 PM - Forum: General Coding Help - Replies (9)

Output of "idle &" in terminal after garuda linux upgrade:

[error]File "/usr/bin/idle", line 3, in
from idlelib.pyshell import main
File "/usr/li..... More

Print this item

  List of Modules/Libraries Installed by Default?
Posted by: rontarrant - Oct-14-2022, 12:24 PM - Forum: General Coding Help - Replies (2)

I know I can get a list of what's installed using:
pip freeze

However, I don't know which of the installed modules/librar..... More

Print this item

  PowerBI: Using Python Regex to look for values in column
Posted by: MarcusR44 - Oct-14-2022, 10:24 AM - Forum: General Coding Help - Replies (1)

I'm trying to add a column called ofInterest to select UK postcodes that match RG, OX & SA, the column would contain a 1 if the match is found, or 0 i..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Selenium - Error writing ... 5 hours ago brunox96 FrankSmoot Web Scraping ...
  Error on import: SyntaxEr... Yesterday, 07:49 kirkwilliams2049 Kiongi General Codin...
  Wish to write a code for ... Yesterday, 06:08 Hasan2025 DeaD_EyE General Codin...
  How can I write formatted... 05-20, 12:26 JohnJSal hanmen9527 General Codin...
  problems with netcdf if I... 05-20, 05:31 Blaubart vytlacfoto General Codin...
  How to attach images to a... 05-19, 04:08 CynthiaMoore sethmike9 Board
  How To Attach data Files 05-19, 04:05 Talch sethmike9 Board
  Text frame 05-18, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... 05-18, 18:28 olips784 olips784 General Codin...
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
Most views
  The best Prog... 566714
  Tutorial Requ... 462131
  Web Scraping ... 431619
  Newbie with P... 369017
  Thread remain... 341144
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12052
buran 8170
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
Arush Yesterday
ishani007 Yesterday
blueglasses Yesterday
Kiongi Yesterday
daddatyagi Yesterday

User Panel Messages

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