Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,275
» Latest member: cruisesfares
» Forum threads: 38,789
» Forum posts: 175,862

Full Statistics

Online Users
There are currently 51 online users.
» 1 Member(s) | 45 Guest(s)
Applebot, Apple, Bing, Google, AOL, snippsat

Latest Threads
[BeautifulSoup] A few que...
Forum: Web Scraping & Web Development
Last Post: Winfried
15 minutes ago
» Replies: 0
» Views: 7
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 3
» Views: 222
link variable to exc bloc...
Forum: General Coding Help
Last Post: Gribouillis
Today, 05:03 AM
» Replies: 1
» Views: 101
PyQt6 QWidgets and system...
Forum: GUI
Last Post: Axel_Erfurt
Yesterday, 06:47 PM
» Replies: 2
» Views: 182
best way to learn python
Forum: News and Discussions
Last Post: mamta25
Yesterday, 04:13 PM
» Replies: 5
» Views: 3,098
[SOLVED] Access keys and ...
Forum: General Coding Help
Last Post: Winfried
Nov-17-2025, 11:47 AM
» Replies: 4
» Views: 209
PermissionError: [Errno 1...
Forum: GUI
Last Post: Tuurbo46
Nov-17-2025, 08:44 AM
» Replies: 2
» Views: 153
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
Nov-15-2025, 04:07 PM
» Replies: 2
» Views: 207
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Nov-15-2025, 01:00 PM
» Replies: 5
» Views: 375
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 89

 
  How to rotate log and limit the size
Posted by: maiya - Aug-29-2020, 12:37 AM - Forum: General Coding Help - No Replies

Hi All,

Below is my logging function and it is defined in my class. There are multiple functions are defined in my class and also a different file ..... More

Print this item

  [IndexError: List Index out of Range] RPG Game
Posted by: Donovan - Aug-29-2020, 12:29 AM - Forum: Game Development - Replies (3)

Hello everyone, I am following a guide that is for an RPG Game. It's titled, 'How to Write a Text Adventure in Python'

I have finished the tutorial..... More

Print this item

  Run an app in a standalone terminal and wait until it's closed
Posted by: glestwid - Aug-28-2020, 09:37 PM - Forum: General Coding Help - Replies (2)

I would like to run an app in a separated terminal from my Python3 script and make the script wait until I close the terminal. I tried to run this cod..... More

Print this item

  asyncio: executing tasks + httpserver
Posted by: freebsdd - Aug-28-2020, 09:30 PM - Forum: General Coding Help - Replies (2)

Hello All!

My English can be badly, sorry in advance

OS : Windows && ArchLinux
Python version 3.7.2

Task: Need do control by program use Htt..... More

Print this item

  Which GUI toolkit creating tool to measure distance/area on image
Posted by: kboortz - Aug-28-2020, 09:26 PM - Forum: GUI - Replies (1)

I'm new to GUI programming in Python. My first project would be a tool where you load an image (like a house plan) and can draw lines and polygons on ..... More

Print this item

  os.remove() Access is denied
Posted by: pythonnewbie138 - Aug-28-2020, 08:33 PM - Forum: General Coding Help - Replies (3)

I'm receiving the below error when attempting to use os.remove() if a directory is found to exist. I've seen suggestions of running t..... More

Print this item

  [XML] How to add new element to block?
Posted by: Winfried - Aug-28-2020, 04:09 PM - Forum: General Coding Help - No Replies

Hello,

Using BeautifulSoup, I can't figure out how to add a new element to the current block:

[python]from bs4 import BeautifulSoup as Soup

w..... More

Print this item

  post data to influxdb
Posted by: shahrilmajid - Aug-28-2020, 03:12 PM - Forum: General Coding Help - No Replies

hi .. i have a problem to send a data to influx db. here i have 2 code, need to modified

[python]this is for reading a sensor
import Adafruit_DHT..... More

Print this item

  MYSQL Update Query format
Posted by: simdo01 - Aug-28-2020, 02:49 PM - Forum: General Coding Help - Replies (1)

I am having trouble getting a database UPDATE query to run using variables. I get an error message of "1054 (42S22): Unknown column 'channel_bandwidth..... More

Print this item

  Using lambdas and map() to parse substrings in a single line
Posted by: Drone4four - Aug-28-2020, 01:59 PM - Forum: General Coding Help - Replies (5)

I’m learning about lambdas and the map() builtin. I’ve got an elegant lambda expression I came across online which takes a list of three subs string..... More

Print this item

  TypeError: 'type' object is not subscriptable
Posted by: Stef - Aug-28-2020, 01:31 PM - Forum: General Coding Help - Replies (1)

Hi,

I'm fairly new to Python and I'm getting this error and to be honest, I have no clue why. I get it when running a pytest. The full stacktrace i..... More

Print this item

  Cannot find reference
Posted by: spalisetty06 - Aug-28-2020, 01:10 PM - Forum: General Coding Help - Replies (9)

Hello,
I have imported the module named 'module' and I am trying to use the members in another file, I have installed packages as well, why do I stil..... More

Print this item

  Binary file
Posted by: Aussie - Aug-28-2020, 09:54 AM - Forum: General Coding Help - Replies (12)

Hi, I have been given a file and was told it was a binary file.

In Python I can open the file and read what I think is for four bytes (4).

byte..... More

Print this item

  How to convert what appears to be a JSON file to CSV
Posted by: NewBeie - Aug-28-2020, 09:34 AM - Forum: General Coding Help - Replies (4)

Hi,
I have this file below, the format looks like it's JSON but I'm not sure, I want to convert it to csv.

I have also attached the file for clear..... More


Attached Files

.txt   JSONfile.txt (Size: 2.7 KB / Downloads: 454)
Print this item

  scipy.signal findpeaks
Posted by: claw91 - Aug-28-2020, 09:28 AM - Forum: Data Science - Replies (10)

Hello there. I'm new to Python and my goal is to replicate Matlab's findpeaks prebuilt function.

The goal is to find positive and negative peaks. I..... More

Print this item

  attribute error instead of correct output
Posted by: MaartenRo - Aug-28-2020, 09:28 AM - Forum: General Coding Help - Replies (2)

Hi,

When running this code i should get " Hallo Zelda" but instead i get an error message. What am i doing wrong?

Any input is much appreciated!..... More

Print this item

  New open-source Python SDK for NEO blockchain
Posted by: Marsum - Aug-28-2020, 09:16 AM - Forum: News and Discussions - No Replies

Dear all,

the open-source developer community City of Zion has released its new SDK and smart contract repository for the [b]NEO blockchain ..... More

Print this item

  String formatting - tax brackets
Posted by: darek88 - Aug-28-2020, 09:15 AM - Forum: Homework - Replies (1)

In progressive tax systems, tax rates change according to the income. Tax brackets are divisions that regulate those changes.

Here's an example of ..... More

Print this item

  Update Python Files
Posted by: Harshil - Aug-28-2020, 08:32 AM - Forum: General Coding Help - Replies (3)

How to update python apps Without using any framework Hand in pyqt5.
Another Problem: And Replace The Old Source Code File File With Updated? I C..... More

Print this item

  API call question
Posted by: DPaul - Aug-28-2020, 07:38 AM - Forum: General Coding Help - Replies (6)

Hi,

When you launch an API call to the imdb (movie database) e.g. to retrieve details about a film (e.g. 'TOPKAPI'),
your response is an elaborate..... More

Print this item

  " Run constructors" instead of the correct line
Posted by: MaartenRo - Aug-28-2020, 06:40 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to run this code. Somehow it shows " Run constructors" instead of the line " Hallo daar!". What am i doing wrong?

Any input is m..... More

Print this item

  urllib is not a package traceback
Posted by: cc26 - Aug-28-2020, 04:13 AM - Forum: General Coding Help - Replies (3)

Hello! I'm in desperate need of help.

I'm attempting to run the following code:
[python]
import urllib.request, urllib.parse, urllib.error

fha..... More

Print this item

  Extracting data based on specific patterns in a text file
Posted by: K11 - Aug-28-2020, 04:09 AM - Forum: General Coding Help - Replies (1)

I have a huge report file with some data where i have to do some data processing on lines starting with the code "MLT-TRR" For now i have extracted al..... More

Print this item

  IM stuck and need help plz!
Posted by: ruprechtgaming - Aug-28-2020, 03:26 AM - Forum: General Coding Help - Replies (2)

i cant figure out how to open anything or code! plz help me!

Print this item

  Issue with HX711 reading
Posted by: duckredbeard - Aug-28-2020, 02:47 AM - Forum: General Coding Help - No Replies

I am getting the following error when running my code. I have a functioning version of this script, but this one is edited to include more LEDs and d..... More

Print this item

  List Identification
Posted by: Tbot1000 - Aug-28-2020, 01:44 AM - Forum: General Coding Help - Replies (2)

Hello! I've gotten back into python coding, and have been coding a text game, here is the code.

[python]#imports here
import random
import time
..... More

Print this item

  flask webhook response
Posted by: onicode5476 - Aug-28-2020, 01:19 AM - Forum: Web Scraping & Web Development - Replies (1)

hey, new to python and trying to get the data from my webhook response, tried a bunch of methods all not changing the result.

[python]from actions i..... More

Print this item

  sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation)
