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,424
» Latest member: tomtyiu
» Forum threads: 38,831
» Forum posts: 176,079

Full Statistics

Online Users
There are currently 34 online users.
» 1 Member(s) | 28 Guest(s)
Bing, Google, Applebot, AOL, bowlofred

Latest Threads
we open-sources faster py...
Forum: Code sharing
Last Post: tomtyiu
7 minutes ago
» Replies: 0
» Views: 2
Ко ланта
Forum: General Coding Help
Last Post: RaymondNaw
59 minutes ago
» Replies: 0
» Views: 12
Life advice
Forum: Bar
Last Post: Josephbar
3 hours ago
» Replies: 3
» Views: 3,582
Exponential Number Conver...
Forum: General Coding Help
Last Post: Jessicaadams
9 hours ago
» Replies: 5
» Views: 501
If I open a file write or...
Forum: General Coding Help
Last Post: bowlofred
Yesterday, 03:21 AM
» Replies: 5
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Skaperen
Jan-11-2026, 05:21 AM
» Replies: 3
» Views: 757
python re.finditer return...
Forum: General Coding Help
Last Post: Pedroski55
Jan-11-2026, 02:57 AM
» Replies: 8
» Views: 549
Possible bug found, pleas...
Forum: General Coding Help
Last Post: alexajames
Jan-08-2026, 04:31 PM
» Replies: 14
» Views: 841
How to put my game loop i...
Forum: Game Development
Last Post: MarkHenry
Jan-08-2026, 12:47 PM
» Replies: 12
» Views: 7,794
Code failing to ask input...
Forum: Homework
Last Post: perfringo
Jan-08-2026, 06:35 AM
» Replies: 4
» Views: 749

 
  Need help with octree
Posted by: cee012 - Jan-04-2018, 08:26 PM - Forum: General Coding Help - Replies (1)

Hello I'm trying to implement an octree, but when I query the centre positions they all return zero, but these should be offset from zero. Here is my ..... More

Print this item

  PIL: "ValueError: Images do not match"
Posted by: jajjaja - Jan-04-2018, 06:51 PM - Forum: General Coding Help - No Replies

