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,558
» Latest member: OLanePulse
» Forum threads: 38,665
» Forum posts: 175,210

Full Statistics

Online Users
There are currently 238 online users.
» 0 Member(s) | 232 Guest(s)
Google, Apple, Bing, Yandex, Baidu

Latest Threads
LewisByday
Forum: General Coding Help
Last Post: OLanePulse
7 minutes ago
» Replies: 0
» Views: 3
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
5 hours ago
» Replies: 8
» Views: 10,636
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 03:49 PM
» Replies: 5
» Views: 238
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 11:36 AM
» Replies: 2
» Views: 151
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 105
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,650
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 750
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,215
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 455
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 243

 
  with open context inside of a recursive function
Posted by: billykid999 - May-23-2023, 01:42 AM - Forum: General Coding Help - Replies (1)

I'm writing code to check various routers, part of it includes checking the traffic statistics, which is parsed per router. So I need either an open('..... More

Print this item

  Index out of range error
Posted by: standenman - May-22-2023, 10:35 PM - Forum: Data Science - No Replies

I am trying to simply load a pdf doc and use langchain to process so I could query it with ChatGPT. I cannot get past loading the pdf doc. Cannot fig..... More

Print this item

  Creating a GUI
Posted by: flash77 - May-22-2023, 01:18 PM - Forum: GUI - Replies (2)

Hi,
as required, I started a new thread.

I'm very sorry for asking again, but unfortunately I can not handle this...

Could you please help me a..... More

Print this item

  Variables in a SCPI string
Posted by: thomaswfirth - May-22-2023, 01:00 PM - Forum: General Coding Help - Replies (3)

Hi, I'm new to Python programming and have been unable to find help with a question.
Can a variable be used within a SCPI command? I would like to se..... More

Print this item

  [Newbie] Multiple Array
Posted by: azhuda - May-22-2023, 09:19 AM - Forum: General Coding Help - Replies (3)

Hello, im just new in this python language,
Im seeking some advice or help on return value
My situation / scenario is like this :
im currently work..... More

Print this item

  Advancing Page Numbers
Posted by: knight2000 - May-22-2023, 07:09 AM - Forum: General Coding Help - Replies (4)

Hi all,

I want to be able to scrape different pages and categories within the same website. I have this code so far:

[python]from bs4 import Bea..... More

Print this item

  Convert a subreddit to a podcast with Python
Posted by: admtal - May-22-2023, 12:23 AM - Forum: Code sharing - No Replies

I'm thrilled to share my latest open source project with you, a Python script that turns a subreddit into a podcast!

https://github.com/AdmTal/cro..... More

Print this item

  Error 1064 (42000) when executing UPDATE SQL
Posted by: gratiszzzz - May-21-2023, 11:12 PM - Forum: General Coding Help - Replies (7)

Good afternoon:

I am trying to run an UPDATE query in SQL from python. I think the statement is correct, but it constantly returns an error. I do n..... More

Print this item

  Cannot import Langchain and openai.
Posted by: standenman - May-21-2023, 09:39 PM - Forum: Data Science - Replies (2)

I have a python virtual environment set up. I have installed langchain and openai. The cmd command "(MedSpacyVenv) C:\Users\stand\MedSpacyVenv>pip f..... More

Print this item

  My own Lan system
Posted by: Phidias618 - May-21-2023, 08:47 PM - Forum: Code Review - Replies (2)

Hey, I recently create a game, who need a comunication between 2 player and I came out with this, I just wan't to know if this code is not too terribl..... More

Print this item

  Get the value of arcsine(x) in a manner that I can understand.
Posted by: Pedroski55 - May-21-2023, 12:15 PM - Forum: General Coding Help - Replies (4)

I was never good at maths!

Now, I want to get the value of arcsine(y), given any particular sine(x) = y

I can plot sine(x), and, as I understand..... More

Print this item

  Output 'None'
Posted by: liketocode - May-21-2023, 11:27 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello

I have a problem with this site so i would like to know what im doing wrong. It works for another sites.
I'm practicing simple web scraping..... More

Print this item

  PyPI new user and new project registrations temporarily suspended.
Posted by: rob101 - May-20-2023, 09:28 PM - Forum: News and Discussions - Replies (2)

An interesting News Flash:

Incident Report for Python Infrastructure

[quote]
New user and new project name registrati..... More

Print this item

Sad I'm stuck with the reinforcement learning function in my Code
Posted by: OskiLori - May-20-2023, 07:31 PM - Forum: General Coding Help - Replies (2)

Hello everybody! I've got a problem with my code for my "VoiceAssistent", the normal code with speak function works well and makes everything right bu..... More

Print this item

  Centering and adding a push button to a grid window, TKinter
Posted by: Edward_ - May-20-2023, 04:04 PM - Forum: GUI - Replies (15)

This May be really simple, but I'm not finding enough details to help as I'm just learning TKinter.

I have a simple grid sourced by a Python list, ..... More

Print this item

  Validating and modifying a Spinbox
Posted by: pfdjhfuys - May-20-2023, 03:24 PM - Forum: GUI - Replies (2)

Below is a code snippet of a program that uses the SpinBox control. I want to the control to allow numbers between 1 and 100 as set in from_ ..... More

Print this item

Question image manipulation (cropping and MetaData)
Posted by: SpongeB0B - May-20-2023, 03:19 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm looking for a lightweight python tool(s)/package to manipulate images.

Actually I just need

Print this item

Question [solved] Classes, assign an attributes to a class not to instances..
Posted by: SpongeB0B - May-20-2023, 09:12 AM - Forum: General Coding Help - Replies (4)

Hi everyone,

