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,399
» Latest member: kylausasd5428
» Forum threads: 38,826
» Forum posts: 176,037

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 22 Guest(s)
Bing, Google, Apple, Facebook, AOL

Latest Threads
Для кулінарів, хто іноді ...
Forum: Code sharing
Last Post: kylausasd5428
51 minutes ago
» Replies: 0
» Views: 10
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 2
» Views: 110
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
4 hours ago
» Replies: 2
» Views: 109
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Yesterday, 08:02 PM
» Replies: 6
» Views: 7,175
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 07:58 AM
» Replies: 28
» Views: 15,638
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 189
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,614
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 276
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,635
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 250

 
  GUI on Raspberry pi 3 model
Posted by: HjFap - Jun-06-2017, 09:05 AM - Forum: GUI - Replies (1)

Hello, I need some help!
I have a raspberry pi 3 model, with the raspbian OS installed, and i'm trying to make GUI menu with some buttons, and when i..... More

Print this item

  loop doesn't advance-py3 text game
Posted by: foxtreat - Jun-06-2017, 05:31 AM - Forum: General Coding Help - Replies (2)

Making a simple fighting text based game where you can fight turn based and gain xp with which you can buy more hp.armour and etc.however it needs to ..... More

Print this item

  just a trial. Please wait 5 minutes before deleting this thread
Posted by: sylas - Jun-06-2017, 05:27 AM - Forum: General Coding Help - Replies (2)

my question here:just a trial

[python]#file1.py
print("HANDLING LISTS")
L = [1.2, 5.6, 7.8]
L[1]= 8.9
for x in L:print(x, end=' ')
print()  # ..... More

Print this item

  Syntax Error
Posted by: bsullivan1983 - Jun-06-2017, 02:46 AM - Forum: Homework - Replies (9)

Hey all. Just started Fundamentals of Programming 1 at my local community college. I'm on my first homework assignment which is as follows:

Land Ca..... More

Print this item

  how can I find the disk space on a remote hosts ?
Posted by: timfox123 - Jun-06-2017, 01:18 AM - Forum: Networking - Replies (1)

I can find the disk space for the host I am on using this script

