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,952
» Latest member: Jorgecog
» Forum threads: 38,725
» Forum posts: 175,519

Full Statistics

Online Users
There are currently 44 online users.
» 0 Member(s) | 39 Guest(s)
Apple, AOL

Latest Threads
pip install requests does...
Forum: General Coding Help
Last Post: adamsmith12
4 hours ago
» Replies: 9
» Views: 29,119
Creating a Mindmap progra...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:00 PM
» Replies: 4
» Views: 9,294
IBKR Purchasing code issu...
Forum: General Coding Help
Last Post: compuman145
Yesterday, 09:08 AM
» Replies: 0
» Views: 180
A coding beginner needs h...
Forum: General Coding Help
Last Post: Littlefish
Yesterday, 03:29 AM
» Replies: 2
» Views: 600
Is the interpreter that c...
Forum: General Coding Help
Last Post: helendamdam
Yesterday, 02:36 AM
» Replies: 0
» Views: 205
Using a For Loop to subtr...
Forum: General Coding Help
Last Post: deanhystad
Sep-22-2025, 08:56 PM
» Replies: 9
» Views: 753
403 error
Forum: Web Scraping & Web Development
Last Post: snippsat
Sep-20-2025, 04:28 PM
» Replies: 11
» Views: 5,008
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 1,263
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 1,626
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 3,188

 
  need help with ultrasonic sensor code
Posted by: mpmm366 - Jun-28-2018, 01:34 PM - Forum: General Coding Help - Replies (6)

Hello guys. On my raspberry pi I have a hc-sr04 ultrasonic sensor, now I want to run a sh script, when the sensor measurement is below 10cm. Here is m..... More

Print this item

  how to make my product description fetching function generic?
Posted by: PrateekG - Jun-28-2018, 09:05 AM - Forum: Web Scraping & Web Development - Replies (10)

Hi All,

I am fetching product description(with html tags) from a site using BeautifulSoup+Python3.6.

My code is as below-

[python]def get_sou..... More

Print this item

  Python Selenium
Posted by: Spartan117 - Jun-28-2018, 08:54 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi everyone,

