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,937
» Latest member: AdrianCocian
» Forum threads: 38,722
» Forum posts: 175,511

Full Statistics

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

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
1 hour ago
» Replies: 11
» Views: 3,902
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Yesterday, 07:55 PM
» Replies: 2
» Views: 432
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Yesterday, 12:30 PM
» Replies: 1
» Views: 3,428
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Yesterday, 11:11 AM
» Replies: 4
» Views: 789
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,259
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,136
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,354
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,341
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 1,463
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 1,024

 
  Index Error, can't understand why.
Posted by: Diamond - Jan-03-2018, 10:13 AM - Forum: General Coding Help - Replies (5)

Hello!
I am getting an IndexError, and not sure why? My goal is to print out the higher numeric list element.

[python]
def mag(var):
pos=0..... More

Print this item

  global name 'thetime' is not defined
Posted by: cyberion1985 - Jan-03-2018, 09:52 AM - Forum: General Coding Help - Replies (10)

Hi,

So I have three files :

1.) File_INIT.py

The main file that will initialize (mostly) everything.
This file contains definitions for func..... More

Print this item

  unable to find vcvarsall.bat
Posted by: nithya - Jan-03-2018, 07:16 AM - Forum: General Coding Help - Replies (1)

I am using a LULU package which was created 6 years ago. I am executing the package setup.py file in python version 3.6 and the unexpected error "Unab..... More

Print this item

  IndexError: list assignment index out of range
Posted by: ted_chou12 - Jan-03-2018, 05:14 AM - Forum: General Coding Help - Replies (4)

