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,403
» Latest member: asonpitt1039
» Forum threads: 38,827
» Forum posts: 176,040

Full Statistics

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

Latest Threads
German Relative Clauses P...
Forum: General Coding Help
Last Post: asonpitt1039
54 minutes ago
» Replies: 0
» Views: 15
LhanePulse
Forum: General Coding Help
Last Post: Stephenchers
3 hours ago
» Replies: 0
» Views: 25
a function to watch files
Forum: News and Discussions
Last Post: OtiliaGen
Yesterday, 12:38 PM
» Replies: 2
» Views: 190
Merge video with subtitle...
Forum: General Coding Help
Last Post: OtiliaGen
Yesterday, 12:32 PM
» Replies: 29
» Views: 15,754
Create dataframe from the...
Forum: Data Science
Last Post: JassicaElla60
Yesterday, 12:31 PM
» Replies: 8
» Views: 3,668
Check if running from she...
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:52 AM
» Replies: 2
» Views: 183
Sorry Help
Forum: General Coding Help
Last Post: noisefloor
Jan-01-2026, 11:47 AM
» Replies: 2
» Views: 150
IP address for users
Forum: Networking
Last Post: DeaD_EyE
Dec-31-2025, 08:02 PM
» Replies: 6
» Views: 7,197
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Dec-30-2025, 12:11 AM
» Replies: 1
» Views: 229
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,640

 
  check if input is correct before proceeding
Posted by: Pedroski55 - Sep-16-2017, 01:53 AM - Forum: General Coding Help - Replies (1)

I need to enter the path to the files I want to manipulate, by name pathToExcel, pathToPhotos. A few times I got it wrong and the program did not run...... More

Print this item

  No module named numpy
Posted by: rdx - Sep-16-2017, 01:47 AM - Forum: Data Science - Replies (7)

import numpy as np
[error]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named nu..... More

Print this item

  Do you really know what your freshly installed module from PyPi is doing?
Posted by: Ofnuts - Sep-15-2017, 10:51 PM - Forum: News and Discussions - Replies (4)

http://www.theregister.co.uk/2017/09/15/...or_typing/

Print this item

  What does this code fragment do?
Posted by: rdx - Sep-15-2017, 10:32 PM - Forum: Data Science - Replies (2)

Given: brain_live_features is an array of ints ...

[python] live_features = brain_live_features + 2
live_features = list(live_features)
..... More

Print this item

  pymysql on macos seirra
Posted by: tony1812 - Sep-15-2017, 10:19 PM - Forum: General Coding Help - Replies (5)

hello, I downloaded pymysql.tar.gz. I am wondering on macos seirra, which directory does it goes in? I try to stick with python3. Anbd also, do I need..... More

Print this item

  y syntax errors?
Posted by: Saxycool12345 - Sep-15-2017, 10:09 PM - Forum: General Coding Help - Replies (3)

this is my code but for some reason the colons and print always gives a syntax error, des anyone know why?

Print this item

  installing Linux on Flash Drive
Posted by: Larz60+ - Sep-15-2017, 09:38 PM - Forum: Bar - Replies (9)

I'm wondering if anyone has a Linux distro installed on a flash drive.
I'd like to set one up (got a bunch of 64GB drives at microcenter for 14.99 ea..... More

Print this item

  What am I doing wrong?
Posted by: forumer444 - Sep-15-2017, 08:39 PM - Forum: Homework - Replies (14)

This is driving me crazy.

*** Program Description ***
Write a program to read in a file of years, one per line, and output to a separate file "only t..... More

Print this item

  HELP---problems with rock paper scissors games
Posted by: kalt91 - Sep-15-2017, 04:25 PM - Forum: Homework - Replies (2)

Im having problems with the while loop terminating the rock paper scissors game once it gets to the choice variable to say no. Also when i initially e..... More

Print this item

  Expected an indented block
Posted by: Nicoles07 - Sep-15-2017, 03:43 PM - Forum: General Coding Help - Replies (2)

Hello I keep getting an error saying

Quote:Expected an indented block
but then i add an indentation and i get [quote]inconsistent use of tabs..... More

Print this item

  Searching for a website