I need your help for a strange problem.
I am using Selenium library and I have problem with this instruction:
[color=#27AE60]dri..... More

Print this item

  Python, While loop & lists
Posted by: jaki - Jun-28-2018, 06:48 AM - Forum: Homework - Replies (1)

Hello everyone,
I have a homework assignment where we are supposed to make a basic arithmetics calculator using:
• Lists
• Built-in functions incl..... More

Print this item

  Python 3.7 and also Python3.6.6 released
Posted by: buran - Jun-28-2018, 04:52 AM - Forum: News and Discussions - No Replies

Python 3.7 released.
https://www.python.org/downloads/release/python-370/

Also Python 3.6.6
https://www.python.org/downloads/release/python-366/

Print this item

  Cross-validation: evaluating estimator performance
Posted by: Grin - Jun-27-2018, 11:24 PM - Forum: Homework - Replies (1)

I'm trying to understand Cross-validation.

Very simply if I want to test tr..... More

Print this item

  too many values to unpack error
Posted by: fyec - Jun-27-2018, 11:02 PM - Forum: General Coding Help - Replies (1)

I am trying to solve 'too many values to unpack' error.
This code tries to print month name according to leap years and numbers of ends of the months..... More

Print this item

  Subprocess.send_signal, wait until completion
Posted by: plinio - Jun-27-2018, 10:27 PM - Forum: General Coding Help - Replies (5)

Hello,

I have a subprocess running named proc and need to send it a USR1 signal. To do that, I'm using proc.send_signal(signal.SIGUSR1). The problem ..... More

Print this item

  Hotel problem from substitute.
Posted by: Owen89Northam - Jun-27-2018, 08:53 PM - Forum: Homework - Replies (3)

Hello all!

Doing beginner python, could I please have any feedback on the specific steps I will need to take to write this program, any functions, ..... More

Print this item

  Problem test
Posted by: picalex06 - Jun-27-2018, 06:39 PM - Forum: General Coding Help - Replies (3)

Hi,

Excuse me for my english .....

I have a problem with a test.
I must to calculate the different possibility to make a rugby score (try (5 p..... More

Print this item

  Using 2 screens in wxpython
Posted by: Barrowman - Jun-27-2018, 04:52 PM - Forum: GUI - Replies (1)

I am trying to use a 19" T.V with my laptop connecting it via the hdmi port.
I am running python 3.53 and wxpython 4.0.2 on my Linux Mint 18.2 HP lap..... More

Print this item

  Extract Strings From Text File - Out Put Results to Individual Files
Posted by: dj99 - Jun-27-2018, 03:19 PM - Forum: General Coding Help - Replies (8)

Hi friends,

:)

im a python newbie.

I am trying to extract lines from my input file. Output the result to individual files


[code]
import os


W..... More

Print this item

  1062 mysql ( sql alchemy) duplication error customisation
Posted by: KirkmanJ - Jun-27-2018, 01:59 PM - Forum: General Coding Help - Replies (7)

With sql alchemy the error message:
IntegrityError: (_mysql_exceptions.IntegrityError) (1062, "Duplicate entry...)

will occur when you try to ente..... More

Print this item

  How old am I? (first gui script)
Posted by: Nwb - Jun-27-2018, 01:42 PM - Forum: Code sharing - Replies (5)

Original script:
[spoiler][python]FilePath = r"C:\ TYPE YOUR FILE PATH"

from tkinter import *
from playsound import playsound
import pymsgbox as..... More

Print this item

  Python with C extension cross compiling
Posted by: cl10Greg - Jun-27-2018, 01:30 PM - Forum: General Coding Help - Replies (3)

Hello,

I am fairly new to Python and extensions but I am working on an application that is working great on my Windows PC but I am having a hard to..... More

Print this item

  logger
Posted by: saisankalpj - Jun-27-2018, 01:29 PM - Forum: Web Scraping & Web Development - Replies (3)

is there any way in python such that we can log in the logger file only when enable_log="true"
i have used a file handler to create a log file

Print this item

  Please explain me Pathos Pool()
Posted by: Antigr - Jun-27-2018, 01:14 PM - Forum: Homework - Replies (1)

Is this scheme right? Or it forks only with for i in range?
[python]
from pathos.multiprocessing import ProcessingPool as Pool
p=Pool()
def calcul..... More

Print this item

  Plot Probability Density of an Histogram
Posted by: Python_TLS - Jun-27-2018, 11:37 AM - Forum: Data Science - Replies (1)

Hi,

Please =i have a code wich plot a histogram for each iteration
and i want to plot the Probability Density of each histogram
how can i do t..... More

Print this item

  printing main doc
Posted by: bluefrog - Jun-27-2018, 11:13 AM - Forum: General Coding Help - Replies (1)

I have a doc declared at the top of a script, like so:

[python]
#!/usr/bin/python3
import re
"""
A Twitter username can only contain alphanumer..... More

Print this item

  Request for Paid Help
Posted by: hadibutt - Jun-27-2018, 10:41 AM - Forum: Jobs - Replies (3)

I have a python dialer script which is based on PjSIP library , it basically calls a number press a DTMF* and then record a 8 second recording, finall..... More

Print this item

  looking for full time python developer?
Posted by: Justin49 - Jun-27-2018, 08:52 AM - Forum: Jobs - No Replies

Hi.
I'm a python developer.

6+ Years (Python, Django, OpenERP, Web2Py, IOS/Android)

1. Have experience in working with Git-hub, SVN, git-lab a..... More

Print this item

  How to extract only the last result from a code
Posted by: Python_TLS - Jun-27-2018, 08:48 AM - Forum: Data Science - Replies (1)

Hi,

I have a code that plot an histogram for each iteration of a processus
but i want that export only the last histogram of the last iteration ..... More

Print this item

  Speed up recursive function
Posted by: SimuzDarkuz - Jun-27-2018, 07:59 AM - Forum: General Coding Help - Replies (2)

Hi everyone,

I have to build a complex code that will sort different boxes to different places. To simplify everything I did a recursive function t..... More

Print this item

  First Python Project
Posted by: Brennan - Jun-27-2018, 04:03 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello! My first Python project is called python-utils. You can find the full project on GitHub.

..... More

Print this item

  for lin in openfile:
Posted by: Skaperen - Jun-27-2018, 03:41 AM - Forum: General Coding Help - Replies (14)

i'm reading each line of an open file in a loop. how can i specify a utf-8 encoding is how the file is stored and that i want to read into strings as..... More

Print this item

  Turtle and Pygame together
Posted by: cuevabros - Jun-26-2018, 10:41 PM - Forum: Game Development - Replies (5)

Hello, i´m trying to use the turtle library and the pygame library in the same program
but it doesn´t seem to work well ... is thar possible?
thanks..... More

Print this item

  syntax error
Posted by: judin - Jun-26-2018, 09:40 PM - Forum: General Coding Help - Replies (3)

print("age restriction")
age=int(input("pls enter your age:"))
if age<=18:
print("access restricted for users below 19")
else:
..... More

Print this item

  Plotting climate data with NetCdf files for a specific region with coordinates
Posted by: fyec - Jun-26-2018, 09:20 PM - Forum: Data Science - Replies (3)

I can plot temperature distribution figures with global NetCdf files with these codes.

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

Print this item

  upgrading google-api generates an error
Posted by: ineuw - Jun-26-2018, 07:45 PM - Forum: General Coding Help - Replies (3)

I am trying to activate overgrive, a python 2.7 based connection app to Google Drive in Linux Mint 19, and it fails with a series err..... More

Print this item

  Serial communications
Posted by: tomvassie - Jun-26-2018, 06:27 PM - Forum: General Coding Help - Replies (2)

Good Evening everyone,

I am hoping that someone will be able to help me kick start a little project I have been asked to create for a friend.
My c..... More

Print this item

  beginner
Posted by: Kyrophis - Jun-26-2018, 04:58 PM - Forum: General Coding Help - Replies (1)

absolutely a beginner here, I have heard a lot of great things about python and I have a very simply objective (or so I think) and would like some rec..... More

Print this item

  Attempting to run py2 and py3 on a windows box
Posted by: Vysero - Jun-26-2018, 04:01 PM - Forum: General Coding Help - Replies (5)

I already have py3 installed on my windows box and I recently downloaded py2. For some reason I figured it would be as easy as specifying in the comma..... More

Print this item

  Trying to use code from WxPython GUI Toolkit
Posted by: Barrowman - Jun-26-2018, 03:59 PM - Forum: GUI - Replies (3)

I have copied the following code:
[python]import wx

class Example(wx.Frame()):
def __init__(self, parent, title):
super(Example,self).__init_..... More

Print this item

  problem about 'if' and 'for' from a python beginner
Posted by: yzjnpu - Jun-26-2018, 03:35 PM - Forum: General Coding Help - Replies (3)

The python code is as below:
[python]curren_accounts=['amy','ADA','eric','tim','jasmin']
new_accounts=['torge','tom','ada','ace','aman..... More

Print this item

  problem to use multi-threads in a code for telnet sessions
Posted by: anna - Jun-26-2018, 01:35 PM - Forum: General Coding Help - Replies (6)

[python]import threading
import telnetlib
import sys
import time
import os
import re
ohfmacfile = open ('/home/anna/scripts/ohfmac.txt','w')
de..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  pip install requests does... 4 hours ago misodca adamsmith12 General Codin...
  Creating a Mindmap progra... Yesterday, 12:00 J_Miller Pedroski55 General Codin...
  IBKR Purchasing code issu... Yesterday, 09:08 compuman145 compuman145 General Codin...
  A coding beginner needs h... Yesterday, 03:29 Littlefish Littlefish General Codin...
  Is the interpreter that c... Yesterday, 02:36 helendamdam helendamdam General Codin...
  Using a For Loop to subtr... 09-22, 20:56 Anunderling deanhystad General Codin...
  403 error 09-20, 16:28 CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  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...
Most views
  The best Prog... 576789
  Tutorial Requ... 499141
  Web Scraping ... 440576
  Newbie with P... 384547
  New Users Int... 368405
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 8176
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
Jorgecog Today
adamsmith12 Today
Ronny Today
Luciana Today
MatthewRodia Today

User Panel Messages

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