#!/usr/bin/env python3
import shutil
total, used, free = shutil.disk_usage(__fi..... More

Print this item

  Pygame*import pygame ImportError: No module named pygame
Posted by: CASPERHANISCH - Jun-05-2017, 07:55 PM - Forum: General Coding Help - Replies (1)

my question here: So I'm new, and I wanted to make my first game following a tutorial, I've downloaded pygame and everything as instructed, but now wh..... More

Print this item

  Logic error when comparing randomly generated integers
Posted by: SadoDeomeoon - Jun-05-2017, 12:24 PM - Forum: General Coding Help - Replies (5)

For a little art prompt generator I'm making, I needed the program to generate random integers corresponding to colours, themes and subjects. For colo..... More

Print this item

  Math problem python
Posted by: Dhaval - Jun-05-2017, 08:54 AM - Forum: General Coding Help - Replies (1)

[python]# Set count_to equal to the sum of two big numbers
addition =  72 + 23
substration = 108 - 204
multiplaction = 108 * 0.5
division = 108 / ..... More

Print this item

  Troubles with classes, taken from a book
Posted by: sylas - Jun-05-2017, 05:47 AM - Forum: General Coding Help - Replies (2)

my question here:Hi all.The FirstClass alone works well. But when I add the SecondClass pyCharm gives me an error Here is the output,at first:[output]..... More

Print this item

  ascii() (repr() in py2)
Posted by: Skaperen - Jun-05-2017, 04:00 AM - Forum: General Coding Help - Replies (1)

the ascii() function in py3 (repr() in py2) converts only 3 ASCII control characters to mnemonic escape sequenes (e.g. '\t' and '\n' and '\r')  Python..... More

Print this item

  octal instead of hex
Posted by: Skaperen - Jun-05-2017, 03:25 AM - Forum: General Coding Help - Replies (4)

i can convert binary characters to a literal text form with ascii() (repr() in py2) but it converts most characters to a hexadecimal escape form like ..... More

Print this item

  Stream Cipher Encryption and Decryption
Posted by: Iskuss - Jun-05-2017, 03:15 AM - Forum: Code sharing - Replies (3)

Encryption (Python 2.7)
[python]
def main():

   message = raw_input("Enter a message without spaces or punctuation. ")

   message = list(messa..... More

Print this item

  Simple averaging program
Posted by: Iskuss - Jun-05-2017, 03:07 AM - Forum: Code sharing - Replies (5)

Probably the most convoluted way to find the average of a set of numbers in Python but here it is.

[python]
amount = int(input("Enter number of it..... More

Print this item

  requests digest auth with netrc
Posted by: fstefanov - Jun-05-2017, 12:43 AM - Forum: Networking - Replies (1)

Hello,
According to the documentation for requests:

netrc Authentication

If no authentication method is given with the auth argument, Requests ..... More

Print this item

  Use kivy app to call a php website to change the state of a gpio pin on rasperbery pi
Posted by: Battillo - Jun-04-2017, 09:46 PM - Forum: General Coding Help - Replies (1)

I need help I am trying to control a gpio pin on rasperbery pi with a kivy app on my phone. I have the website working example.com allows me to push o..... More

Print this item

  Python : NameError: name 'total_wait' is not defined
Posted by: carla - Jun-04-2017, 05:27 PM - Forum: Data Science - Replies (3)

I'm trying to plot the results, but I get this error:

Error:
NameError: name 'total_wait' is not defined.
I am able to print the result b..... More

Print this item

  Saving and loading many records
Posted by: Steve2017 - Jun-04-2017, 11:45 AM - Forum: General Coding Help - Replies (3)

Hi guys

I am currently trying to get my python program to save and load from one text file

Basically i am creating a student record program whi..... More

Print this item

  input defines variable but it's not defined
Posted by: tozqo - Jun-04-2017, 11:40 AM - Forum: General Coding Help - Replies (5)

I am just starting to learn python, and trying out a basic "calculator" from a couple YouTube videos. I have spent the last few hours trying to figure..... More

Print this item

  Multi-client server
Posted by: Saga - Jun-04-2017, 10:24 AM - Forum: General Coding Help - Replies (2)

I'm trying to change this code to be multi-user.. I read a little bit about using select function instead of using threads but I can't understand how ..... More

Print this item

  Threading timer crashes my App
Posted by: panoss - Jun-03-2017, 08:30 AM - Forum: General Coding Help - Replies (4)

I want to make an app that will use timer.
A button will set the timer at my pc 's time plus one minute.
The problem is that it crashes.
Run the fo..... More

Print this item

  error while inserting values into a table from form in flask in postgreSQL
Posted by: sahilsiddharth - Jun-03-2017, 07:55 AM - Forum: General Coding Help - Replies (3)

my question here
forms.py---
[python]class SignUpForm(Form):
first_name = StringField('First name', validators=[DataRequired("Please enter your fir..... More

Print this item

Photo only foreign key id retrive when i pass model instance to form but i want other field
Posted by: x64 - Jun-03-2017, 05:58 AM - Forum: Web Scraping & Web Development - No Replies

hi,
i am new in django, i have a problem with instance when pass it in form. Because my instance has 10 field including 3 foreign key field.
when i ..... More

Print this item

  importing module from specific file
Posted by: Skaperen - Jun-03-2017, 02:53 AM - Forum: General Coding Help - Replies (4)

i wanted to import a module from a specific file that may be in a subdirectory maybe even many levels deep. the current directory will always be at s..... More

Print this item

  Senior Software Engineer at TravelPerk
Posted by: djangojobs.net - Jun-03-2017, 01:18 AM - Forum: Jobs - No Replies

See more and Apply through djangojobs.net
https://djangojobs.net/jobs/690/s[url=https://python-forum.io/thread-3562.html]..... More

Print this item

  Learning Python with pip, cmder and/or virtualenv...
Posted by: RodNintendeaux - Jun-02-2017, 10:46 PM - Forum: Web Scraping & Web Development - Replies (8)

I hear a lot of people say, "I am a quick study!" And that is great, Dr. Strange is better for it, but me, I am not one. I could, if pushed, be a bit ..... More

Print this item

  How to plot legend for a colormap?
Posted by: Felipe - Jun-02-2017, 10:00 PM - Forum: Data Science - Replies (1)

Hi guys,

I wrote a function that plot rectangles filled with colors defined by a colormap. Here's a part of the function:

[python]
import matpl..... More

Print this item

  Python in Linux environment on RPI
Posted by: kendias - Jun-02-2017, 09:03 PM - Forum: General Coding Help - Replies (22)

my question here
I am trying to run a python script in Linux environment. It is Python 2.7.9 and the script is in folder /home/pi. I use the command f..... More

Print this item

  while loop help needed
Posted by: thorny5 - Jun-02-2017, 07:00 PM - Forum: Homework - Replies (2)

I am very new to Python (and any programming language for that matter) and have a 2 part assignment I am struggling with. Below are the instructions a..... More

Print this item

  unix for the beginning mage (bash basic)
Posted by: metulburr - Jun-02-2017, 06:32 PM - Forum: News and Discussions - Replies (1)

http://unixmages.com/ufbm.pdf

Print this item

  Issue in launching spyder that was installed using pip install on Python 3.6.1
Posted by: python300 - Jun-02-2017, 05:56 PM - Forum: General Coding Help - Replies (6)

I have windows-7 64 bit machine and Python3.6.1(32-bit) installed on it. I wanted to try spyder as IDE for python. I don't have Anaconda or anything l..... More

Print this item

  Problem with changing label text on button press
Posted by: xk2006x - Jun-02-2017, 11:33 AM - Forum: GUI - Replies (1)

Hi,

I'm trying to change the label text on button press, but I get an error:

Error:
App object has no attribute saved_length1
In the G..... More

Print this item

  read multiple .xlsx files and text files in a directory
Posted by: BNB - Jun-02-2017, 11:14 AM - Forum: Data Science - Replies (11)

I have a list of .xlsx files (names 1.xlsx, 2.xlsx etc), each with several worksheet, in a directory. I need to insert data from its corresponding te..... More

Print this item

  pyphs run error
Posted by: pournamy - Jun-02-2017, 09:00 AM - Forum: General Coding Help - Replies (6)

my question here
I recently installed pyphs package in python.
When I run the script, it shows import error: No module named phs


[python]# indu..... More

Print this item

  pyflakes vs flake8
Posted by: broutray - Jun-02-2017, 06:57 AM - Forum: General Coding Help - Replies (3)

pyflakes vs flake8 - which one is used to warn python script errors ?

Print this item

  selenium bypass javascript popup box
Posted by: metulburr - Jun-02-2017, 03:29 AM - Forum: Web Scraping & Web Development - Replies (6)

I am trying to list out my facebook membership groups using selenium, but i cant without bypassing this javascript box. The
   
attemp..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Для кулінарів, хто іноді ... 51 minutes ago kylausasd5428 kylausasd5428 Code sharing
  Check if running from she... 4 hours ago rjdegraff42 noisefloor General Codin...
  Sorry Help 4 hours ago BioNanoTech noisefloor General Codin...
  IP address for users Yesterday, 20:02 Robots DeaD_EyE Networking
  Merge video with subtitle... Yesterday, 07:58 Pavel_47 OtiliaGen General Codin...
  Opencv findContours Q 12-30, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
Most views
  The best Prog... 580478
  Tutorial Requ... 520039
  Web Scraping ... 442797
  Newbie with P... 387015
  New Users Int... 386793
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
kylausasd5428 Today
zasamueluniorz7349 Today
BioNanoTech Today
CarlApome Yesterday
cruisesfares 12-30

User Panel Messages

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