Posted by: py_kt - Aug-28-2020, 12:11 AM - Forum: Web Scraping & Web Development - Replies (3)

Hi,

I'm trying learn python and flask by building a simple web application.

The user will enter the product details in web application form whi..... More

Print this item

  Calculating consecutive days in a 3D array
Posted by: chai0404 - Aug-27-2020, 10:28 PM - Forum: Data Science - No Replies

I am trying to calculate the duration of consecutive days for a multidimensional array (latitude, longitude and time).
I have a piece of code that wo..... More

Print this item

  Smoothing Applications in Python
Posted by: xZeroCoolx - Aug-27-2020, 09:17 PM - Forum: Data Science - Replies (1)

Hello all.

New to the board.

I was wondering if anyone has experience or if there is any documentation anywhere around smoothing specifically ar..... More

Print this item

  Removing items from list if containing a substring
Posted by: pythonnewbie138 - Aug-27-2020, 09:10 PM - Forum: General Coding Help - Replies (2)

I'm trying to identify a file within a directory by removing list items containing an unwanted substring. When the script finishes running, list2 only..... More

Print this item

  Python Class and Object Parameters
Posted by: JoeDainton123 - Aug-27-2020, 08:58 PM - Forum: General Coding Help - Replies (5)

Hello all

Just a quick regarding classes and objects.