Posted by: Ethan1745 - Sep-15-2017, 02:29 PM - Forum: General Coding Help - Replies (2)

So, I am looking for a website that tests students python abilities with multiple activities. It's called snakes or a variation of it, but I can't fin..... More

Print this item

  trouble with pip and py2exe
Posted by: sylas - Sep-15-2017, 02:03 PM - Forum: General Coding Help - Replies (12)

please give a runnable sample of your code with the full error text or a clear description of the problem..I copied the game pong on my project ping, ..... More

Print this item

  pandas dataframe
Posted by: ian - Sep-15-2017, 01:21 PM - Forum: Data Science - Replies (1)

I have a file Test.csv as below
ColumnA
FM
NA
EC

When run code below, it shows nan, not 'NA'. how to fix it? Thanks
FM
nan
EC

[python]
i..... More

Print this item

  Can I install Python 3.6.2 on Windows 10 for All Users?
Posted by: DAWO - Sep-15-2017, 11:48 AM - Forum: News and Discussions - Replies (1)

Hi,

We have Windows 10 laptops each with a local administrator account for our teachers, and one or more local standard user accounts for our stude..... More

Print this item

  Error connecting to client
Posted by: rajeev1729 - Sep-15-2017, 09:20 AM - Forum: General Coding Help - Replies (2)

[python]
from tkinter import *
from tkinter.ttk import *
import socket
import _thread

class ChatClient(Frame):

def __init__(self, root):..... More

Print this item

  location settings for Django Uwsgi Nginx Configuration for production
Posted by: sandyman - Sep-15-2017, 09:08 AM - Forum: Web Scraping & Web Development - No Replies

Django settings

STATICFILES_DIRS = [STATIC_DIR, ]
STATIC_DIR = os.path.join(BASE_DIR, 'static')
STATIC_ROOT = '/home/sandyman/production/django_p..... More

Print this item

  maximum lenght of a regex-match
Posted by: maashoeven - Sep-15-2017, 07:10 AM - Forum: General Coding Help - Replies (2)

You will see three snippets, first a part of my Python-code, second a part of the text the Python works on and third some printed results. Then I desc..... More

Print this item

  typeerror:byte like object is required
Posted by: rajeev1729 - Sep-15-2017, 05:59 AM - Forum: General Coding Help - Replies (1)

#server.py
[python]
import socket # Import socket module
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Create a socket object
host = soc..... More

Print this item

  While Loop; Can Else Point Back To Initial Input Command?
Posted by: RodNintendeaux - Sep-15-2017, 05:53 AM - Forum: Homework - Replies (9)

Guys and gals, I have lost my ever-loving mind. I was given a homework assignment (Intro to Python) and I have mostly figured this out, but I cannot g..... More

Print this item

  Ugh, Someone Went and Implemented Case
Posted by: ichabod801 - Sep-15-2017, 05:33 AM - Forum: News and Discussions - Replies (2)

reddit

..... More

Print this item

  Change Windows Sound Output Device with Python
Posted by: delfar - Sep-14-2017, 11:11 PM - Forum: General Coding Help - Replies (1)

Hey there,

On my main PC I have several different sound output devices that I have to constantly switch between. This process is tedious, as I have..... More

Print this item

  thread in python3
Posted by: tony1812 - Sep-14-2017, 10:49 PM - Forum: General Coding Help - Replies (1)

helo, I am very new to python, I am wonder in python3, is ther a differt between import threading verses import _thread? I've seen one or the other in..... More

Print this item

  Auto increment in Python Sqlite3
Posted by: kingram - Sep-14-2017, 10:07 PM - Forum: General Coding Help - Replies (1)

Hi. I want to set my id auto increment in sqlite3 in python 3.6

When i run my code i get this error:

[error]sqlite3.OperationalError: near "AUT..... More

Print this item

  JSON to sql(lite)
Posted by: BeerLover - Sep-14-2017, 09:07 PM - Forum: General Coding Help - Replies (3)

Dear all,