I'm trying to write a script which selects part of a given image and tiles it in one of a variety of ways. For this, I'm using pillow (archlinux's pa..... More

Print this item

  Reading Binary File, Missing Occurences
Posted by: Oliver - Jan-04-2018, 04:33 PM - Forum: General Coding Help - Replies (4)

I am reading a set of binary files (some, not all) recursively in a directory structure. These files are now-ancient Visual Foxpro files of various ty..... More

Print this item

  While loop variable defining
Posted by: Yordy - Jan-04-2018, 04:08 PM - Forum: General Coding Help - Replies (5)

Hey guys I want to create something like a database here is my code
i=0
#f=open('t.txt', 'w')
#f.write('Hello')
while True:
name=input('Name..... More

Print this item

  Curses could not find terminal
Posted by: Solstice - Jan-04-2018, 02:18 PM - Forum: General Coding Help - Replies (13)

I want to start programming with the module curses in Python on my
Raspberry pi3(with rasbian), But I already ran into a problem.

I wrote my firs..... More

Print this item

  Bug or my misunderstanding?
Posted by: MrSteveVee - Jan-04-2018, 02:13 PM - Forum: General Coding Help - Replies (2)

Hi all, I am trying to get to grips with Python using Visual Studio 2017 on Windows 10 and have a problem that may be a bug in VS or my misunderstandi..... More

Print this item

  cross-compiling python with zlib support
Posted by: michelebucca - Jan-04-2018, 01:19 PM - Forum: News and Discussions - Replies (5)

Hi There
Has anybody ever tried to cross-compile python with zlib support for another architecture?
I'm trying to cross-compile Python for my embedded..... More

Print this item

  Error while executing makemessages command
Posted by: sonic911 - Jan-04-2018, 10:19 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello!
I'm creating multilingual website.

When I try to execute:

$python manage.py makemessages -l de
I get an error:

[python]..... More

Print this item

  df and regex, NaN and df.concat
Posted by: metalray - Jan-04-2018, 10:04 AM - Forum: Homework - Replies (8)

Hi Pandas experts,

I got some messy data with dates like:

[b]04/20/2001; 04/20/11; 4/20/09; 4/3/01
Mar-20-2001; Dec 20, 2009; April 20, 2009; M..... More

Print this item

  Pregnancy caculator
Posted by: Niko - Jan-04-2018, 08:57 AM - Forum: General Coding Help - Replies (2)

How do I make it so whenever I input "condom pullout birthcontrol spermicide" to work



[python]
print("pregnant percentage").upper()
print("-"..... More

Print this item

  Array NaN values? ValueError: continuous format is not supported
Posted by: metalray - Jan-04-2018, 08:44 AM - Forum: Homework - Replies (3)

Hi,

I do have this ValueError: continuous format is not supported problem again.

[python]
auc_roc = roc_auc_score(fpr, tpr)

#"roc_auc" is a ..... More

Print this item

  Python 3.6 geetin error : pyimod03_importers.py
Posted by: Rajnishbsm - Jan-04-2018, 06:31 AM - Forum: Data Science - Replies (3)

Hi experts,
After converting python program to exe, i am getting pyimod03_importers.py error
Although I have imported pandas,xlrd,numpy and pyinsta..... More

Print this item

  2 iterators or generators
Posted by: Skaperen - Jan-04-2018, 04:53 AM - Forum: General Coding Help - Replies (1)

i want to be able to interleave two or more iterator or generators, including stepping one or more of them fewer or more times as coded logic may dict..... More

Print this item

  BeautifulSoup - extract table but not using ID
Posted by: jonesin1974 - Jan-04-2018, 02:49 AM - Forum: Web Scraping & Web Development - Replies (5)

Hi,

I am scraping data from a web page but none of the items have an ID. I'm struggling to find an example so here goes...

The table looks like..... More

Print this item

  Unable to load cookies with Pickle
Posted by: HiImNew - Jan-04-2018, 01:30 AM - Forum: Web Scraping & Web Development - Replies (5)

Full Code:
[python]
>>> while True:
from selenium import webdriver
driver = webdriver.Chrome()
import pickle
cookies = pickle.load(open("coo..... More

Print this item

  Dictionary methods
Posted by: Wolfpack2605 - Jan-04-2018, 01:12 AM - Forum: General Coding Help - Replies (2)

Can someone please explain what is happening here. I have no clue what val is or what .get is. Please explain.

[quote]Earlier in this module we loo..... More

Print this item

  Error in dictionaries
Posted by: Wolfpack2605 - Jan-03-2018, 11:52 PM - Forum: Homework - Replies (3)

I'm having trouble with an error in my code and I cannot find out why it is happening.

This is the task:
[i]Most non-smartphone mobile phones have..... More

Print this item

  eliza
Posted by: ghoti69 - Jan-03-2018, 11:39 PM - Forum: General Coding Help - Replies (5)

I have the source code for eliza. I am getting a syntax error.line 260, says missing parentheses in my print statement. can someone, straiten me out...... More

Print this item

  Number Guessing Game - Need Help
Posted by: joekbaum - Jan-03-2018, 10:53 PM - Forum: General Coding Help - Replies (8)

I am trying to create a program where the user chooses a number between 1-100 and the computer tries to guess it in as few tries as possible. I think ..... More

Print this item

  Array in numpy
Posted by: Truman - Jan-03-2018, 10:42 PM - Forum: Data Science - Replies (5)

I installed modul numpy and wrote this code:

[python]
import numpy as np
height = [ 1.73, 1.68, 1.71, 1.89, 1.79]
weight = [ 65.4, 59.2, 63.6, 8..... More

Print this item

  installing packages Globally vs Virtually
Posted by: karaokelove - Jan-03-2018, 10:07 PM - Forum: General Coding Help - Replies (2)

Hi all, I was wondering what are best practices regarding installing packages globally vs installing in a virtual environment. What would be some good..... More

Print this item

  COMPLETE BEGINNER TO NETWORKING. HELP?
Posted by: ShadowWarrior17 - Jan-03-2018, 09:42 PM - Forum: Networking - Replies (11)

I am looking to create a LAN game on python. I am currently in the works of a connect four game.

Can anyone tell/show how to setup a server, so it'..... More

Print this item

  Multiple gets from JSON?
Posted by: alex36540 - Jan-03-2018, 09:40 PM - Forum: General Coding Help - Replies (2)

Hello, I am writing a script using and Instagram API to get data from users. Here is the link for the Github page: https://github.com/LevPasha/Instagr..... More

Print this item

  Connect Four Win Check Function
Posted by: ShadowWarrior17 - Jan-03-2018, 09:37 PM - Forum: General Coding Help - Replies (7)

I am creating a Connect Four game and was wondering on how to create a function to determine if a player has won.

This is my board:
[python]
"| ..... More

Print this item

  TypeError: unhashable type: 'list'
Posted by: Andreas - Jan-03-2018, 09:31 PM - Forum: General Coding Help - Replies (3)

Hello.
I'm trying to learn to code. I've done some simpler scripts in MEL and Python in Maya but I would like to learn more.

I'm stuck and I don't..... More

Print this item

  Interesting article on PyTourch
Posted by: Larz60+ - Jan-03-2018, 09:06 PM - Forum: News and Discussions - No Replies

https://www.oreilly.com/ideas/when-two-t...er-systems

Print this item

  Oauth1 - python3
Posted by: user256 - Jan-03-2018, 07:22 PM - Forum: General Coding Help - Replies (1)

Python3 - Currently trying to sign a HTTP request to access an API, unfortunately I keep running into an issue with requests.

using: https://pypi...... More

Print this item

  pyinstaller generated code gets flagged by NIS
Posted by: kris44dad - Jan-03-2018, 05:43 PM - Forum: General Coding Help - Replies (3)

I just started learning python. I wrote the following source code to generate a ~1GB size file.

[python]
seed_number = 1073741824
datastring = "0..... More

Print this item

  Django REST - input of some form fields is send twice to the backend
Posted by: ann - Jan-03-2018, 03:09 PM - Forum: Web Scraping & Web Development - Replies (4)

Does anybody had the same problem? Some users' inputs are sent to the backend twice.

Data are stored in JSON's object. Key-value schema doesn't trigg..... More

Print this item

  os.rename Windows remove illegal char
Posted by: fgerrata - Jan-03-2018, 02:06 PM - Forum: Web Scraping & Web Development - Replies (3)

I need help to understand the best partice to remove illegal char from file and path name.

[b] [i] Windowz (FAT32, NTFS): Any Unicode except NUL,..... More

Print this item

  Click on button with python mechanize
Posted by: torlkius - Jan-03-2018, 01:20 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I would like to click a button using mechanize but I can't find the right code.

Until then, I had succeeded because I was going through ..... More

Print this item

  Script to read, write data to excel file and update it to firebase
Posted by: Expertlearner - Jan-03-2018, 01:08 PM - Forum: General Coding Help - Replies (1)

I am going to do a project on database analysis where the data is read from an excel file. The user should be able to [i]search for the dates, ..... More

Print this item

  extract specific dat from txt file
Posted by: mephist34 - Jan-03-2018, 12:41 PM - Forum: General Coding Help - Replies (1)

I have alot of txt files that contains data i need to extract; for example:

[python] ** n zone 1 vzone= 465.99 / 1 2 3 4 5 6 7 8 ..... More

Print this item

  Excel Column as List
Posted by: champk - Jan-03-2018, 12:38 PM - Forum: General Coding Help - Replies (2)

Hi Everyone,

I am new to python. My requirement is to load a particular excel column as list and then count distinct values in that list.

Kindl..... More

Print this item

  ValueError: could not convert string to float: .
Posted by: BoaCoder3 - Jan-03-2018, 12:24 PM - Forum: General Coding Help - Replies (3)

In this programme i'm trying to solve a mathematical ratio problem, then calculate the squareroot, however, whenever i try to give it input like this:..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  we open-sources faster py... 7 minutes ago tomtyiu tomtyiu Code sharing
  Ко ланта 59 minutes ago RaymondNaw RaymondNaw General Codin...
  Life advice 3 hours ago jamesaarr Josephbar Bar
  Exponential Number Conver... 9 hours ago Tuurbo46 Jessicaadams General Codin...
  If I open a file write or... Yesterday, 03:21 Pedroski55 bowlofred General Codin...
  a function to watch files 01-11, 05:21 Skaperen Skaperen News and Disc...
  python re.finditer return... 01-11, 02:57 arbiel Pedroski55 General Codin...
  Possible bug found, pleas... 01-08, 16:31 Hassher alexajames General Codin...
  How to put my game loop i... 01-08, 12:47 temlotresid6 MarkHenry Game Developm...
  Code failing to ask input... 01-08, 06:35 Phoenix_Narukami perfringo Homework
  sorting a lisr of file pa... 01-07, 07:13 Skaperen OtiliaGen News and Disc...
Most views
  The best Prog... 580766
  Tutorial Requ... 522438
  Web Scraping ... 442925
  New Users Int... 388247
  Newbie with P... 387150
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 8197
snippsat 7399
deanhystad 6921
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
tomtyiu Today
RaymondNaw Yesterday
Josephbar Yesterday
zaasheytop3010 Yesterday
Avigma Yesterday

User Panel Messages

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