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,936
» Latest member: AstoundzSEO
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 51 online users.
» 0 Member(s) | 41 Guest(s)
Facebook, Bing, AOL, Google, AOL, Applebot

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 3,019
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,437
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 461
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 721
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,840
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 824
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 410
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,364
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,582
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 1,240

 
  How to save specific variable in for loop in to the database?
Posted by: ilknurg - Mar-09-2022, 11:27 AM - Forum: General Coding Help - Replies (1)

have commands like:

SELECT UserName FROM Win32_ComputerSystem
which gives me the username of computer. or [b]SELECT Manufacturer, Model FRO..... More

Print this item

  VSCODE Split Editor Window
Posted by: Krischu - Mar-09-2022, 07:28 AM - Forum: General Coding Help - Replies (1)

Version: 1.65.1 (Universal)
Commit: 8908a9ca0f221f36507231afb39d2d8d1e182702
Date: 2022-03-08T02:20:11.670Z
Electron: 13.5.2
Chromium: 91.0.4472.1..... More

Print this item

  Opening an empty Jupyter notebook in VSCODE
Posted by: Krischu - Mar-09-2022, 06:54 AM - Forum: General Coding Help - Replies (3)

Hi, I'm new to this forum.

I installed VSCODE 1.65.1 (macOS BigSur) with python and Jupyter. I'm able to drag and drop an .ipynb file into the edit..... More

Print this item

  an array to count votes
Posted by: thechungusmaximus - Mar-09-2022, 01:56 AM - Forum: Homework - Replies (2)

i need to make a code that counts the votes from 3 candidates from 4 different places, each person from those places can vote only once. the code has ..... More

Print this item

  Help add for loop results in a list
Posted by: paulo79 - Mar-09-2022, 12:26 AM - Forum: General Coding Help - Replies (4)

Hi all,

I'm new to Python. I have this :
[python]>>> import xml.etree.ElementTree as ET
>>> xml_to_parse1 = ET.parse('/tmp/xmlfile.xml')
>>> g..... More

Print this item

  How to store the resulting Doc objects into a list named A
Posted by: xinyulon - Mar-08-2022, 10:25 PM - Forum: General Coding Help - Replies (1)

Hey folks. I am a real new beginner for python and NLP.
I am stuck with this question: Store the resulting Doc objects into a list name A"
Is it poss..... More

Print this item

Bug Need Pointers/Advise for Cleaning up BS4 XPATH Data
Posted by: BrandonKastning - Mar-08-2022, 12:28 PM - Forum: Web Scraping & Web Development - No Replies

No syntax errors. Script runs!

I am having problems with BS4 & XPATH. BS4 (tag) = column1(courtlistener_case_name) and works perfect. BS4 (xpath) ..... More

Print this item

  How to save files in a separate directory
Posted by: Scordomaniac - Mar-08-2022, 10:31 AM - Forum: General Coding Help - Replies (3)

Hey, i'm working on a games save/loading function.
this is my code that find the file path for the players save (loading the save)
it works by findi..... More

Print this item

  ADS1256 RB PI3+
Posted by: frohr - Mar-08-2022, 08:44 AM - Forum: General Coding Help - No Replies

Hi,
I have RB PI 3+ and Waveshare ADS1256 ADC24bit. I need read at speed 30kSPS to buffer, for example 20k values after button pressed.
I try to use..... More

Print this item

  Fetching Images from DB in Django
Posted by: Dexty - Mar-08-2022, 04:51 AM - Forum: Web Scraping & Web Development - Replies (2)

It's a blog post and I already uploaded images to each post on the Admin page. The images aren't showing in the template, for some reason.
Project t..... More

Print this item

  How to find tags using specific text (timestamps) in a url?
Posted by: q988988 - Mar-08-2022, 02:24 AM - Forum: General Coding Help - Replies (1)

The tags are in the following format:

<pre>
<a href="../">../</a>
< a href="the text I want to extract" > the text I want to extract/</a>
..... More

Print this item

Question How do I skipkeys on json file read to python dictionary?
Posted by: BrandonKastning - Mar-07-2022, 10:48 PM - Forum: General Coding Help - Replies (3)

Here is a sample block of my code:

[CODE]
# Source: JSON - Courtlistener.com : https://www.courtlistener.com/api/rest/v3/opinions/47..... More

Print this item

  "django" is valid numeric from request.GET
Posted by: lemonred - Mar-07-2022, 08:23 PM - Forum: Web Scraping & Web Development - No Replies

Hi , my problem solved solution check is numeiric query request get.
Idea ?
My CODE:
[python]class ListViewPhoto(AdminAndStaffMixing, ListView):..... More

Print this item

  Python 3.8 on Ubuntu 20.04
Posted by: erdemath - Mar-07-2022, 04:33 PM - Forum: General Coding Help - Replies (1)

Hi,

Every time I start PyCharm Community through ubuntu terminal I see the following warning messages. And I believe this slows down my code from #..... More

Print this item

Question Problems with variables in multithreading
Posted by: Wombaz - Mar-07-2022, 02:39 PM - Forum: General Coding Help - Replies (2)

I have a problem and have no idea how to solve it. So I have n-threads to download data via bluetooth. This data has to go through a handler which unf..... More

Print this item

  JSONDecodeError: Expecting value
Posted by: mehtamonita - Mar-07-2022, 10:05 AM - Forum: General Coding Help - Replies (1)

Hi,

I'm trying to read json content from a url, however, it is displaying the below error in spite of status 200 (<Response [200]>).

JSONDecode..... More

Print this item

  Chi-square with the contingency table applied to the die
Posted by: Leloup - Mar-07-2022, 09:39 AM - Forum: Data Science - Replies (4)