(Note: I don't have technical background Sad )
 
I have a big json file (Twiitter tweets), 2.6 GB. I need to work with that data an..... More

Print this item

  Getting EOF error with pexpect
Posted by: jjwstevenson - Sep-14-2017, 08:52 PM - Forum: General Coding Help - Replies (5)

Hi, I'm working on a script to;

log into a network device > get info of the interfaces > apply interface specific config.

This code works fine o..... More

Print this item

  Var Not defined
Posted by: RainbowWolfy - Sep-14-2017, 08:07 PM - Forum: General Coding Help - Replies (2)

So I'm pretty new to Python, although I got alot of experience in other languages.
I have a problem where my Attack variable is not being defined

..... More

Print this item

  Basic algebra in Python
Posted by: ejj28 - Sep-14-2017, 03:35 PM - Forum: General Coding Help - Replies (10)

Hi, how can I solve algebraic equations in python?
For example: 100*X=200, which would return 2.
Is there some sort of library for this?
Thanks!

Print this item

  Need help figuring out Sprite.Group Collision code
Posted by: PySam - Sep-14-2017, 03:09 PM - Forum: General Coding Help - Replies (3)

OK, so in my "sim" I've managed to assign "cells" or agents to a sprite group, and plants (for cells to eat and obtain food) into another group. After..... More

Print this item

  pygame problem
Posted by: Yair - Sep-14-2017, 03:00 PM - Forum: General Coding Help - Replies (7)

this is my code:

[python]
import pygame



pygame.init()


display_width = 800
display_height = 600

gameDisplay = pygame.display.set_mo..... More

Print this item

  Python Coding HELP!
Posted by: Ravenstown - Sep-14-2017, 02:58 PM - Forum: General Coding Help - Replies (3)

NOOB to Python

I need some help to reduce the size of my code by adding a loop which iterates on the blanks- I have been working on this code for w..... More

Print this item

  [split] running .py files on Windows
Posted by: metulburr - Sep-14-2017, 02:50 PM - Forum: General Coding Help - Replies (7)

split from discussion https://python-forum.io/Thread-run-py-file-on-Windows

I dont mean to hijack but i kind of am doing it
[quote]From there, you..... More

Print this item

  Please help - Code was working!
Posted by: bm0899 - Sep-14-2017, 01:52 PM - Forum: Web Scraping & Web Development - Replies (3)

Please find attached a python script. It was script was working last week but it does not work any longer.

The script pulls out data from an intern..... More

Print this item

  run .py file on Windows
Posted by: aidanikuz - Sep-14-2017, 01:17 PM - Forum: General Coding Help - Replies (4)

Hello, so I just installed python and I wanted to test the program and stuff. so I made a simple test file, hello.py which has its own folder on my de..... More

Print this item

  Error while running python script to get pixel points from google static map image
Posted by: python_newbee - Sep-14-2017, 01:09 PM - Forum: Data Science - Replies (3)

Error while running python script to get pixel points from google static map image. I got the python script from https://stackoverflow.com/questions/5..... More

Print this item

  Is any super keyword like java
Posted by: rajeev1729 - Sep-14-2017, 11:07 AM - Forum: General Coding Help - Replies (2)

how to print "Calling parent method" using Child object.
[python]
class Parent: # define parent class
def myMethod(self):
print ('..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  German Relative Clauses P... 54 minutes ago asonpitt1039 asonpitt1039 General Codin...
  LhanePulse 3 hours ago Stephenchers Stephenchers General Codin...
  a function to watch files Yesterday, 12:38 Skaperen OtiliaGen News and Disc...
  Merge video with subtitle... Yesterday, 12:32 Pavel_47 OtiliaGen General Codin...
  Create dataframe from the... Yesterday, 12:31 Calab JassicaElla60 Data Science
  Check if running from she... 01-01, 11:52 rjdegraff42 noisefloor General Codin...
  Sorry Help 01-01, 11:47 BioNanoTech noisefloor General Codin...
  IP address for users 12-31, 20:02 Robots DeaD_EyE Networking
  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...
Most views
  The best Prog... 580501
  Tutorial Requ... 520328
  Web Scraping ... 442811
  Newbie with P... 387031
  New Users Int... 386914
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
asonpitt1039 Today
Stephenchers Yesterday
JassicaElla60 Yesterday
bryanptrovz7447 Yesterday
oliviajuior7959 01-01

User Panel Messages

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