I have created a python file called Arm, which contains a class as shown below:-

[pytho..... More


Attached Files

Thumbnail(s)
   
Print this item

  [PyKML] Loop through all Placemarks; Remove namespace
Posted by: Winfried - Aug-27-2020, 07:53 PM - Forum: General Coding Help - Replies (2)

Hello,

The documentation on the PyKML site is a bit sparse for newbies, and I'm having two iss..... More

Print this item

  pip install scrapy fail
Posted by: Barak - Aug-27-2020, 07:40 PM - Forum: Web Scraping & Web Development - Replies (10)

Hi all
I am new to the forum

my computer runs win10.
I added python and conda to the path using this manual :
..... More

Print this item

  Stein's GCD according to given pseudo code
Posted by: wanttolearn - Aug-27-2020, 06:57 PM - Forum: Homework - Replies (2)

Hi,
I have an assignment where I was given a pseudo code based off of Stein's algorithm to get GCD. The pseudo code provided was:
k := 0
while x an..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [BeautifulSoup] A few que... 15 minutes ago Winfried Winfried Web Scraping ...
  Graph Interpolate Difficu... 2 hours ago Tuurbo46 deanhystad General Codin...
  link variable to exc bloc... Today, 05:03 Astrobert Gribouillis General Codin...
  PyQt6 QWidgets and system... Yesterday, 18:47 stevecoh1 Axel_Erfurt GUI
  best way to learn python Yesterday, 16:13 dutch mamta25 News and Disc...
  [SOLVED] Access keys and ... 11-17, 11:47 Winfried Winfried General Codin...
  PermissionError: [Errno 1... 11-17, 08:44 Tuurbo46 Tuurbo46 GUI
  How to make ball stay wit... 11-15, 16:07 nathanael deanhystad General Codin...
  sorting a lisr of file pa... 11-15, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
Most views
  The best Prog... 579152
  Tutorial Requ... 511585
  Web Scraping ... 442098
  Newbie with P... 386186
  New Users Int... 378813
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12108
buran 8196
snippsat 7389
deanhystad 6915
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
cruisesfares Today
SavingSquirrel199835 Yesterday
Astrobert Yesterday
DataScientist071 Yesterday
aminrony1999 11-17

User Panel Messages

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