I would like to create a class with a default dictionary attribute.
and when being Instantiated I would like to add (or not) some ite..... More

Print this item

  How to optimize analog gauge reader?
Posted by: kadink - May-19-2023, 08:58 PM - Forum: Data Science - No Replies

Hi there,

I am writing a program that reads an analog gauge with a webcam and returns the value that the gauge needle points at. (Disclaimer: most ..... More

Print this item

  Why do I have to repeat items in list slices in order to make this work?
Posted by: Pythonica - May-19-2023, 03:59 PM - Forum: General Coding Help - Replies (7)

Hello everyone, I was testing out making a f strings with parts of a list, and after experimenting a lot, I figured out how to make it work but I am c..... More

Print this item

  running the code and seeing the GUI
Posted by: chriswrcg - May-19-2023, 03:04 PM - Forum: GUI - Replies (1)

I am creating a code with pysimplegui and need to see if it is running. I am following along with a youtube tut but when he tests the code He see's t..... More

Print this item

  pyscript index error while calling input from html form
Posted by: pyscript_dude - May-19-2023, 02:53 PM - Forum: General Coding Help - Replies (2)

Hi,
I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use
[pyt..... More

Print this item

  Making a question answering chatbot based on the files I upload into python.
Posted by: Joejones - May-19-2023, 02:24 PM - Forum: General Coding Help - Replies (1)

I am using the coding below to get answers from files I upload. The problem is when I run the code it says this "Ask a question based on the text file..... More

Print this item

  convert result to hex ascii
Posted by: Jusufs - May-19-2023, 10:42 AM - Forum: General Coding Help - Replies (6)

Hi.
How to convert in Python3 sets of unsigned integer 16 bits to ASCII equivalent like picture please ?
Input is a 16bit unsigned int witch represe..... More


Attached Files

Thumbnail(s)
   
Print this item

  Beginner: Code not work when longer list
Posted by: raiviscoding - May-19-2023, 08:00 AM - Forum: General Coding Help - Replies (2)

Hello,

I been watching videos from python for everyone and there was this code.

[python]
numlist = list()
while True:
inp = input("Enter a numbe..... More

Print this item

Question Select multiple selection/box at once on frontend.
Posted by: SpongeB0B - May-19-2023, 07:42 AM - Forum: Web Scraping & Web Development - No Replies

Hi everyone,

I would like on a webpage, to be able to select/tick multiple "box/items" at once, by drawing a selection rectangle over them. ( Like ..... More

Print this item

  script to calculate data in csv-files
Posted by: ledgreve - May-19-2023, 07:24 AM - Forum: General Coding Help - No Replies

Hello everyone,

I have a bunch of csv-files (one per corpus) containing annotated data in multiple columns. I annotated aspects and sentiment. The ..... More

Print this item

  an object i would like to have
Posted by: Skaperen - May-18-2023, 07:18 PM - Forum: News and Discussions - Replies (3)

i would like to have an object that operates like a set but iterates its contents in sorted order.

Print this item

  Invalid command error with Entry object
Posted by: eliqm - May-18-2023, 07:00 PM - Forum: GUI - Replies (8)

Hello, I begin in python programmation and i have some problems. I tried to make a handman game with tkinter GUI but I encountered some errors that I ..... More


Attached Files

Thumbnail(s)
               
Print this item

  AttributeError
Posted by: Vidya - May-18-2023, 02:54 PM - Forum: General Coding Help - Replies (2)

HI,

Im new to python im trying to run the project but showing
[error]
class vector(collections.Sequence):
AttributeError: module 'collectio..... More


Attached Files

.py   base.py (Size: 13.17 KB / Downloads: 256)
Print this item

  tkinter AttributeError: 'GUI' object has no attribute
Posted by: pfdjhfuys - May-18-2023, 12:53 PM - Forum: GUI - Replies (3)

Hi,

When I click the button I expect the entry to be populated. Instead I get the error "[b]AttributeError: 'GUI' object has no attribute 'genPass..... More

Print this item

  rename file
Posted by: RolanRoll - May-17-2023, 08:21 PM - Forum: General Coding Help - No Replies

Hi help me please to do this exhausting action I must to rename each manifest files name in each folder (manifest.safe) to be recognized for image pro..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to run detectron2, as python embedded code in C++, on GPU?
Posted by: hassaniqbal931 - May-17-2023, 05:59 PM - Forum: General Coding Help - Replies (3)

I want to run detectron2 prediction as a Python Code embedded in a WebRTC C++ code. I am usi..... More

Print this item

  No desired output for code.
Posted by: James349 - May-17-2023, 03:21 PM - Forum: Homework - Replies (1)

Hello, I am working on a tic-tac-toe project for python for a 7 by 7 grid and I am supposed to define a specific depth and use alpha-beta pruning for ..... More

Print this item

  SQL FTS 5
Posted by: DPaul - May-17-2023, 06:12 AM - Forum: Bar - Replies (14)

Hi,
After OCR, I am left with texts that contain data.
I analyse these texts with python and put the relevant data into records that are inserted into..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  LewisByday 7 minutes ago OLanePulse OLanePulse General Codin...
  [PyGame] Made my first Py... 5 hours ago andrerocha1998 Ricky1178 Game Developm...
  gpiozero buttons stop wor... Yesterday, 15:49 duckredbeard deanhystad General Codin...
  How to package code for d... Yesterday, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
Most views
  The best Prog... 572718
  Tutorial Requ... 485782
  Web Scraping ... 437175
  Newbie with P... 380142
  Thread remain... 351393
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 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
OLanePulse Today
chocheng211 Today
comptonden1 Today
Gichardvop Yesterday
Ricky1178 Yesterday

User Panel Messages

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