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,932
» Latest member: XenonBlack
» Forum threads: 38,721
» Forum posts: 175,502

Full Statistics

Online Users
There are currently 47 online users.
» 1 Member(s) | 39 Guest(s)
Bing, AOL, Google, AOL, Mojeek, deanhystad

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: RonR
5 hours ago
» Replies: 2
» Views: 874
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
8 hours ago
» Replies: 0
» Views: 50
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,460
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 392
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 123
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,900
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,154
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 840

 
  Python and Pika stability issues
Posted by: tremmert - Jun-06-2017, 11:46 AM - Forum: General Coding Help - No Replies

I am using Python 2.7 and the Pika library to publish messages to a RabbitMQ server. The script below will read the last line of a text file every 30 ..... More

Print this item

  Tip calculator problem
Posted by: Dhaval - Jun-06-2017, 09:56 AM - Forum: General Coding Help - Replies (1)

Task Details : You've finished eating at a restaurant, and received this bill:

   Cost of meal: $44.50
   Restaurant tax: 6.75%
   Tip: 15..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 5 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 8 hours ago tobey12 tobey12 News and Disc...
  Another app idea - intera... Today, 07:07 decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 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... 575823
  Tutorial Requ... 497101
  Web Scraping ... 439832
  Newbie with P... 383532
  New Users Int... 365424
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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