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,939
» Latest member: goodvicent
» Forum threads: 38,723
» Forum posts: 175,512

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 46 Guest(s)
Bing, Google, AOL

Latest Threads
NEED HELP, LOST OF INVEST...
Forum: General Coding Help
Last Post: goodvicent
1 hour ago
» Replies: 0
» Views: 43
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
6 hours ago
» Replies: 11
» Views: 4,054
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 548
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,497
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 901
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,385
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,242
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,450
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,417
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,556

 
  Using print command to send command to rasberry pi terminal
Posted by: MondazeBear - Jul-29-2021, 02:51 AM - Forum: General Coding Help - Replies (2)

Currently I am trying to sense distance then < 20cm code will print a command into the rasberry pi terminal(cmd) what is the command used to print a f..... More

Print this item

  Put zero for x axis values
Posted by: quest - Jul-28-2021, 11:03 PM - Forum: General Coding Help - Replies (4)

Hello,
I have this dict:

od = OrderedDict([(0, 1), (1, 1), (3, 1), (7, 1), (36, 1)])
And I am plotting this array with the followin..... More

Print this item

  How to open a list of websites
Posted by: Tyrel - Jul-28-2021, 09:01 PM - Forum: General Coding Help - Replies (4)

Could someone please help,

web_value.txt:

http://google.com
http://YouTube.com
openwebsites.py:

[python]import webbrowser..... More

Print this item

  Play the next music in a list
Posted by: Pymax - Jul-28-2021, 07:26 PM - Forum: General Coding Help - No Replies

Hi everyone, I'm looking for a way to play the next music from a list. I use pygame.mixer to play a music from lists_of_songs, I can't find a way to p..... More

Print this item

  Problem Using SQL Placeholder In MySQL Query
Posted by: AdeS - Jul-28-2021, 03:57 PM - Forum: General Coding Help - Replies (11)

Hi all, I'm very new to Python (7 days and counting) and seem to be having problems with passing in variables into my SELECT query.

The intention i..... More

Print this item

  MD
Posted by: nio74maz - Jul-28-2021, 02:15 PM - Forum: GUI - Replies (2)

Good Day I’m trying to implement a Mddatatable on a file.py that in turn uses a filke.kv for buttons etc, how do I get them to work together as the Md..... More

Print this item

  Error using mariadb select query with form in python?
Posted by: shams - Jul-28-2021, 11:36 AM - Forum: General Coding Help - Replies (2)

I want to use form with mariadb in python, i want to pass the id from form to mariadb select query to print the selected table row, this is index.htm..... More

Print this item

  Accessing varying command line arguements
Posted by: Rakshan - Jul-28-2021, 11:15 AM - Forum: General Coding Help - Replies (3)

I am using a java jar in Pycharm environment to achieve testing in a pythion environment.
To make the application more interactive, we plan to use com..... More

Print this item

  Plotting simple graph (AttributeError)
Posted by: Laplace12 - Jul-28-2021, 10:58 AM - Forum: General Coding Help - No Replies

Hey,

I'm trying to plot energy as a function of My. I want to plot the function for values of n between 1-10, but the code returns an AttributeErro..... More

Print this item

  Extracting and printing data
Posted by: ajitnayak1987 - Jul-28-2021, 09:30 AM - Forum: General Coding Help - No Replies

I am a newbie here. I have written simple code for reading purposes. I wanted to how can print the value from the Base class itself

I have a Breed ..... More

Print this item

  'str' object is not callable
Posted by: ZYSIA - Jul-28-2021, 09:27 AM - Forum: General Coding Help - Replies (8)

this is my script below :
when i first run, everything is normal and prompt user "Do you want a new reading :"
but when i key in yes and the error ..... More

Print this item

  first time use of locust - this is the place to ask?
Posted by: korenron - Jul-28-2021, 08:26 AM - Forum: Web Scraping & Web Development - No Replies

Hello,
wanted to know if someone can explain to me something :

I have a remove server that work as a syslog server. getting around 100 udp message..... More

Print this item

  Pandas Data frame column condition check based on length of the value
Posted by: aditi06 - Jul-28-2021, 01:35 AM - Forum: Data Science - Replies (1)

I have pandas data frame which gets created by reading an excel file. The excel file has a column called serial number. Then I pass a serial number to..... More

Print this item

  python3 vs python
Posted by: Skaperen - Jul-28-2021, 01:12 AM - Forum: News and Discussions - Replies (4)

are we ever going to use the name "python" (without the "3") as an alias/equivalent for "python3" in the context of the name of the executable? or wi..... More

Print this item

  Converting 'Time' to AM/PM
Posted by: tester_V - Jul-27-2021, 08:58 PM - Forum: General Coding Help - Replies (18)

Greetings to all!
I'm sure I'm trying to invent a bicycle.
I need to convert strings in the following format to AM/PM:
[python]
st = '2021-07-05-..... More

Print this item

  python keeps opening script directory
Posted by: Tyrel - Jul-27-2021, 06:23 PM - Forum: General Coding Help - Replies (5)

Could someone please help,

openwebsites.py:

[python]import webbrowser
import os


def websites():
websitelist = "Setup1\\web_value.txt"..... More

Print this item

  asyncio stops responding to requests
Posted by: mansky - Jul-27-2021, 05:48 PM - Forum: Networking - Replies (1)

Hi All,

I have a interesting problem with a server script I am working on.

The Python 3.6 server script takes requests from a client program wri..... More

Print this item

  Logstash - sending Logstash messages to another host in case of Failover in python
Posted by: Suriya - Jul-27-2021, 02:02 PM - Forum: General Coding Help - No Replies

