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,937
» Latest member: atylerfraces2254
» Forum threads: 38,721
» Forum posts: 175,507

Full Statistics

Online Users
There are currently 65 online users.
» 0 Member(s) | 57 Guest(s)
Bing, Google, AOL, AOL, Facebook Dev

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 04:28 PM
» Replies: 11
» Views: 4,189
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 656
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,563
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 988
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,499
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,328
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,532
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,492
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,642
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,206

 
  Plz trace this line by line
Posted by: Sure - Jun-12-2021, 02:54 AM - Forum: General Coding Help - Replies (2)

[python]#n natural number s
def func(q):
if q>0:
return func(q-1)
return q
elif q==0:
return 0

print(func(5))[/p..... More

Print this item

  "." to "," when writing to .txt
Posted by: Lullaby - Jun-11-2021, 11:10 PM - Forum: General Coding Help - Replies (8)

[python]import time
from datetime import datetime

DS18B20="/sys/bus/w1/devices/28-01204febab44/w1_slave"

while True:

now = datetime.now()
..... More

Print this item

  Calculator code issue using list
Posted by: kirt6405 - Jun-11-2021, 09:46 PM - Forum: General Coding Help - Replies (4)

The problem is that when I choose / and input 5 and 0 (2nd number as 0) it is giving 0.0 but not printing the divisior is zero


[python]
#!/usr/b..... More

Print this item

  InvalidSchema(“No connection adapters were found for {!r}”.format(url))
Posted by: rhat398 - Jun-11-2021, 08:40 PM - Forum: Web Scraping & Web Development - No Replies

What does this error means and how to address this kind of error?I am getting this error

[error]Traceback (most recent call last):
File "load-mo..... More

Print this item

  Remove label after x seconds
Posted by: snakes - Jun-11-2021, 07:10 PM - Forum: GUI - Replies (3)

I've got a Label that pops up saying "Saved" after the user presses the "Save" button.

Is there any way to make this "Saved" Label disappear after ..... More

Print this item

  Error while transferring data from sqlite to elasticsearch - please help!
Posted by: ps96068 - Jun-11-2021, 05:32 PM - Forum: General Coding Help - Replies (1)

Hello to all members of the forum

There is a script that takes data from the db.sqlite database and transfers it to the elasticsearch database, whi..... More

Print this item

  Encrypting Oracle Passwords / Python Library for That?
Posted by: bmccollum - Jun-11-2021, 04:09 PM - Forum: General Coding Help - Replies (1)

I have numerous Python scripts that have been written over the past several years. Many of those interact with several Oracle databases in our office..... More

Print this item

  How to save Matplot chart to temp file?
Posted by: Morkus - Jun-11-2021, 02:16 PM - Forum: General Coding Help - Replies (2)

Can anyone tell me how I can save a Matplotlib chart to a temporary file I create using

tempfile.NamedTemporaryFile()
?

I can't use..... More

Print this item

  FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles
Posted by: Anldra12 - Jun-11-2021, 09:57 AM - Forum: General Coding Help - Replies (10)

[b]I make directory and sub directory in the same project to train and fit my model still get an error
FileNotFoundError: [Errno 2] No such file or..... More

Print this item

  New Advanced SQLAlchemy tutorial Added
Posted by: Larz60+ - Jun-11-2021, 02:34 AM - Forum: News and Discussions - No Replies

I just added a new tutorial 'SQLAlchemy Dynamic model generation and Database load directly from CSV'[/[url=https://python-forum.io/thread-33933.html]..... More

Print this item

  SQLAlchemy Dynamic model generation and Database load directly from CSV
Posted by: Larz60+ - Jun-11-2021, 02:26 AM - Forum: Tutorials - No Replies

Create an Airport Database using SQLAlchemy, with Dynamic Model Generation, Directly from CSV data

[b]EDIT Nov 22, 2021 - Fo..... More


Attached Files

Thumbnail(s)
   
Print this item

  Trying to get base64Encoded Matplotlib Data
Posted by: Morkus - Jun-10-2021, 06:58 PM - Forum: General Coding Help - No Replies

Hello,

I have a matplotlib figure that I want to return as a base64Encoded variable so it can be stored as a blob object. This variable would be th..... More

Print this item

  Aggregating CSV Data
Posted by: nb1214 - Jun-10-2021, 05:15 PM - Forum: General Coding Help - Replies (1)

I have a CSV file that I will be working with, and it contains a lot of data, and two of the columns are "Company Name" and "Sales". I would like to ..... More


Attached Files

.csv   Data Python (version 1).csv (Size: 292 bytes / Downloads: 461)
Print this item

Question Embedding a python file online
Posted by: Dreary35 - Jun-10-2021, 05:05 PM - Forum: General Coding Help - No Replies

I was wondering if there is a way I could embed a .py file online. I want to participate in the GMTK jam but I want to use pygame for it so I w..... More

Print this item

Video name is not defined
Posted by: pygauss10 - Jun-10-2021, 04:31 PM - Forum: General Coding Help - Replies (6)

(**English is not my native language; please excuse typing errors.)
I am running this opencv code with pycharm, but the weird thing is that it shows ..... More

Print this item

  Plotting sum of data files using simple code
Posted by: Laplace12 - Jun-10-2021, 01:26 PM - Forum: General Coding Help - Replies (3)

Hey,

I'm trying to plot the sum of 25 data files with 5 columns. The code is this:

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

Print this item

  Check if a Group/dataset path exists
Posted by: paul18fr - Jun-10-2021, 12:03 PM - Forum: Data Science - No Replies

Hi

I'm working on hdf5 files having group and subgroups, so I'm providing the path to the datasets or the groups. In practise, I know how to check ..... More

Print this item

  first project read from xslx get only 1 column\row?
Posted by: korenron - Jun-10-2021, 10:12 AM - Forum: Data Science - Replies (9)

Hello
I have xlsx file with 6 columns with 100 rows ~ .
the first thing I want to do is :
Read column A see the data , insert him to a list if it'..... More

Print this item

  scraping a table from an http page
Posted by: vchealy - Jun-10-2021, 09:40 AM - Forum: General Coding Help - Replies (1)

A website that I have to log into and work my way through to a page with selenium is okay.

The problem I have is getting the one table that is show..... More

Print this item

  Stop the serial read until video is recorded
Posted by: vj01 - Jun-10-2021, 09:33 AM - Forum: General Coding Help - Replies (1)

Hi

im new to python so of course i do understand that if this is a stupid question or at least an easy fix. my code does work as it takes a picture..... More

Print this item

  Dugeon maze game with turtle module.
Posted by: Newbie1114 - Jun-10-2021, 09:01 AM - Forum: Game Development - Replies (3)

Hi ,I am making a dungeon maze game with turtle module and there is an error and i don't know that what does that error mean and how to fix it.Please ..... More

Print this item

  Modifying Class File/ Name-Mangling
Posted by: CWillis105 - Jun-09-2021, 11:33 PM - Forum: Homework - Replies (4)

Python 3.9.5
Mac OS

Hi All,

I am working on an assignment and could really use some help. It involves two different files (Customer.py and main..... More

Print this item

  AttributeError while switching between Sprite Animations
Posted by: paulmills3 - Jun-09-2021, 02:51 PM - Forum: Game Development - Replies (2)

Getting an AttributeError(AttributeError: 'builtin_function_or_method' object has no attribute 'get_rect') after I added code to switch Sprite Animati..... More

Print this item

  Question from complete python's newbie
Posted by: Davicom - Jun-09-2021, 02:42 PM - Forum: General Coding Help - Replies (3)

Hi all,
there is a powerful python based program https://github.com/siberian-git/Xnoppo
This program works as an emby client and permit to reproduc..... More

Print this item

  Password Protection to the file
Posted by: San - Jun-09-2021, 02:00 PM - Forum: General Coding Help - No Replies

Hi All,

i am currently reading file from azure blob storage and sending email . I would like to add password protection to the attachment.
below i..... More

Print this item

Heart near "(": syntax error
Posted by: Maryan - Jun-09-2021, 01:52 PM - Forum: General Coding Help - Replies (3)

Hi guys, I need little help with the code below. I want to edit the guest room, name or surname, but I get "near "(": syntax error".
Any help is appr..... More

Print this item

  Python Regular expression, small sample works but not on file
Posted by: Acernz - Jun-09-2021, 01:34 PM - Forum: General Coding Help - Replies (5)

Hi Experts,

Small sample:
<span id="AccordionHeaderText52741" class="clsAccordionHeaderText"><a id="AccordionHeaderTab52741" tabIndex="101" onkey..... More


Attached Files

.txt   textsample.txt (Size: 29.62 KB / Downloads: 537)
Print this item

  No module named theapp
Posted by: Clives - Jun-09-2021, 11:55 AM - Forum: Web Scraping & Web Development - Replies (10)

Greetings,
I am developing a Flask application, but keep getting an error from:
import theapp
and
from theapp import app??

This is the fold..... More


Attached Files

Thumbnail(s)
   
Print this item

  VS Code debugger using wrong Python environment
Posted by: topfox - Jun-09-2021, 10:01 AM - Forum: General Coding Help - No Replies

I hope you can help me persuade the VS Code debugger to use the right environment.
Trying to run this sample file, mintest.py:

[python]import nump..... More

Print this item

  Fitting Gaussian curve to data file
Posted by: Laplace12 - Jun-09-2021, 09:15 AM - Forum: General Coding Help - No Replies

Hey,

I'm trying to build a code to fit Gaussians (1, 2 & 3) to some data to determine peak position, and though the code in itself seems to be worki..... More


Attached Files

Thumbnail(s)
   
Print this item

  How does this if clause work?
Posted by: Pedroski55 - Jun-09-2021, 09:04 AM - Forum: General Coding Help - Replies (3)

In this thread from just a couple of days ago here, an elegant solution was given.

I was impress..... More

Print this item

  Understanding Python super() for classes
Posted by: OmegaRed94 - Jun-09-2021, 08:48 AM - Forum: General Coding Help - Replies (1)

Good day, Dear Pythonistas

Could you, please, explain in a simple way why super() is used for classes sometimes. I saw many examples dealing..... More

Print this item

  how long can a line of code be?
Posted by: Skaperen - Jun-09-2021, 12:39 AM - Forum: General Coding Help - Replies (2)

how long can a line of code be that is generated and compiled and run without any biological creature trying to read it?

Print this item

  Acces atributes from a button defined in a class inside the .kv
Posted by: Tomli - Jun-09-2021, 12:30 AM - Forum: GUI - Replies (2)

Hello!
Lately I have been trying my luck on kivy, and I'm always having problem when I try to access attributes that have been defined in the .kv

..... More

Print this item

  Why does Python not use parenthesis to contain loops?
Posted by: davidorlow - Jun-08-2021, 10:48 PM - Forum: General Coding Help - Replies (3)

I'm following along with the MIT online course. I am a very elementary programmer, but I have some really basic knowledge of c++ and c#. Then I have..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
Most views
  The best Prog... 576440
  Tutorial Requ... 498262
  Web Scraping ... 440344
  Newbie with P... 384225
  New Users Int... 367275
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 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19
Hershien 09-19

User Panel Messages

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