Bonjour,

I am trying to apply the χ2 test by contingency table from the exploratory statistics course to the results given in Example 1 from Wikipe..... More


Attached Files

Thumbnail(s)
   
Print this item

  Download mp4 files from an url
Posted by: q988988 - Mar-07-2022, 05:14 AM - Forum: General Coding Help - Replies (2)

I am trying to get some codes to be able to: enter the time frame (e.g. 2021-11-25 11:00 to 2021-11-29 02:19) -> find the links corresponding to those..... More


Attached Files

Thumbnail(s)
   
Print this item

  what can i uuse ... for?
Posted by: Skaperen - Mar-07-2022, 02:05 AM - Forum: News and Discussions - Replies (7)

i have a function with an argument that needs to be highly flexible. it already has various cases for ints and strings and True and False. i am wond..... More

Print this item

  Saving the state of a program...
Posted by: bytecrunch - Mar-07-2022, 12:57 AM - Forum: General Coding Help - Replies (5)

Hello,

I would like to make sure that I have the correct understanding of what saving the state of a program means. Say we write a Py..... More

Print this item

  is there an implied encodin in file names being opened?
Posted by: Skaperen - Mar-07-2022, 12:09 AM - Forum: News and Discussions - Replies (10)

the encoding= option of open() applies to the file contents (according to The Python Library Reference) . there appears to be no way to specif..... More

Print this item

  wait for the first of these events
Posted by: Skaperen - Mar-06-2022, 11:12 PM - Forum: General Coding Help - Replies (4)

i want to wait for the first event to happen of these two events

1. the time one second in the future. just doing time.sleep() is not usable sinc..... More

Print this item

  dict class override: how access parent values?
Posted by: Andrey - Mar-06-2022, 10:32 PM - Forum: General Coding Help - Replies (1)

I'm try override dict class for way that compatible with standart dict class. How i can get access to parent dict attribute if i override getitem meth..... More

Print this item

  Unable to send email attachments
Posted by: cosmarchy - Mar-06-2022, 07:28 PM - Forum: General Coding Help - Replies (7)

Hi,

I'm trying to end email attachments and have written the following:
[python]import os
import smtplib
import random
from email.mime.multipa..... More

Print this item

  Clicking on the button crashes the TK window
Posted by: ODOshmockenberg - Mar-06-2022, 05:33 PM - Forum: GUI - Replies (1)

[python]import time
from tkinter import *

import pyautogui

root = Tk()
root.geometry('400x200')

def button_command():
text = int (entr..... More

Print this item

  Refactoring to a class
Posted by: Tek - Mar-06-2022, 03:28 PM - Forum: General Coding Help - Replies (1)

I've got an old and simple procedural port scanner script that I'm working on refactoring into a class. They are certainly not functioning similarly a..... More

Print this item

  performance in network host of manager in multiprocessing
Posted by: rmaleki - Mar-06-2022, 02:09 PM - Forum: Networking - Replies (2)

Hi
I run my own project with gunicorn (multi worker) and I wanted to share objects between processes. I used BaseManager from the multiprocessing pyt..... More

Print this item

  SOLVED: scipy.optimize.least_squares problem
Posted by: Skytter13 - Mar-06-2022, 09:50 AM - Forum: Data Science - Replies (2)

Hi,
I'm trying to make a code to solve a overdetermined system of non-linear equations.
It is to be used to locate positions of instruments on sea ..... More

Print this item

  Django and AWS S3 media storage
Posted by: rwahdan - Mar-06-2022, 08:47 AM - Forum: Web Scraping & Web Development - No Replies

Hi,

I have an app that will upload photos and videos but i keep getting server error 500. I am not sure how to configure the AWS S3 for media corre..... More

Print this item

  Get online(Live) sound from Mic?
Posted by: korenron - Mar-06-2022, 08:36 AM - Forum: General Coding Help - No Replies

Hello,
I have connected a usb mic to my pi and I can record from it (so everything is working :-) )

I want to be abel to get real-time audio ,
ca..... More

Print this item

  confused about string formatting
Posted by: barryjo - Mar-05-2022, 09:45 PM - Forum: General Coding Help - Replies (7)

I am confused about string formatting.

If I have a number 14.20003 I want to make it into a string s = 14.20

Do I use the "f" format or the "%" ..... More

Print this item

  Mock obj - How to call the side_effect every time during the run?
Posted by: pythonisbae - Mar-05-2022, 03:07 PM - Forum: General Coding Help - Replies (3)

I need to mock an object with a bunch of methods. For all except one Mock() is perfect for me. But for one of the methods, I actually need to call a f..... More

Print this item

  ModuleNotFound error.
Posted by: hammer - Mar-05-2022, 01:17 PM - Forum: General Coding Help - Replies (5)

I created a new environment (env2) and used pip to install KivyCalendar-indicates installed successfully,see below. The application and its associated..... More

Print this item

  What Python skills for a fraud detective?
Posted by: MaartenRo - Mar-05-2022, 05:14 AM - Forum: Bar - Replies (3)

Hi,

I am going to work at a government agency as a financial fraud IT detective. At the agency we confiscate computers from suspected individuals a..... More

Print this item

  The simplest way to search through Csv
Posted by: Ayobami_codes - Mar-05-2022, 01:17 AM - Forum: Code Review - No Replies

Hi there, i have got some set of csv i auto generate and i need advise on the following:

1. i have three labels on the csv ( Serial Number, Starti..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 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...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 576023
  Tutorial Requ... 497462
  Web Scraping ... 439986
  Newbie with P... 383735
  New Users Int... 366210
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday

User Panel Messages

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