I am trying to create a multiple dimension array with predefined index:
[python] returns = []
for s in context.securities:
returns[s..... More

Print this item

  Invalid Syntax
Posted by: mamta_parida - Jan-03-2018, 03:41 AM - Forum: General Coding Help - Replies (5)

Hello Everyone,

As I'm new to python, i tried some script but while running that script getting an error i.e. "There's an error in your program: in..... More

Print this item

  Cannot open file [ERNO 22] INVALID ARGUMENT
Posted by: JoshuaKim02 - Jan-03-2018, 12:37 AM - Forum: Web Scraping & Web Development - Replies (20)

https://gyazo.com/62c8bbc7236e1ea0fc475458b38605df

ERROR I GET: https://gyazo.com/829caac4a291c7a0fb2a8e793f62e9ae


I can't open the program at..... More

Print this item

  Impossible Function Task?
Posted by: ShadowWarrior17 - Jan-02-2018, 10:36 PM - Forum: Homework - Replies (11)

I have recently taught myself to use functions, and tried to do the impossible, this task:

Shhh. They are listening! We need a plan…
I know, let ..... More

Print this item

  In CSV, how to write the header after writing the body?
Posted by: Tim - Jan-02-2018, 10:02 PM - Forum: Web Scraping & Web Development - Replies (18)

Hello Forum,

I'm using csv package to build a .csv file in Python v3.6.
What I'm doing is converting and combining several .bib files into one C..... More

Print this item

  Close IDLE display window?
Posted by: Emerogork - Jan-02-2018, 07:36 PM - Forum: General Coding Help - Replies (14)

(Forgive improper terminology if any) When I run a .py program in IDLE, it opens a display window to see the output of the program. The problem is wha..... More

Print this item

  Need to replace (remove) Unicode characters in text
Posted by: ineuw - Jan-02-2018, 07:12 PM - Forum: General Coding Help - Replies (1)

Before posting here I resarched the subject of unicode replace, but got nowhere. I am using Python 3 version of Autokey, with which I want to run a sc..... More

Print this item

  Interpretation of a code
Posted by: Alberto - Jan-02-2018, 06:30 PM - Forum: General Coding Help - Replies (1)

Dear Python Users,

Please, help me to interpret the following line of a code (I have two df - futures_data and options_data):
[python]
for option..... More

Print this item

  pyBluez question
Posted by: DPaul - Jan-02-2018, 02:36 PM - Forum: General Coding Help - No Replies

Hi,

I am attempting to connect various devices with my Pi 3 / python 3, via bluetooth.
Installed pyBluez etc... but upon running a simple detectio..... More

Print this item

  Is there another way to do a bunch of methods calls ?
Posted by: Windspar - Jan-02-2018, 02:25 PM - Forum: General Coding Help - Replies (7)

[python]class Test:
def __init__(self):
self.a = 1

def one(self):
self.a += 1
return self

def two(self):
self.a += 2
retu..... More

Print this item

  Python Books bundle on HumbleBundle
Posted by: j.crater - Jan-02-2018, 01:38 PM - Forum: News and Discussions - No Replies

Interesting Python books bundles on HumbleBundle now, available for 2 weeks.

https://www.humblebundle.com/books/pytho...ook-bundle

Print this item

  bs4 : output html content into a txt file
Posted by: smallabc - Jan-02-2018, 01:19 PM - Forum: Web Scraping & Web Development - Replies (2)

Self-learning python. The following code returns UnicodeEncodeError. How should I fix it? Thanks.

[python]import bs4, requests
#------------------..... More

Print this item

  very simple dataframe question
Posted by: really_this_dumb - Jan-02-2018, 11:30 AM - Forum: Data Science - No Replies

Hi all,

New to python but am coding a project to become more familiar.

My dilemma is this: how do I access data within a given slice of a dataframe,..... More

Print this item

  UDP forwarding
Posted by: Skaperen - Jan-02-2018, 06:37 AM - Forum: News and Discussions - No Replies

i have a use case to do UDP forwarding, in a manner much like port forwarding. i am wondering if it is reasonable to do this in Python instead of C. ..... More

Print this item

  recursive file scan
Posted by: Skaperen - Jan-02-2018, 03:17 AM - Forum: Bar - Replies (8)

has anyone ever written a recursive file scanner based on os.scandir() that can recurse a file tree ? what about a scanner that can scan 2 or more fi..... More

Print this item

  Installing/configuring Tkinter on Linux Mint 18?
Posted by: mpd - Jan-02-2018, 12:21 AM - Forum: GUI - Replies (4)

I'm having trouble getting TKinter working.

[python]
Python 3.6.3 (default, Dec 13 2017, 17:56:50)
[GCC 5.4.0 20160609] on linux
Type "help", "..... More

Print this item

  Updating a package published on PyPI
Posted by: marqrdt - Jan-02-2018, 12:08 AM - Forum: General Coding Help - Replies (1)

Hi,
I'd like to contribute to this package on PyPI: https://pypi.python.org/pypi/pcsets
This package implements a common set of pitch operations ..... More

Print this item

  hierarchical MultIndex Python
Posted by: newpyguy - Jan-01-2018, 09:59 PM - Forum: Data Science - No Replies

Hi guys, I am new to python and hopefully could add my code here right. I try to do the following:
I want to read multiple txt files and later conca..... More

Print this item

  SymPy - SolveSet Values
Posted by: Plant_Boy - Jan-01-2018, 09:20 PM - Forum: General Coding Help - No Replies

I'm looking to create a program that finds modes using Sympy. It solves where two equations meet.

What is found is a non-solution and two real sol..... More

Print this item

  Code Review Help
Posted by: dmcquay - Jan-01-2018, 08:26 PM - Forum: Code sharing - Replies (4)

Hi there,

So I have some code that I wrote to assist me in deploying headless pi's. I am a complete Python newb but I wrote this up and have some q..... More

Print this item

  I cant find the location of my csv file
Posted by: Ummusabbar - Jan-01-2018, 02:56 PM - Forum: General Coding Help - Replies (3)

Hello all, I wrote and saved a program using tweepy to stream the twitter api,I used csv file in saving but cant find the location anywhere on my comp..... More

Print this item

  matplotlib plot to time
Posted by: kiyoshi7 - Jan-01-2018, 02:49 PM - Forum: General Coding Help - Replies (1)

hi, I'm plotting a lot of data with python, but I'd like to set the x axis to plot using the time and date that my data was gathered and I haven't bee..... More

Print this item

  TypeError when reading from FIFO
Posted by: ralf - Jan-01-2018, 11:24 AM - Forum: General Coding Help - Replies (1)

Hi,

I have a strange problem when reading from a named pipe.
When I write into the pipe using the echo command of my shell (zsh) everything wo..... More

Print this item

  no vowels function
Posted by: alex_bgtv - Jan-01-2018, 08:16 AM - Forum: General Coding Help - Replies (6)

Hi,
using codecademy for Python learning.
In one of the exercises, were asked to write a function deleting all vowels from a string (upper and lower..... More

Print this item

  telnetlib.Telnet timeout issue.. taking much time
Posted by: anna - Jan-01-2018, 05:26 AM - Forum: Networking - Replies (1)

[python]#!/usr/bin/python
import paramiko
import sys
import os
import xlrd
import unidecode
import telnetlib
import time

def telNetConnecti..... More

Print this item

  Check if string is uppercase or lowercase and eliminate
Posted by: Wolfpack2605 - Jan-01-2018, 03:44 AM - Forum: Homework - Replies (1)

In the war against Skynet, humans are trying to pass messages to each other without the computers realising what's happening.

To do this, they are ..... More

Print this item

  Love the emblem updates
Posted by: metulburr - Dec-31-2017, 11:52 PM - Forum: Board - Replies (9)

Not sure who is doing that, but I love the emblem updates for keeping up with current events.

Print this item

  for loop
Posted by: Wolfpack2605 - Dec-31-2017, 11:37 PM - Forum: General Coding Help - Replies (2)

I am not quite sure why for loops work this way. Why do you write for colour in colours and then print colour. It is confusing me.
[python]colours = ..... More

Print this item

  CSV Integers
Posted by: BadCoder9 - Dec-31-2017, 04:03 PM - Forum: General Coding Help - Replies (3)

I'm having some troubles with CSV files. I am making a quiz and cannot get the score or percentage to save to the CSV file as it doesn't accept intege..... More

Print this item

  How do I tell Pycharm "run this project"
Posted by: sylas - Dec-31-2017, 05:11 AM - Forum: General Coding Help - Replies (2)

Hi all! Of course among the files is the "main" file. Am I obliged to configure this "run", at first ?
But really my question is double. I address my..... More

Print this item

  Collatz in Python...pls help
Posted by: mepyyeti - Dec-31-2017, 04:43 AM - Forum: General Coding Help - Replies (3)

Ok so I wrote this up quickly and it SHOULD work but doesn't. Can someone possibly run ME through this. I admit I am struggling a bit with the conce..... More

Print this item

  Unable to install pyperclip
Posted by: mepyyeti - Dec-31-2017, 02:38 AM - Forum: GUI - Replies (15)

Currently running ubuntu 17.10 and mainly use python3 (python2 is part of the os) . So both versions of python are in my sys. pip->python2 pip3-> py..... More


Attached Files

Thumbnail(s)
           
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 1 hour ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... Yesterday, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... Yesterday, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... Yesterday, 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...
  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...
Most views
  The best Prog... 576331
  Tutorial Requ... 498065
  Web Scraping ... 440243
  Newbie with P... 384094
  New Users Int... 366977
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
AdrianCocian Today
humanoidAI Today
Baran12332 Yesterday
Hershien Yesterday
Diyaseating Yesterday

User Panel Messages

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