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,936
» Latest member: AstoundzSEO
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 40 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, AOL, Internet Archive, AOL, Applebot, snippsat

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 2,941
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,359
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 380
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 663
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,797
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 766
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 349
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,304
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,524
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 1,183

 
  list - list
Posted by: rdx - Sep-16-2017, 02:42 AM - Forum: Data Science - Replies (1)

fa is an array of floats, exact type unknown (since Python doesn't declare)

[python]pfa = fa
fa = np.concatenate( (np.zeros(2), fa ))
FAIs = np.m..... More

Print this item

  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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 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
  Seeking feedback: dynamic... 09-15, 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... 576004
  Tutorial Requ... 497435
  Web Scraping ... 439970
  Newbie with P... 383718
  New Users Int... 366182
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 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
AstoundzSEO Today
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday

User Panel Messages

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