I'm currently using TCPLogstashHandler to send Logstash messages using TCP. The below code is used to add the TCPLogstashHandler to the root logger.
..... More

Print this item

  Unable to access jarfile
Posted by: Rakshan - Jul-27-2021, 11:44 AM - Forum: General Coding Help - Replies (2)

I had a java application which was testing servers.
We are migrating to python, and for a start we are making use of the jar from the java applicatio..... More

Print this item

  Fastest Way of Writing/Reading Data
Posted by: JamesA - Jul-27-2021, 10:17 AM - Forum: General Coding Help - Replies (1)

I have inherited a script that scrapes data from the web every few seconds and stores it in a mysql database. It then deletes data that is more than 3..... More

Print this item

  Pool multiprocessing - know current status in loop?
Posted by: korenron - Jul-27-2021, 08:36 AM - Forum: General Coding Help - No Replies

Hello,
wanted to know if there is a way to know what is the current status in the loop while running pool?
for example
I have a list of 10000 ite..... More

Print this item

Question PDF generation / edit
Posted by: SpongeB0B - Jul-27-2021, 07:58 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I made a little website with flask, now I would like to generate a pdf (static) with the content of that website.

By static I mean ..... More

Print this item

  Nested Conditionals
Posted by: shen123 - Jul-27-2021, 07:43 AM - Forum: General Coding Help - Replies (3)

Hi All Big Grin

I am new to python. I am doing this tutorial on nested conditions coding however I am stuck. I appreciate some help with it.
..... More

Print this item

Lightbulb Feedback needed! Controlled entropy in programs with 'ordered' module
Posted by: grandrew - Jul-27-2021, 01:49 AM - Forum: News and Discussions - No Replies

Hi all!

Me and my team are working on a very new concept - controlled entropy in program code.

It should make a lot easier to solve very..... More

Print this item

  Apache 2.0 Licensed Python code
Posted by: Furkan - Jul-26-2021, 11:12 PM - Forum: General Coding Help - No Replies

Hi, i want to use Apache 2.0 Licensed module in my code and i have a few questions:

1- If i use an Apache 2.0 licensed code, should my code be lice..... More

Print this item

  Idle debugger pops up Run.py - library?
Posted by: fred1232 - Jul-26-2021, 10:24 PM - Forum: General Coding Help - Replies (1)

I'm learning Python basics using Python IDLE. When I step through code I keep getting a page of incomprehensible data with the following heading: "Ru..... More

Print this item

  Arrays faster than pandas?
Posted by: Mark17 - Jul-26-2021, 06:07 PM - Forum: Data Science - Replies (4)

I just learned that Python is slow with regard to numbers because they are generally wrapped as objects with associated attributes. The memory burden..... More

Print this item

  Looking for discord bot to make loop ping for address ip
Posted by: tinkode - Jul-26-2021, 03:51 PM - Forum: General Coding Help - No Replies

Hello i'am Looking for discord bot source code to make loop ping for any address ip to check if working or not

exemples :

/ping [ip:port] [secon..... More

Print this item

  saving each iteration of a loop
Posted by: sgcgrif3 - Jul-26-2021, 03:39 PM - Forum: General Coding Help - Replies (3)

I have a code which is converting between file types. I have 10 .vtp files and I am converting these to .mat files.
My code works, but it only saves ..... More

Print this item

  When I tried to make an index for a walking animation and it didnt worked
Posted by: izmamonke - Jul-26-2021, 01:09 PM - Forum: Game Development - Replies (1)

I tried to make a walking animation using an index and when I tried to put the image in the index this error shows up
[python]import pygame

pygame..... More

Print this item

  comparing floating point arrays to arrays of integers in Numpy
Posted by: amjass12 - Jul-26-2021, 11:58 AM - Forum: Data Science - No Replies

I am using sklearns OneHotEncoder and MultiLabelBinarizer to one-hot encode some target labels.

I am working on a multi-label classification task ..... More

Print this item

Bug Help Debug please
Posted by: jamesaarr - Jul-26-2021, 09:11 AM - Forum: General Coding Help - Replies (12)

Hello,

I am trying to make a Python program that takes user input and generates labels as a pdf based on what was put in. The proof of concept is d..... More

Print this item

  Keep inner Values of 2D array
Posted by: timste - Jul-26-2021, 09:04 AM - Forum: Data Science - No Replies

Hi
I have a tiff with lakes, which I converted into a 2D array. I would like to keep the outline of the lakes in a 2D array.

[python]import raster..... More

Print this item

  Image to Sound Python Project
Posted by: ankitdixit - Jul-26-2021, 08:25 AM - Forum: General Coding Help - Replies (1)

Hey Everyone, Can anyone tell me below code is correct or not? I am working on Image to Sound based python project and looking to source code. I have..... More

Print this item

  NameError: name 'u1' is not defined (on parser code Python)
Posted by: Melcu54 - Jul-26-2021, 08:15 AM - Forum: General Coding Help - Replies (1)

hello. I test a code, and it's not working:

[python]from bs4 import BeautifulSoup
import bs4
import requests
import os
import re

def getHTML..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  NEED HELP, LOST OF INVEST... 1 hour ago goodvicent goodvicent General Codin...
  403 Error 6 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 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
Most views
  The best Prog... 576393
  Tutorial Requ... 498139
  Web Scraping ... 440286
  Newbie with P... 384166
  New Users Int... 367118
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
goodvicent Today
atylerfraces2254 Today
AdrianCocian Today
humanoidAI Today
Baran12332 Yesterday

User Panel Messages

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